vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER > Class Template Reference

#include <space_iterators.h>

List of all members.

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 ()
ObjTypeoperator* ()
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_TypeElems
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< ScalarTypeCoordType
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 ()

Detailed Description

template<class Spatial_Idexing, class DISTFUNCTOR, class TMARKER>
class vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >

Definition at line 336 of file space_iterators.h.


Member Typedef Documentation

template<class Spatial_Idexing, class DISTFUNCTOR, class TMARKER>
typedef Spatial_Idexing::CellIterator vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::CellIterator [private]

Definition at line 341 of file space_iterators.h.

template<class Spatial_Idexing, class DISTFUNCTOR, class TMARKER>
typedef vcg::Point3<ScalarType> vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::CoordType [private]

Definition at line 340 of file space_iterators.h.

template<class Spatial_Idexing, class DISTFUNCTOR, class TMARKER>
typedef std::vector<Entry_Type>::reverse_iterator vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::ElemIterator [protected]

Definition at line 534 of file space_iterators.h.

template<class Spatial_Idexing, class DISTFUNCTOR, class TMARKER>
typedef Spatial_Idexing::ObjType vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::ObjType [private]

Definition at line 338 of file space_iterators.h.

template<class Spatial_Idexing, class DISTFUNCTOR, class TMARKER>
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.


Constructor & Destructor Documentation

template<class Spatial_Idexing, class DISTFUNCTOR, class TMARKER>
vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::ClosestIterator ( Spatial_Idexing &  _Si,
DISTFUNCTOR  _dist_funct 
) [inline]

contructor

Definition at line 390 of file space_iterators.h.


Member Function Documentation

template<class Spatial_Idexing, class DISTFUNCTOR, class TMARKER>
bool vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::_EndGrid (  )  [inline, private]

control the end of scanning

Definition at line 346 of file space_iterators.h.

template<class Spatial_Idexing, class DISTFUNCTOR, class TMARKER>
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.

template<class Spatial_Idexing, class DISTFUNCTOR, class TMARKER>
void vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::_UpdateRadius (  )  [inline, private]

Definition at line 353 of file space_iterators.h.

template<class Spatial_Idexing, class DISTFUNCTOR, class TMARKER>
ScalarType vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::Dist (  )  [inline]

Definition at line 487 of file space_iterators.h.

template<class Spatial_Idexing, class DISTFUNCTOR, class TMARKER>
bool vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::End (  )  [inline]

Definition at line 423 of file space_iterators.h.

template<class Spatial_Idexing, class DISTFUNCTOR, class TMARKER>
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.

template<class Spatial_Idexing, class DISTFUNCTOR, class TMARKER>
CoordType vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::NearestPoint (  )  [inline]

Definition at line 495 of file space_iterators.h.

template<class Spatial_Idexing, class DISTFUNCTOR, class TMARKER>
ObjType& vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::operator* (  )  [inline]

Definition at line 483 of file space_iterators.h.

template<class Spatial_Idexing, class DISTFUNCTOR, class TMARKER>
void vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::operator++ (  )  [inline]

Definition at line 472 of file space_iterators.h.

template<class Spatial_Idexing, class DISTFUNCTOR, class TMARKER>
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.

template<class Spatial_Idexing, class DISTFUNCTOR, class TMARKER>
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.

template<class Spatial_Idexing, class DISTFUNCTOR, class TMARKER>
void vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::SetMarker ( TMARKER  _tm  )  [inline]

Definition at line 396 of file space_iterators.h.

template<class Spatial_Idexing, class DISTFUNCTOR, class TMARKER>
bool vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::ToUpdate (  )  [inline]

Definition at line 469 of file space_iterators.h.


Member Data Documentation

template<class Spatial_Idexing, class DISTFUNCTOR, class TMARKER>
ElemIterator vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::CurrentElem [protected]

Definition at line 535 of file space_iterators.h.

template<class Spatial_Idexing, class DISTFUNCTOR, class TMARKER>
DISTFUNCTOR& vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::dist_funct [protected]

Definition at line 531 of file space_iterators.h.

template<class Spatial_Idexing, class DISTFUNCTOR, class TMARKER>
std::vector<Entry_Type> vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::Elems [protected]

Definition at line 529 of file space_iterators.h.

template<class Spatial_Idexing, class DISTFUNCTOR, class TMARKER>
bool vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::end [protected]

Definition at line 523 of file space_iterators.h.

template<class Spatial_Idexing, class DISTFUNCTOR, class TMARKER>
vcg::Box3i vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::explored [protected]

Definition at line 525 of file space_iterators.h.

template<class Spatial_Idexing, class DISTFUNCTOR, class TMARKER>
ScalarType vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::max_dist [protected]

Definition at line 524 of file space_iterators.h.

template<class Spatial_Idexing, class DISTFUNCTOR, class TMARKER>
CoordType vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::p [protected]

Definition at line 521 of file space_iterators.h.

template<class Spatial_Idexing, class DISTFUNCTOR, class TMARKER>
ScalarType vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::radius [protected]

Definition at line 527 of file space_iterators.h.

template<class Spatial_Idexing, class DISTFUNCTOR, class TMARKER>
Spatial_Idexing& vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::Si [protected]

Definition at line 522 of file space_iterators.h.

template<class Spatial_Idexing, class DISTFUNCTOR, class TMARKER>
ScalarType vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::step_size [protected]

Definition at line 528 of file space_iterators.h.

template<class Spatial_Idexing, class DISTFUNCTOR, class TMARKER>
TMARKER vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::tm [protected]

Definition at line 532 of file space_iterators.h.

template<class Spatial_Idexing, class DISTFUNCTOR, class TMARKER>
vcg::Box3i vcg::ClosestIterator< Spatial_Idexing, DISTFUNCTOR, TMARKER >::to_explore [protected]

Definition at line 526 of file space_iterators.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:22:58 2013