GlobeEngine
geData::GeometricBalancedArrayTreeNode< TREESIZE, KEYTYPE, HALFTREESIZE > Class Template Reference

#include <GeometricBalancedArrayTreeNode.h>

Inheritance diagram for geData::GeometricBalancedArrayTreeNode< TREESIZE, KEYTYPE, HALFTREESIZE >:
geData::BalancedArrayTreeNode< TREESIZE, KEYTYPE, HALFTREESIZE > geData::ArrayTreeNode< TREESIZE, KEYTYPE, HALFTREESIZE > geRaster::KPatchBintreeNode geRaster::MBlock

Public Member Functions

 GeometricBalancedArrayTreeNode ()
 
 ~GeometricBalancedArrayTreeNode ()
 
virtual void printValue () const
 
const double * getBounds () const
 
void setBounds (vmml::Vector4d _bound)
 
void setBoundIndex (int _maxTreeDepth)
 
vmml::Vector2d getOrigin () const
 
vmml::Vector2d getMidpoint () const
 
bool inside (vmml::Vector2d _coord) const
 
int locateChildIDForCoordinates (vmml::Vector2d _coord) const
 
double getEdgelenght () const
 
void setEdgelenght (double _edgelength)
 
void setBoundsIndex (GLuint _min_x, GLuint _min_y)
 
const GLuint * getBoundsIndex () const
 
bool isVisible () const
 
void isVisible (bool _input)
 
void print ()
 
- Public Member Functions inherited from geData::BalancedArrayTreeNode< TREESIZE, KEYTYPE, HALFTREESIZE >
 BalancedArrayTreeNode ()
 
 ~BalancedArrayTreeNode ()
 
short getBalance () const
 
void setBalance (short _balance)
 
void print ()
 
- Public Member Functions inherited from geData::ArrayTreeNode< TREESIZE, KEYTYPE, HALFTREESIZE >
 ArrayTreeNode (int _uid=-1, int _parent=-1)
 
 ArrayTreeNode (int _uid, std::shared_ptr< KEYTYPE > _key, int _parent)
 
 ArrayTreeNode (int _uid, short _lod, int _parent)
 
 ~ArrayTreeNode ()
 
void clear ()
 
void setArrayNodeProperties (int _uid, std::shared_ptr< KEYTYPE > _key, int _parent, bool _isParent)
 
void setArrayNodeProperties (int _uid, short _lod, int _parent, bool _isParent)
 
void setArrayNodeProperties (int _uid, int _parent, bool _isParent)
 
void setChildByKey (std::shared_ptr< KEYTYPE > const &_key, int _childid)
 
int locateKeyInChild (std::shared_ptr< KEYTYPE > const &_key)
 
void setLod (short _lod)
 
void setBasic (int _uid, int _parent)
 
std::shared_ptr< KEYTYPE > const & getKey () const
 
void setKey (std::shared_ptr< KEYTYPE > _key)
 
int getUID () const
 
void setUID (int _uid)
 
const int getChildIdx (short _childIdx) const
 
void setChildIdx (short _childIdx, int _idx)
 
void repairChildIdx (int _nodeid)
 
bool isParent () const
 
void isParent (bool _input)
 
void setParentID (int _parent)
 
int getParentID () const
 
const intgetChildren () const
 
void clearChildIndices ()
 
void print ()
 

Protected Member Functions

void calculateMidpoint ()
 

Protected Attributes

vmml::Vector4d bounds
 
GLuint boundsIdx [2]
 
vmml::Vector2d midPoint
 
double edgelength
 
bool visible
 
- Protected Attributes inherited from geData::ArrayTreeNode< TREESIZE, KEYTYPE, HALFTREESIZE >
int children [TREESIZE]
 
std::shared_ptr< KEYTYPE > key
 

Constructor & Destructor Documentation

template<short TREESIZE, class KEYTYPE , short HALFTREESIZE>
geData::GeometricBalancedArrayTreeNode< TREESIZE, KEYTYPE, HALFTREESIZE >::GeometricBalancedArrayTreeNode ( )
inline
template<short TREESIZE, class KEYTYPE , short HALFTREESIZE>
geData::GeometricBalancedArrayTreeNode< TREESIZE, KEYTYPE, HALFTREESIZE >::~GeometricBalancedArrayTreeNode ( )
inline

Member Function Documentation

template<short TREESIZE, class KEYTYPE , short HALFTREESIZE>
void geData::GeometricBalancedArrayTreeNode< TREESIZE, KEYTYPE, HALFTREESIZE >::calculateMidpoint ( )
inlineprotected

calculateMidpoint sets the midpoint and the edgelength of a node

