Public Types | Public Member Functions | Public Attributes
vcg::BasicGrid2D< SCALARTYPE > Class Template Reference

#include <grid_util2d.h>

List of all members.

Public Types

typedef Box2< ScalarTypeBox2x
typedef Point2< ScalarTypeCoordType
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.

Detailed Description

template<class SCALARTYPE>
class vcg::BasicGrid2D< SCALARTYPE >

BasicGrid2D

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.


Member Typedef Documentation

template<class SCALARTYPE>
typedef Box2<ScalarType> vcg::BasicGrid2D< SCALARTYPE >::Box2x
template<class SCALARTYPE>
typedef Point2<ScalarType> vcg::BasicGrid2D< SCALARTYPE >::CoordType
template<class SCALARTYPE>
typedef BasicGrid2D<SCALARTYPE> vcg::BasicGrid2D< SCALARTYPE >::GridType

Definition at line 62 of file grid_util2d.h.

template<class SCALARTYPE>
typedef SCALARTYPE vcg::BasicGrid2D< SCALARTYPE >::ScalarType

Member Function Documentation

template<class SCALARTYPE>
void vcg::BasicGrid2D< SCALARTYPE >::BoxToIBox ( const Box2x b,
Box2i ib 
) const [inline]

Definition at line 151 of file grid_util2d.h.

template<class SCALARTYPE>
void vcg::BasicGrid2D< SCALARTYPE >::ComputeDimAndVoxel ( ) [inline]

Dimensions of a single cell.

Definition at line 74 of file grid_util2d.h.

template<class SCALARTYPE>
Point2i vcg::BasicGrid2D< SCALARTYPE >::GridP ( const Point2< ScalarType > &  p) const [inline]

Definition at line 85 of file grid_util2d.h.

template<class SCALARTYPE>
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.

template<class SCALARTYPE>
void vcg::BasicGrid2D< SCALARTYPE >::IPfToPf ( const CoordType pi,
CoordType p 
) const [inline]

Definition at line 140 of file grid_util2d.h.

template<class SCALARTYPE>
void vcg::BasicGrid2D< SCALARTYPE >::IPiToBox ( const Point2i pi,
Box2x b 
) const [inline]

Definition at line 118 of file grid_util2d.h.

template<class SCALARTYPE>
void vcg::BasicGrid2D< SCALARTYPE >::IPiToBoxCenter ( const Point2i pi,
CoordType c 
) const [inline]

Definition at line 131 of file grid_util2d.h.

template<class SCALARTYPE>
void vcg::BasicGrid2D< SCALARTYPE >::IPiToPf ( const Point2i pi,
CoordType p 
) const [inline]

Definition at line 107 of file grid_util2d.h.

template<class SCALARTYPE>
void vcg::BasicGrid2D< SCALARTYPE >::PToIP ( const CoordType p,
Point2i pi 
) const [inline]

Definition at line 96 of file grid_util2d.h.


Member Data Documentation

template<class SCALARTYPE>
Box2x vcg::BasicGrid2D< SCALARTYPE >::bbox

Definition at line 64 of file grid_util2d.h.

template<class SCALARTYPE>
CoordType vcg::BasicGrid2D< SCALARTYPE >::dim

Definition at line 66 of file grid_util2d.h.

template<class SCALARTYPE>
Point2i vcg::BasicGrid2D< SCALARTYPE >::siz

Spatial Dimention (edge legth) of the bounding box.

Definition at line 67 of file grid_util2d.h.

template<class SCALARTYPE>
CoordType vcg::BasicGrid2D< SCALARTYPE >::voxel

Number of cells forming the grid.

Definition at line 68 of file grid_util2d.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:10