Public Types | Public Member Functions | Public Attributes | Private Member Functions
vcg::GridStaticPtr2D< OBJTYPE, FLT > Class Template Reference

#include <grid_static_ptr2d.h>

Inheritance diagram for vcg::GridStaticPtr2D< OBJTYPE, FLT >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef Box2< ScalarTypeBox2x
typedef std::vector< OBJTYPE * >
::iterator 
CellIterator
typedef Point2< ScalarTypeCoordType
typedef GridStaticPtr2D
< OBJTYPE, FLT > 
MyGridType
typedef ObjTypeObjPtr
typedef OBJTYPE ObjType
typedef ObjType::ScalarType ScalarType

Public Member Functions

template<class OBJRAYISECTFUNCTOR , class OBJMARKER >
ObjPtr DoRay (OBJRAYISECTFUNCTOR &_rayIntersector, OBJMARKER &_marker, const Ray2< ScalarType > &_ray, const ScalarType &_maxDist, ScalarType &_t)
template<class OBJPOINTDISTFUNCTOR , class OBJMARKER >
ObjPtr GetClosest (OBJPOINTDISTFUNCTOR &_getPointDistance, OBJMARKER &_marker, const typename OBJPOINTDISTFUNCTOR::QueryType &_p, const ScalarType &_maxDist, ScalarType &_minDist, CoordType &_closestPt)
template<class OBJMARKER , class OBJPTRCONTAINER >
unsigned int GetInBox (OBJMARKER &_marker, const vcg::Box2< ScalarType > _bbox, OBJPTRCONTAINER &_objectPtrs)
void Grid (const int x, const int y, CellIterator &first, CellIterator &last)
void Grid (const Point2i pi, CellIterator &first, CellIterator &last)
template<class OBJITER >
void Set (const OBJITER &_oBegin, const OBJITER &_oEnd)

Public Attributes

std::vector< std::vector
< std::vector< OBJTYPE * > > > 
data

Private Member Functions

void Add (const int x, const int y, ObjType *elem)
template<class OBJITER >
void Set (const OBJITER &_oBegin, const OBJITER &_oEnd, const Box2x &_bbox, Point2i _siz)
template<class OBJITER >
void Set (const OBJITER &_oBegin, const OBJITER &_oEnd, const Box2x &_bbox)

Detailed Description

template<class OBJTYPE, class FLT = float>
class vcg::GridStaticPtr2D< OBJTYPE, FLT >

Definition at line 39 of file grid_static_ptr2d.h.


Member Typedef Documentation

template<class OBJTYPE, class FLT = float>
typedef Box2<ScalarType> vcg::GridStaticPtr2D< OBJTYPE, FLT >::Box2x

Reimplemented from vcg::BasicGrid2D< FLT >.

Definition at line 46 of file grid_static_ptr2d.h.

template<class OBJTYPE, class FLT = float>
typedef std::vector<OBJTYPE*>::iterator vcg::GridStaticPtr2D< OBJTYPE, FLT >::CellIterator

Definition at line 48 of file grid_static_ptr2d.h.

template<class OBJTYPE, class FLT = float>
typedef Point2<ScalarType> vcg::GridStaticPtr2D< OBJTYPE, FLT >::CoordType

Reimplemented from vcg::SpatialIndex2D< OBJTYPE, FLT >.

Definition at line 45 of file grid_static_ptr2d.h.

template<class OBJTYPE, class FLT = float>
typedef GridStaticPtr2D<OBJTYPE,FLT> vcg::GridStaticPtr2D< OBJTYPE, FLT >::MyGridType

Definition at line 47 of file grid_static_ptr2d.h.

template<class OBJTYPE, class FLT = float>
typedef ObjType* vcg::GridStaticPtr2D< OBJTYPE, FLT >::ObjPtr

Reimplemented from vcg::SpatialIndex2D< OBJTYPE, FLT >.

Definition at line 43 of file grid_static_ptr2d.h.

template<class OBJTYPE, class FLT = float>
typedef OBJTYPE vcg::GridStaticPtr2D< OBJTYPE, FLT >::ObjType

Reimplemented from vcg::SpatialIndex2D< OBJTYPE, FLT >.

Definition at line 42 of file grid_static_ptr2d.h.

