SAGA API v9.10
Loading...
Searching...
No Matches
CSG_KDTree Class Referenceabstract

#include <shapes.h>

Inheritance diagram for CSG_KDTree:
CSG_KDTree_2D CSG_KDTree_3D

Public Member Functions

 CSG_KDTree (void)
virtual ~CSG_KDTree (void)
virtual bool Destroy (void)
bool is_Okay (void) const
size_t Get_Match_Count (void) const
size_t Get_Match_Index (size_t i) const
double Get_Match_Distance (size_t i) const
CSG_ShapeGet_Match_Shape (size_t i) const
int Get_Point_Count (void) const
double * Get_Point (int i) const
double * Get_Point (size_t i) const
double * operator[] (int i) const
double * operator[] (size_t i) const
virtual double Get_Point_Value (int i) const
virtual double Get_Point_Value (size_t i) const =0

Static Public Member Functions

static const char * Get_Version (void)

Protected Member Functions

void _On_Construction (void)

Protected Attributes

class CSG_KDTree_Adaptor * m_pAdaptor
void * m_pKDTree
CSG_Array_sLong m_Indices
CSG_Vector m_Distances
CSG_Matrix m_Points

Detailed Description

Definition at line 1211 of file shapes.h.

Constructor & Destructor Documentation

◆ CSG_KDTree()

CSG_KDTree::CSG_KDTree ( void )

Definition at line 250 of file kdtree.cpp.

References _On_Construction().

◆ ~CSG_KDTree()

CSG_KDTree::~CSG_KDTree ( void )
virtual

Definition at line 256 of file kdtree.cpp.

Member Function Documentation

◆ _On_Construction()

◆ Destroy()

bool CSG_KDTree::Destroy ( void )
virtual

Reimplemented in CSG_KDTree_2D, and CSG_KDTree_3D.

Definition at line 279 of file kdtree.cpp.

References m_Distances, m_Indices, m_pAdaptor, m_Points, and SG_DELETE_SAFE.

Referenced by CSG_KDTree_2D::Destroy(), and CSG_KDTree_3D::Destroy().

◆ Get_Match_Count()

size_t CSG_KDTree::Get_Match_Count ( void ) const
inline

Definition at line 1223 of file shapes.h.

References m_Indices.

Referenced by Get_Match_Shape().

◆ Get_Match_Distance()

double CSG_KDTree::Get_Match_Distance ( size_t i) const
inline

Definition at line 1225 of file shapes.h.

References m_Distances.

◆ Get_Match_Index()

size_t CSG_KDTree::Get_Match_Index ( size_t i) const
inline

Definition at line 1224 of file shapes.h.

References m_Indices.

Referenced by Get_Match_Shape().

◆ Get_Match_Shape()

CSG_Shape * CSG_KDTree::Get_Match_Shape ( size_t i) const

Definition at line 291 of file kdtree.cpp.

References Get_Match_Count(), Get_Match_Index(), CSG_Shapes::Get_Shape(), and m_pAdaptor.

◆ Get_Point() [1/2]

double * CSG_KDTree::Get_Point ( int i) const
inline

Definition at line 1229 of file shapes.h.

References m_Points.

◆ Get_Point() [2/2]

double * CSG_KDTree::Get_Point ( size_t i) const
inline

Definition at line 1230 of file shapes.h.

References m_Points.

◆ Get_Point_Count()

int CSG_KDTree::Get_Point_Count ( void ) const
inline

Definition at line 1228 of file shapes.h.

References m_Points.

◆ Get_Point_Value() [1/2]

virtual double CSG_KDTree::Get_Point_Value ( int i) const
inlinevirtual

Definition at line 1233 of file shapes.h.

References Get_Point_Value().

Referenced by Get_Point_Value().

◆ Get_Point_Value() [2/2]

virtual double CSG_KDTree::Get_Point_Value ( size_t i) const
pure virtual

Implemented in CSG_KDTree_2D, and CSG_KDTree_3D.

◆ Get_Version()

const char * CSG_KDTree::Get_Version ( void )
static

Definition at line 267 of file kdtree.cpp.

References CSG_String::Format().

◆ is_Okay()

bool CSG_KDTree::is_Okay ( void ) const
inline

Definition at line 1221 of file shapes.h.

References m_pKDTree.

◆ operator[]() [1/2]

double * CSG_KDTree::operator[] ( int i) const
inline

Definition at line 1231 of file shapes.h.

References m_Points.

◆ operator[]() [2/2]

double * CSG_KDTree::operator[] ( size_t i) const
inline

Definition at line 1232 of file shapes.h.

References m_Points.

Member Data Documentation

◆ m_Distances

◆ m_Indices

◆ m_pAdaptor

◆ m_pKDTree

◆ m_Points


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