SAGA API  v9.5
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 1215 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()

void CSG_KDTree::_On_Construction ( void  )
protected

Definition at line 260 of file kdtree.cpp.

References m_pAdaptor, and m_pKDTree.

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

◆ Destroy()

bool CSG_KDTree::Destroy ( void  )
virtual

◆ Get_Match_Count()

size_t CSG_KDTree::Get_Match_Count ( void  ) const
inline

Definition at line 1227 of file shapes.h.

Referenced by Get_Match_Shape(), and CSG_Parameters_Point_Search_KDTree_2D::Get_Point().

◆ Get_Match_Distance()

double CSG_KDTree::Get_Match_Distance ( size_t  i) const
inline

Definition at line 1229 of file shapes.h.

◆ Get_Match_Index()

size_t CSG_KDTree::Get_Match_Index ( size_t  i) const
inline

Definition at line 1228 of file shapes.h.

Referenced by Get_Match_Shape().

◆ Get_Match_Shape()

CSG_Shape * CSG_KDTree::Get_Match_Shape ( size_t  i) const

◆ Get_Point() [1/2]

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

◆ Get_Point() [2/2]

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

Definition at line 1234 of file shapes.h.

◆ Get_Point_Count()

int CSG_KDTree::Get_Point_Count ( void  ) const
inline

Definition at line 1232 of file shapes.h.

◆ Get_Point_Value() [1/2]

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

Definition at line 1237 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_3D, and CSG_KDTree_2D.

◆ 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 1225 of file shapes.h.

◆ operator[]() [1/2]

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

Definition at line 1235 of file shapes.h.

◆ operator[]() [2/2]

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

Definition at line 1236 of file shapes.h.

Member Data Documentation

◆ m_Distances

◆ m_Indices

◆ m_pAdaptor

class CSG_KDTree_Adaptor* CSG_KDTree::m_pAdaptor
protected

◆ m_pKDTree

◆ m_Points


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