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

#include <quadtree.h>

Inheritance diagram for Tree::QuadTree::Leaf:
Tree::QuadTree::Node Vector2f Vector

Public Member Functions

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

Friends

class QuadTree
 

Constructor & Destructor Documentation

◆ Leaf() [1/2]

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

Copying of Nodes is not supported.

◆ Leaf() [2/2]

Tree::QuadTree::Leaf::Leaf ( Branch * pParent,
const Vertex2f & vertex )
Parameters
Pointerto the parent branch.
Thecopy vertex object.

◆ ~Leaf()

virtual Tree::QuadTree::Leaf::~Leaf ( )
virtual

Member Function Documentation

◆ find()

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

Implements Tree::QuadTree::Node.

◆ getBaseIndex()

Handle Tree::QuadTree::Leaf::getBaseIndex ( ) const
inline

◆ getIndices()

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

Implements Tree::QuadTree::Node.

◆ getLeaves()

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

Implements Tree::QuadTree::Node.

◆ getVertices()

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

Implements Tree::QuadTree::Node.

◆ hasDuplicates()

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

◆ insert()

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

Implements Tree::QuadTree::Node.

◆ nearest()

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

Implements Tree::QuadTree::Node.

Friends And Related Symbol Documentation

◆ QuadTree

friend class QuadTree
friend

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