FlightGear next
flightgear::Octree::Leaf Class Reference

#include <PositionedOctree.hxx>

Inherits flightgear::Octree::Node.

Public Member Functions

 Leaf (const SGBoxd &aBox, int64_t aIdent, bool persistent)
 
virtual void visit (const SGVec3d &aPos, double aCutoff, FGPositioned::Filter *aFilter, FindNearestResults &aResults, FindNearestPQueue &)
 
virtual LeaffindLeafForPos (const SGVec3d &) const
 
void insertChild (FGPositioned::Type ty, PositionedID id)
 
void removeChild (PositionedID id)
 
- Public Member Functions inherited from flightgear::Octree::Node
int64_t guid () const
 
const SGBoxd & bbox () const
 
bool contains (const SGVec3d &aPos) const
 
double distToNearest (const SGVec3d &aPos) const
 
virtual void visitForLines (const SGVec3d &aPos, double aCutoff, PolyLineList &aLines, FindLinesDeque &aQ) const
 
virtual NodefindNodeForBox (const SGBoxd &box) const
 
virtual ~Node ()
 
void addPolyLine (const PolyLineRef &)
 

Additional Inherited Members

- Protected Member Functions inherited from flightgear::Octree::Node
 Node (const SGBoxd &aBox, int64_t aIdent, bool persistent)
 
- Protected Attributes inherited from flightgear::Octree::Node
const int64_t _ident
 
const bool _persistent = false
 
const SGBoxd _box
 
PolyLineList lines
 

Detailed Description

Definition at line 163 of file PositionedOctree.hxx.

Constructor & Destructor Documentation

◆ Leaf()

flightgear::Octree::Leaf::Leaf ( const SGBoxd & aBox,
int64_t aIdent,
bool persistent )

Definition at line 84 of file PositionedOctree.cxx.

Member Function Documentation

◆ findLeafForPos()

virtual Leaf * flightgear::Octree::Leaf::findLeafForPos ( const SGVec3d & ) const
inlinevirtual

Implements flightgear::Octree::Node.

Definition at line 172 of file PositionedOctree.hxx.

◆ insertChild()

void flightgear::Octree::Leaf::insertChild ( FGPositioned::Type ty,
PositionedID id )

Definition at line 132 of file PositionedOctree.cxx.

◆ removeChild()

void flightgear::Octree::Leaf::removeChild ( PositionedID id)

Definition at line 138 of file PositionedOctree.cxx.

◆ visit()

void flightgear::Octree::Leaf::visit ( const SGVec3d & aPos,
double aCutoff,
FGPositioned::Filter * aFilter,
FindNearestResults & aResults,
FindNearestPQueue &  )
virtual

Implements flightgear::Octree::Node.

Definition at line 91 of file PositionedOctree.cxx.


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