template<class OBJTYPE, class FLT = float>
typedef ObjType::ScalarType vcg::GridStaticPtr2D< OBJTYPE, FLT >::ScalarType

Reimplemented from vcg::SpatialIndex2D< OBJTYPE, FLT >.

Definition at line 44 of file grid_static_ptr2d.h.


Member Function Documentation

template<class OBJTYPE, class FLT = float>
void vcg::GridStaticPtr2D< OBJTYPE, FLT >::Add ( const int  x,
const int  y,
ObjType elem 
) [inline, private]

Definition at line 55 of file grid_static_ptr2d.h.

template<class OBJTYPE, class FLT = float>
template<class OBJRAYISECTFUNCTOR , class OBJMARKER >
ObjPtr vcg::GridStaticPtr2D< OBJTYPE, FLT >::DoRay ( OBJRAYISECTFUNCTOR &  _rayIntersector,
OBJMARKER &  _marker,
const Ray2< ScalarType > &  _ray,
const ScalarType _maxDist,
ScalarType _t 
) [inline]

Definition at line 170 of file grid_static_ptr2d.h.

template<class OBJTYPE, class FLT = float>
template<class OBJPOINTDISTFUNCTOR , class OBJMARKER >
ObjPtr vcg::GridStaticPtr2D< OBJTYPE, FLT >::GetClosest ( OBJPOINTDISTFUNCTOR &  _getPointDistance,
OBJMARKER &  _marker,
const typename OBJPOINTDISTFUNCTOR::QueryType &  _p,
const ScalarType _maxDist,
ScalarType _minDist,
CoordType _closestPt 
) [inline]

Definition at line 149 of file grid_static_ptr2d.h.

template<class OBJTYPE, class FLT = float>
template<class OBJMARKER , class OBJPTRCONTAINER >
unsigned int vcg::GridStaticPtr2D< OBJTYPE, FLT >::GetInBox ( OBJMARKER &  _marker,
const vcg::Box2< ScalarType _bbox,
OBJPTRCONTAINER &  _objectPtrs 
) [inline]

Definition at line 160 of file grid_static_ptr2d.h.

template<class OBJTYPE, class FLT = float>
void vcg::GridStaticPtr2D< OBJTYPE, FLT >::Grid ( const int  x,
const int  y,
CellIterator first,
CellIterator last 
) [inline]

Definition at line 118 of file grid_static_ptr2d.h.

template<class OBJTYPE, class FLT = float>
void vcg::GridStaticPtr2D< OBJTYPE, FLT >::Grid ( const Point2i  pi,
CellIterator first,
CellIterator last 
) [inline]

Definition at line 126 of file grid_static_ptr2d.h.

template<class OBJTYPE, class FLT = float>
template<class OBJITER >
void vcg::GridStaticPtr2D< OBJTYPE, FLT >::Set ( const OBJITER &  _oBegin,
const OBJITER &  _oEnd,
const Box2x _bbox,
Point2i  _siz 
) [inline, private]

allocate space

Definition at line 65 of file grid_static_ptr2d.h.

template<class OBJTYPE, class FLT = float>
template<class OBJITER >
void vcg::GridStaticPtr2D< OBJTYPE, FLT >::Set ( const OBJITER &  _oBegin,
const OBJITER &  _oEnd,
const Box2x _bbox 
) [inline, private]

Definition at line 101 of file grid_static_ptr2d.h.

template<class OBJTYPE, class FLT = float>
template<class OBJITER >
void vcg::GridStaticPtr2D< OBJTYPE, FLT >::Set ( const OBJITER &  _oBegin,
const OBJITER &  _oEnd 
) [inline]

Reimplemented from vcg::SpatialIndex2D< OBJTYPE, FLT >.

Definition at line 134 of file grid_static_ptr2d.h.


Member Data Documentation

template<class OBJTYPE, class FLT = float>
std::vector<std::vector<std::vector<OBJTYPE*> > > vcg::GridStaticPtr2D< OBJTYPE, FLT >::data

Definition at line 49 of file grid_static_ptr2d.h.


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


shape_reconstruction
Author(s): Roberto Martín-Martín
autogenerated on Sat Jun 8 2019 18:41:16