Rasterfarm-SDK
Loading...
Searching...
No Matches
Tree::AABoxTree::Node Class Referenceabstract

#include <aaboxtree.h>

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

Public Member Functions

 Node (const Primitive2D::AABoundingBox &box, Branch *pParent=nullptr)
 
const BranchgetParent () const
 
virtual ~Node ()
 
virtual Leaffind (const Primitive2D::AABoundingBox &box)=0
 
virtual HeapArray< Leaf * > getLeaves ()=0
 
virtual HeapArray< Leaf * > intersect (const Primitive2D::AABoundingBox &box)=0
 
virtual Leafnearest (const Vertex2f &vertex)=0
 
virtual HeapArray< Leaf * > inside (const Vertex2f &v, float precision=0.0f)=0
 
virtual HeapArray< Leaf * > inside (const Primitive2D::AABoundingBox &box, float precision=0.0f)=0
 
virtual HeapArray< Leaf * > within (const Primitive2D::AABoundingBox &box, float precision=0.0f)=0
 

Friends

class AABoxTree
 

Constructor & Destructor Documentation

◆ Node()

Tree::AABoxTree::Node::Node ( const Primitive2D::AABoundingBox & box,
Branch * pParent = nullptr )

◆ ~Node()

virtual Tree::AABoxTree::Node::~Node ( )
virtual

Member Function Documentation

◆ find()

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

◆ getLeaves()

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

◆ getParent()

const Branch * Tree::AABoxTree::Node::getParent ( ) const
inline

◆ inside() [1/2]

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

Implemented in Tree::AABoxTree::Branch, and Tree::AABoxTree::Leaf.

◆ inside() [2/2]

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

Implemented in Tree::AABoxTree::Branch, and Tree::AABoxTree::Leaf.

◆ intersect()

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

Implemented in Tree::AABoxTree::Branch, and Tree::AABoxTree::Leaf.

◆ nearest()

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

Implemented in Tree::AABoxTree::Branch, and Tree::AABoxTree::Leaf.

◆ within()

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

Implemented in Tree::AABoxTree::Branch, and Tree::AABoxTree::Leaf.

Friends And Related Symbol Documentation

◆ AABoxTree

friend class AABoxTree
friend

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