#include <grid_util2d.h>
Public Types | |
| typedef Box2< ScalarType > | Box2x |
| typedef Point2< ScalarType > | CoordType |
| typedef BasicGrid2D< SCALARTYPE > | GridType |
| typedef SCALARTYPE | ScalarType |
Public Member Functions | |
| void | BoxToIBox (const Box2x &b, Box2i &ib) const |
| void | ComputeDimAndVoxel () |
| Dimensions of a single cell. | |
| Point2i | GridP (const Point2< ScalarType > &p) const |
| void | IBoxToBox (const Box2i &ib, Box2x &b) const |
| Dato un box in voxel ritorna gli estremi del box reale. | |
| void | IPfToPf (const CoordType &pi, CoordType &p) const |
| void | IPiToBox (const Point2i &pi, Box2x &b) const |
| void | IPiToBoxCenter (const Point2i &pi, CoordType &c) const |
| void | IPiToPf (const Point2i &pi, CoordType &p) const |
| void | PToIP (const CoordType &p, Point2i &pi) const |
Public Attributes | |
| Box2x | bbox |
| CoordType | dim |
| Point2i | siz |
| Spatial Dimention (edge legth) of the bounding box. | |
| CoordType | voxel |
| Number of cells forming the grid. | |
Basic Class abstracting a gridded structure in a 3d space; Usueful for having coherent float to integer conversion in a unique place: Some Notes:
OBJTYPE: Type of the indexed objects. SCALARTYPE: Scalars type for structure's internal data (may differ from object's scalar type).
Definition at line 55 of file grid_util2d.h.
| typedef Box2<ScalarType> vcg::BasicGrid2D< SCALARTYPE >::Box2x |
Reimplemented in vcg::SpatialHashTable2D< ObjType, FLT >, and vcg::GridStaticPtr2D< OBJTYPE, FLT >.
Definition at line 60 of file grid_util2d.h.
| typedef Point2<ScalarType> vcg::BasicGrid2D< SCALARTYPE >::CoordType |
Reimplemented in vcg::SpatialHashTable2D< ObjType, FLT >, and vcg::GridStaticPtr2D< OBJTYPE, FLT >.
Definition at line 61 of file grid_util2d.h.
| typedef BasicGrid2D<SCALARTYPE> vcg::BasicGrid2D< SCALARTYPE >::GridType |
Definition at line 62 of file grid_util2d.h.
| typedef SCALARTYPE vcg::BasicGrid2D< SCALARTYPE >::ScalarType |
Reimplemented in vcg::SpatialHashTable2D< ObjType, FLT >, and vcg::GridStaticPtr2D< OBJTYPE, FLT >.
Definition at line 59 of file grid_util2d.h.
| void vcg::BasicGrid2D< SCALARTYPE >::BoxToIBox | ( | const Box2x & | b, |
| Box2i & | ib | ||
| ) | const [inline] |
Definition at line 151 of file grid_util2d.h.
| void vcg::BasicGrid2D< SCALARTYPE >::ComputeDimAndVoxel | ( | ) | [inline] |
Dimensions of a single cell.
Definition at line 74 of file grid_util2d.h.
| Point2i vcg::BasicGrid2D< SCALARTYPE >::GridP | ( | const Point2< ScalarType > & | p | ) | const [inline] |
Definition at line 85 of file grid_util2d.h.
| void vcg::BasicGrid2D< SCALARTYPE >::IBoxToBox | ( | const Box2i & | ib, |
| Box2x & | b | ||
| ) | const [inline] |
Dato un box in voxel ritorna gli estremi del box reale.
Definition at line 163 of file grid_util2d.h.
| void vcg::BasicGrid2D< SCALARTYPE >::IPfToPf | ( | const CoordType & | pi, |
| CoordType & | p | ||
| ) | const [inline] |
Definition at line 140 of file grid_util2d.h.
| void vcg::BasicGrid2D< SCALARTYPE >::IPiToBox | ( | const Point2i & | pi, |
| Box2x & | b | ||
| ) | const [inline] |
Definition at line 118 of file grid_util2d.h.
| void vcg::BasicGrid2D< SCALARTYPE >::IPiToBoxCenter | ( | const Point2i & | pi, |
| CoordType & | c | ||
| ) | const [inline] |
Definition at line 131 of file grid_util2d.h.
| void vcg::BasicGrid2D< SCALARTYPE >::IPiToPf | ( | const Point2i & | pi, |
| CoordType & | p | ||
| ) | const [inline] |
Definition at line 107 of file grid_util2d.h.
| void vcg::BasicGrid2D< SCALARTYPE >::PToIP | ( | const CoordType & | p, |
| Point2i & | pi | ||
| ) | const [inline] |
Definition at line 96 of file grid_util2d.h.
| Box2x vcg::BasicGrid2D< SCALARTYPE >::bbox |
Definition at line 64 of file grid_util2d.h.
| CoordType vcg::BasicGrid2D< SCALARTYPE >::dim |
Definition at line 66 of file grid_util2d.h.
| Point2i vcg::BasicGrid2D< SCALARTYPE >::siz |
Spatial Dimention (edge legth) of the bounding box.
Definition at line 67 of file grid_util2d.h.
| CoordType vcg::BasicGrid2D< SCALARTYPE >::voxel |
Number of cells forming the grid.
Definition at line 68 of file grid_util2d.h.