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

#include <aaboxtree.h>

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

Public Member Functions

 Branch ()
 
 Branch (const Primitive2D::AABoundingBox &box, const Vertex2f &center)
 
virtual ~Branch ()
 
Quadrant getQuadrant (const Vertex2f &vertex) const
 
virtual Leafinsert (const Primitive2D::AABoundingBox &box)
 
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)
 
- Public Member Functions inherited from Tree::AABoxTree::Node
 Node (const Primitive2D::AABoundingBox &box, Branch *pParent=nullptr)
 
const BranchgetParent () const
 
virtual ~Node ()
 

Public Attributes

const Vertex2f center
 
NodepQuadrant [4]
 

Constructor & Destructor Documentation

◆ Branch() [1/2]

Tree::AABoxTree::Branch::Branch ( )

◆ Branch() [2/2]

Tree::AABoxTree::Branch::Branch ( const Primitive2D::AABoundingBox & box,
const Vertex2f & center )

◆ ~Branch()

virtual Tree::AABoxTree::Branch::~Branch ( )
virtual

Member Function Documentation

◆ find()

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

Implements Tree::AABoxTree::Node.

◆ getLeaves()

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

Implements Tree::AABoxTree::Node.

◆ getQuadrant()

Quadrant Tree::AABoxTree::Branch::getQuadrant ( const Vertex2f & vertex) const
Parameters
Thecenter of the bounding-box or vertex to test.
Returns
The Quadrant in which the given vertex is inside.

◆ insert()

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

Implements Tree::AABoxTree::Node.

◆ inside() [1/2]

virtual HeapArray< Leaf * > Tree::AABoxTree::Branch::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::Branch::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::Branch::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::Branch::nearest ( const Vertex2f & vertex)
virtual
Returns
The nearest Leaf to the vertex.

Implements Tree::AABoxTree::Node.

◆ within()

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

Implements Tree::AABoxTree::Node.

Member Data Documentation

◆ center

const Vertex2f Tree::AABoxTree::Branch::center

◆ pQuadrant

Node* Tree::AABoxTree::Branch::pQuadrant[4]

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