template<short TREESIZE, class KEYTYPE , short HALFTREESIZE>
const double* geData::GeometricBalancedArrayTreeNode< TREESIZE, KEYTYPE, HALFTREESIZE >::getBounds ( ) const
inline
template<short TREESIZE, class KEYTYPE , short HALFTREESIZE>
const GLuint* geData::GeometricBalancedArrayTreeNode< TREESIZE, KEYTYPE, HALFTREESIZE >::getBoundsIndex ( ) const
inline
template<short TREESIZE, class KEYTYPE , short HALFTREESIZE>
double geData::GeometricBalancedArrayTreeNode< TREESIZE, KEYTYPE, HALFTREESIZE >::getEdgelenght ( ) const
inline
template<short TREESIZE, class KEYTYPE , short HALFTREESIZE>
vmml::Vector2d geData::GeometricBalancedArrayTreeNode< TREESIZE, KEYTYPE, HALFTREESIZE >::getMidpoint ( ) const
inline
template<short TREESIZE, class KEYTYPE , short HALFTREESIZE>
vmml::Vector2d geData::GeometricBalancedArrayTreeNode< TREESIZE, KEYTYPE, HALFTREESIZE >::getOrigin ( ) const
inline
template<short TREESIZE, class KEYTYPE , short HALFTREESIZE>
bool geData::GeometricBalancedArrayTreeNode< TREESIZE, KEYTYPE, HALFTREESIZE >::inside ( vmml::Vector2d  _coord) const
inline
template<short TREESIZE, class KEYTYPE , short HALFTREESIZE>
bool geData::GeometricBalancedArrayTreeNode< TREESIZE, KEYTYPE, HALFTREESIZE >::isVisible ( ) const
inline
template<short TREESIZE, class KEYTYPE , short HALFTREESIZE>
void geData::GeometricBalancedArrayTreeNode< TREESIZE, KEYTYPE, HALFTREESIZE >::isVisible ( bool  _input)
inline
template<short TREESIZE, class KEYTYPE , short HALFTREESIZE>
int geData::GeometricBalancedArrayTreeNode< TREESIZE, KEYTYPE, HALFTREESIZE >::locateChildIDForCoordinates ( vmml::Vector2d  _coord) const
inline
template<short TREESIZE, class KEYTYPE , short HALFTREESIZE>
void geData::GeometricBalancedArrayTreeNode< TREESIZE, KEYTYPE, HALFTREESIZE >::print ( )
inline
template<short TREESIZE, class KEYTYPE , short HALFTREESIZE>
virtual void geData::GeometricBalancedArrayTreeNode< TREESIZE, KEYTYPE, HALFTREESIZE >::printValue ( ) const
inlinevirtual
template<short TREESIZE, class KEYTYPE , short HALFTREESIZE>
void geData::GeometricBalancedArrayTreeNode< TREESIZE, KEYTYPE, HALFTREESIZE >::setBoundIndex ( int  _maxTreeDepth)
inline
template<short TREESIZE, class KEYTYPE , short HALFTREESIZE>
void geData::GeometricBalancedArrayTreeNode< TREESIZE, KEYTYPE, HALFTREESIZE >::setBounds ( vmml::Vector4d  _bound)
inline
template<short TREESIZE, class KEYTYPE , short HALFTREESIZE>
void geData::GeometricBalancedArrayTreeNode< TREESIZE, KEYTYPE, HALFTREESIZE >::setBoundsIndex ( GLuint  _min_x,
GLuint  _min_y 
)
inline
template<short TREESIZE, class KEYTYPE , short HALFTREESIZE>
void geData::GeometricBalancedArrayTreeNode< TREESIZE, KEYTYPE, HALFTREESIZE >::setEdgelenght ( double  _edgelength)
inline

Member Data Documentation

template<short TREESIZE, class KEYTYPE , short HALFTREESIZE>
vmml::Vector4d geData::GeometricBalancedArrayTreeNode< TREESIZE, KEYTYPE, HALFTREESIZE >::bounds
protected
template<short TREESIZE, class KEYTYPE , short HALFTREESIZE>
GLuint geData::GeometricBalancedArrayTreeNode< TREESIZE, KEYTYPE, HALFTREESIZE >::boundsIdx[2]
protected
template<short TREESIZE, class KEYTYPE , short HALFTREESIZE>
double geData::GeometricBalancedArrayTreeNode< TREESIZE, KEYTYPE, HALFTREESIZE >::edgelength
protected
template<short TREESIZE, class KEYTYPE , short HALFTREESIZE>
vmml::Vector2d geData::GeometricBalancedArrayTreeNode< TREESIZE, KEYTYPE, HALFTREESIZE >::midPoint
protected
template<short TREESIZE, class KEYTYPE , short HALFTREESIZE>
bool geData::GeometricBalancedArrayTreeNode< TREESIZE, KEYTYPE, HALFTREESIZE >::visible
protected

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