HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_LineTree Class Reference

#include <UT_LineTree.h>

Public Member Functions

 UT_LineTree ()
 
 ~UT_LineTree ()
 
 UT_LineTree (const UT_LineTree &)=delete
 
UT_LineTreeoperator= (const UT_LineTree &)=delete
 
int addLine (const UT_Vector3 &pt1, const UT_Vector3 &pt2)
 
int size () const
 
void setCapacity (unsigned capacity)
 
bool buildTree ()
 
void clear ()
 
int findNearestLineSegment (const UT_Vector3 &pt, float *dist2=NULL) const
 
unsigned findKNearestLineSegments (const UT_Vector3 &pt, int line_id[], float line_dist2[], unsigned max_lines, float max_dist2) const
 
unsigned findKNearestLineSegments (const UT_Vector3 &pt, int line_id[], float line_dist2[], unsigned max_lines) const
 
void requestThreshold (unsigned threshold)
 
bool getLineById (int id, UT_Vector3 &pt1, UT_Vector3 &pt2)
 
void reverseLine (int id)
 
const UT_Vector3linePos1 (int id) const
 
const UT_Vector3linePos2 (int id) const
 
void dumpTree (bool verbose=true) const
 

Detailed Description

Definition at line 30 of file UT_LineTree.h.

Constructor & Destructor Documentation

UT_LineTree::UT_LineTree ( )
UT_LineTree::~UT_LineTree ( )
UT_LineTree::UT_LineTree ( const UT_LineTree )
delete

Member Function Documentation

int UT_LineTree::addLine ( const UT_Vector3 pt1,
const UT_Vector3 pt2 
)
bool UT_LineTree::buildTree ( )
void UT_LineTree::clear ( )
void UT_LineTree::dumpTree ( bool  verbose = true) const
unsigned UT_LineTree::findKNearestLineSegments ( const UT_Vector3 pt,
int  line_id[],
float  line_dist2[],
unsigned  max_lines,
float  max_dist2 
) const
unsigned UT_LineTree::findKNearestLineSegments ( const UT_Vector3 pt,
int  line_id[],
float  line_dist2[],
unsigned  max_lines 
) const
int UT_LineTree::findNearestLineSegment ( const UT_Vector3 pt,
float dist2 = NULL 
) const
bool UT_LineTree::getLineById ( int  id,
UT_Vector3 pt1,
UT_Vector3 pt2 
)
const UT_Vector3& UT_LineTree::linePos1 ( int  id) const
inline

Definition at line 94 of file UT_LineTree.h.

const UT_Vector3& UT_LineTree::linePos2 ( int  id) const
inline

Definition at line 95 of file UT_LineTree.h.

UT_LineTree& UT_LineTree::operator= ( const UT_LineTree )
delete
void UT_LineTree::requestThreshold ( unsigned  threshold)
inline

Definition at line 83 of file UT_LineTree.h.

void UT_LineTree::reverseLine ( int  id)
inline

Definition at line 91 of file UT_LineTree.h.

void UT_LineTree::setCapacity ( unsigned  capacity)
inline

Definition at line 47 of file UT_LineTree.h.

int UT_LineTree::size ( void  ) const
inline

Definition at line 43 of file UT_LineTree.h.


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