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

#include <quadtree.h>

Inheritance diagram for Tree::QuadTree::Branch:
Tree::QuadTree::Node

Public Member Functions

 Branch ()
 
 Branch (const Branch &other)=delete
 
 Branch (const Primitive2D::AABoundingBox &box, const Vertex2f &center)
 
 Branch (Branch *pParent, Quadrant quadrant)
 
virtual ~Branch ()
 
Quadrant getQuadrant (const Vertex2f &vertex) const
 
virtual Leafinsert (const Vertex2f &vertex)
 
virtual Leaffind (const Vertex2f &vertex, float precision=0.0f)
 
virtual Vector2fArray getVertices () const
 
virtual HeapArray< Handle > getIndices () const
 
virtual HeapArray< Leaf * > getLeaves ()
 
virtual Leafnearest (const Vertex2f &vertex)
 
- Public Member Functions inherited from Tree::QuadTree::Node
 Node (Branch *pParent=nullptr)
 
 Node (const Node &other)=delete
 
const BranchgetParent () const
 
virtual ~Node ()
 

Public Attributes

const Vertex2f center
 
NodepQuadrant [4]
 

Constructor & Destructor Documentation

◆ Branch() [1/4]

Tree::QuadTree::Branch::Branch ( )

◆ Branch() [2/4]

Tree::QuadTree::Branch::Branch ( const Branch & other)
delete

Copying of Nodes is not supported.

◆ Branch() [3/4]

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

◆ Branch() [4/4]

Tree::QuadTree::Branch::Branch ( Branch * pParent,
Quadrant quadrant )

◆ ~Branch()

virtual Tree::QuadTree::Branch::~Branch ( )
virtual

Member Function Documentation

◆ find()

virtual Leaf * Tree::QuadTree::Branch::find ( const Vertex2f & vertex,
float precision = 0.0f )
virtual

Implements Tree::QuadTree::Node.

◆ getIndices()

virtual HeapArray< Handle > Tree::QuadTree::Branch::getIndices ( ) const
virtual

Implements Tree::QuadTree::Node.

◆ getLeaves()

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

Implements Tree::QuadTree::Node.

◆ getQuadrant()

Quadrant Tree::QuadTree::Branch::getQuadrant ( const Vertex2f & vertex) const

◆ getVertices()

virtual Vector2fArray Tree::QuadTree::Branch::getVertices ( ) const
virtual

Implements Tree::QuadTree::Node.

◆ insert()

virtual Leaf * Tree::QuadTree::Branch::insert ( const Vertex2f & vertex)
virtual

Implements Tree::QuadTree::Node.

◆ nearest()

virtual Leaf * Tree::QuadTree::Branch::nearest ( const Vertex2f & vertex)
virtual

Implements Tree::QuadTree::Node.

Member Data Documentation

◆ center

const Vertex2f Tree::QuadTree::Branch::center

◆ pQuadrant

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

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