#include <space_iterators.h>
Classes | |
struct | Entry_Type |
structure that mantain for the current cell pre-calculated data More... | |
Public Member Functions | |
ClosestIterator (Spatial_Idexing &_Si, DISTFUNCTOR _dist_funct) | |
contructor | |
ScalarType | Dist () |
bool | End () |
void | Init (CoordType _p, const ScalarType &_max_dist) |
initialize the Iterator | |
CoordType | NearestPoint () |
ObjType & | operator* () |
void | operator++ () |
bool | Refresh () |
refresh Object found also considering current shere radius, | |
void | SetIndexStructure (Spatial_Idexing &_Si) |
set the current spatial indexing structure used | |
void | SetMarker (TMARKER _tm) |
bool | ToUpdate () |
Protected Types | |
typedef std::vector < Entry_Type > ::reverse_iterator | ElemIterator |
Protected Attributes | |
ElemIterator | CurrentElem |
DISTFUNCTOR & | dist_funct |
std::vector< Entry_Type > | Elems |
bool | end |
vcg::Box3i | explored |
ScalarType | max_dist |
CoordType | p |
ScalarType | radius |
Spatial_Idexing & | Si |
ScalarType | step_size |
TMARKER | tm |
vcg::Box3i | to_explore |
Private Types | |
typedef Spatial_Idexing::CellIterator | CellIterator |
typedef vcg::Point3< ScalarType > | CoordType |
typedef Spatial_Idexing::ObjType | ObjType |
typedef Spatial_Idexing::ScalarType | ScalarType |
Private Member Functions | |
bool | _EndGrid () |
control the end of scanning | |
bool | _NextShell () |
add cell to the curren set of explored cells | |
void | _UpdateRadius () |
Definition at line 336 of file space_iterators.h.
typedef Spatial_Idexing::CellIterator vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::CellIterator [private] |
Definition at line 341 of file space_iterators.h.
typedef vcg::Point3<ScalarType> vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::CoordType [private] |
Definition at line 340 of file space_iterators.h.
typedef std::vector<Entry_Type>::reverse_iterator vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::ElemIterator [protected] |
Definition at line 534 of file space_iterators.h.
typedef Spatial_Idexing::ObjType vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::ObjType [private] |
Definition at line 338 of file space_iterators.h.
typedef Spatial_Idexing::ScalarType vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::ScalarType [private] |
Reimplemented in vcg::tri::ClosestFaceIterator< GRID, MESH >.
Definition at line 339 of file space_iterators.h.
vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::ClosestIterator | ( | Spatial_Idexing & | _Si, | |
DISTFUNCTOR | _dist_funct | |||
) | [inline] |
contructor
Definition at line 390 of file space_iterators.h.
bool vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::_EndGrid | ( | ) | [inline, private] |
control the end of scanning
Definition at line 346 of file space_iterators.h.
bool vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::_NextShell | ( | ) | [inline, private] |
add cell to the curren set of explored cells
Definition at line 365 of file space_iterators.h.
void vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::_UpdateRadius | ( | ) | [inline, private] |
Definition at line 353 of file space_iterators.h.
ScalarType vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::Dist | ( | ) | [inline] |
Definition at line 487 of file space_iterators.h.
bool vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::End | ( | ) | [inline] |
Definition at line 423 of file space_iterators.h.
void vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::Init | ( | CoordType | _p, | |
const ScalarType & | _max_dist | |||
) | [inline] |
initialize the Iterator
inflate the bbox until find a valid bbox
Definition at line 402 of file space_iterators.h.
CoordType vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::NearestPoint | ( | ) | [inline] |
Definition at line 495 of file space_iterators.h.
ObjType& vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::operator* | ( | ) | [inline] |
Definition at line 483 of file space_iterators.h.
void vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::operator++ | ( | ) | [inline] |
Definition at line 472 of file space_iterators.h.
bool vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::Refresh | ( | ) | [inline] |
refresh Object found also considering current shere radius,
Definition at line 429 of file space_iterators.h.
void vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::SetIndexStructure | ( | Spatial_Idexing & | _Si | ) | [inline] |
set the current spatial indexing structure used
Definition at line 393 of file space_iterators.h.
void vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::SetMarker | ( | TMARKER | _tm | ) | [inline] |
Definition at line 396 of file space_iterators.h.
bool vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::ToUpdate | ( | ) | [inline] |
Definition at line 469 of file space_iterators.h.
ElemIterator vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::CurrentElem [protected] |
Definition at line 535 of file space_iterators.h.
DISTFUNCTOR& vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::dist_funct [protected] |
Definition at line 531 of file space_iterators.h.
std::vector<Entry_Type> vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::Elems [protected] |
Definition at line 529 of file space_iterators.h.
bool vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::end [protected] |
Definition at line 523 of file space_iterators.h.
vcg::Box3i vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::explored [protected] |
Definition at line 525 of file space_iterators.h.
ScalarType vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::max_dist [protected] |
Definition at line 524 of file space_iterators.h.
CoordType vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::p [protected] |
Definition at line 521 of file space_iterators.h.
ScalarType vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::radius [protected] |
Definition at line 527 of file space_iterators.h.
Spatial_Idexing& vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::Si [protected] |
Definition at line 522 of file space_iterators.h.
ScalarType vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::step_size [protected] |
Definition at line 528 of file space_iterators.h.
TMARKER vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::tm [protected] |
Definition at line 532 of file space_iterators.h.
vcg::Box3i vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::to_explore [protected] |
Definition at line 526 of file space_iterators.h.