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

#include <UT_LineTree.h>

Public Member Functions

 UT_LineTree ()
 
virtual ~UT_LineTree ()
 
int addLine (const UT_Vector3 &pt1, const UT_Vector3 &pt2)
 
int size () const
 
int 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) const
 
void requestThreshold (unsigned threshold)
 
int 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 27 of file UT_LineTree.h.

Constructor & Destructor Documentation

UT_LineTree::UT_LineTree ( )
virtual UT_LineTree::~UT_LineTree ( )
virtual

Member Function Documentation

int UT_LineTree::addLine ( const UT_Vector3 pt1,
const UT_Vector3 pt2 
)
int 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 
) const
int UT_LineTree::findNearestLineSegment ( const UT_Vector3 pt,
float *  dist2 = NULL 
) const
int UT_LineTree::getLineById ( int  id,
UT_Vector3 pt1,
UT_Vector3 pt2 
)
const UT_Vector3& UT_LineTree::linePos1 ( int  id) const
inline

Definition at line 75 of file UT_LineTree.h.

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

Definition at line 76 of file UT_LineTree.h.

void UT_LineTree::requestThreshold ( unsigned  threshold)
inline

Definition at line 64 of file UT_LineTree.h.

void UT_LineTree::reverseLine ( int  id)
inline

Definition at line 72 of file UT_LineTree.h.

int UT_LineTree::size ( void  ) const
inline

Definition at line 37 of file UT_LineTree.h.


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