Rasterfarm-SDK
Loading...
Searching...
No Matches
Tree::AABoxTree::Leaf Class Reference

#include <aaboxtree.h>

Inheritance diagram for Tree::AABoxTree::Leaf:
Tree::AABoxTree::Node

Public Member Functions

 Leaf (Branch *pParent, const Primitive2D::AABoundingBox &box)
 
virtual ~Leaf ()
 
virtual Leaffind (const Primitive2D::AABoundingBox &box)
 
virtual HeapArray< Leaf * > getLeaves ()
 
virtual HeapArray< Leaf * > intersect (const Primitive2D::AABoundingBox &box)
 
virtual Leafnearest (const Vertex2f &vertex)
 
virtual HeapArray< Leaf * > inside (const Vertex2f &v, float precision=0.0f)
 
virtual HeapArray< Leaf * > inside (const Primitive2D::AABoundingBox &box, float precision=0.0f)
 
virtual HeapArray< Leaf * > within (const Primitive2D::AABoundingBox &box, float precision=0.0f)
 
Handle getBaseIndex () const
 
bool hasDuplicates () const
 
- Public Member Functions inherited from Tree::AABoxTree::Node
 Node (const Primitive2D::AABoundingBox &box, Branch *pParent=nullptr)
 
const BranchgetParent () const
 
virtual ~Node ()
 

Friends

class AABoxTree
 

Constructor & Destructor Documentation

◆ Leaf()

Tree::AABoxTree::Leaf::Leaf ( Branch * pParent,
const Primitive2D::AABoundingBox & box )

◆ ~Leaf()

virtual Tree::AABoxTree::Leaf::~Leaf ( )
virtual

Member Function Documentation

◆ find()

virtual Leaf * Tree::AABoxTree::Leaf::find ( const Primitive2D::AABoundingBox & box)
virtual

Implements Tree::AABoxTree::Node.

◆ getBaseIndex()

Handle Tree::AABoxTree::Leaf::getBaseIndex ( ) const
inline
Returns
The index in the super-class AABoxTree:pNode.

◆ getLeaves()

virtual HeapArray< Leaf * > Tree::AABoxTree::Leaf::getLeaves ( )
virtual

Implements Tree::AABoxTree::Node.

◆ hasDuplicates()

bool Tree::AABoxTree::Leaf::hasDuplicates ( ) const
inline

◆ inside() [1/2]

virtual HeapArray< Leaf * > Tree::AABoxTree::Leaf::inside ( const Primitive2D::AABoundingBox & box,
float precision = 0.0f )
virtual
Returns
An array of leaves that are inside the given box.

Implements Tree::AABoxTree::Node.

◆ inside() [2/2]

virtual HeapArray< Leaf * > Tree::AABoxTree::Leaf::inside ( const Vertex2f & v,
float precision = 0.0f )
virtual
Returns
An array of leaves that are inside the given Cube.

Implements Tree::AABoxTree::Node.

◆ intersect()

virtual HeapArray< Leaf * > Tree::AABoxTree::Leaf::intersect ( const Primitive2D::AABoundingBox & box)
virtual
Returns
An array of leaves that intersect with the given box.

Implements Tree::AABoxTree::Node.

◆ nearest()

virtual Leaf * Tree::AABoxTree::Leaf::nearest ( const Vertex2f & vertex)
virtual
Returns
The nearest Leaf to the vertex.

Implements Tree::AABoxTree::Node.

◆ within()

virtual HeapArray< Leaf * > Tree::AABoxTree::Leaf::within ( const Primitive2D::AABoundingBox & box,
float precision = 0.0f )
virtual
Returns
An array of leaves that given box lies within.

Implements Tree::AABoxTree::Node.

Friends And Related Symbol Documentation

◆ AABoxTree

friend class AABoxTree
friend

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