geolib2
Public Member Functions | Public Attributes | List of all members
geo::HeightMapNode Class Reference

#include <HeightMapNode.h>

Public Member Functions

HeightMapNodeclone () const
 
 HeightMapNode (const Box &box)
 
 HeightMapNode (const HeightMapNode &orig)
 
 HeightMapNode (HeightMapNode &&orig)
 
bool intersect (const Ray &r, float t0, float t1, double &distance) const
 
virtual ~HeightMapNode ()
 

Public Attributes

Box box_
 
HeightMapNodechildren_ [4]
 
bool occupied_
 

Detailed Description

One node of the quad tree used to make the heightmap.

A leaf node describes a box of occupied space A branch node describes geometry as the union of the geometry of its child nodes.

Definition at line 17 of file HeightMapNode.h.

Constructor & Destructor Documentation

◆ HeightMapNode() [1/3]

geo::HeightMapNode::HeightMapNode ( const Box box)

Definition at line 5 of file HeightMapNode.cpp.

◆ HeightMapNode() [2/3]

geo::HeightMapNode::HeightMapNode ( const HeightMapNode orig)

Definition at line 11 of file HeightMapNode.cpp.

◆ HeightMapNode() [3/3]

geo::HeightMapNode::HeightMapNode ( HeightMapNode &&  orig)

Definition at line 21 of file HeightMapNode.cpp.

◆ ~HeightMapNode()

geo::HeightMapNode::~HeightMapNode ( )
virtual

Definition at line 32 of file HeightMapNode.cpp.

Member Function Documentation

◆ clone()

HeightMapNode * geo::HeightMapNode::clone ( ) const

Definition at line 35 of file HeightMapNode.cpp.

◆ intersect()

bool geo::HeightMapNode::intersect ( const Ray r,
float  t0,
float  t1,
double &  distance 
) const

Definition at line 39 of file HeightMapNode.cpp.

Member Data Documentation

◆ box_

Box geo::HeightMapNode::box_

Definition at line 34 of file HeightMapNode.h.

◆ children_

HeightMapNode* geo::HeightMapNode::children_[4]

Definition at line 37 of file HeightMapNode.h.

◆ occupied_

bool geo::HeightMapNode::occupied_

Definition at line 40 of file HeightMapNode.h.


The documentation for this class was generated from the following files: