vcg::BasicGrid< SCALARTYPE > Class Template Reference

#include <grid_util.h>

List of all members.

Public Types

typedef Box3< ScalarTypeBox3x
typedef Point3< ScalarTypeCoordType
typedef BasicGrid< SCALARTYPE > GridType
typedef SCALARTYPE ScalarType

Public Member Functions

void BoxToIBox (const Box3x &b, Box3i &ib) const
void ComputeDimAndVoxel ()
 Dimensions of a single cell.
Point3i GridP (const Point3< ScalarType > &p) const
void IBoxToBox (const Box3i &ib, Box3x &b) const
 Dato un box in voxel ritorna gli estremi del box reale.
void IPfToPf (const CoordType &pi, CoordType &p) const
void IPiToBox (const Point3i &pi, Box3x &b) const
void IPiToBoxCenter (const Point3i &pi, CoordType &c) const
void IPiToPf (const Point3i &pi, CoordType &p) const
void PToIP (const CoordType &p, Point3i &pi) const

Public Attributes

Box3x bbox
CoordType dim
Point3i siz
 Spatial Dimention (edge legth) of the bounding box.
CoordType voxel
 Number of cells forming the grid.

Detailed Description

template<class SCALARTYPE>
class vcg::BasicGrid< SCALARTYPE >

BasicGrid

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 95 of file grid_util.h.


Member Typedef Documentation

template<class SCALARTYPE>
typedef Box3<ScalarType> vcg::BasicGrid< SCALARTYPE >::Box3x
template<class SCALARTYPE>
typedef Point3<ScalarType> vcg::BasicGrid< SCALARTYPE >::CoordType
template<class SCALARTYPE>
typedef BasicGrid<SCALARTYPE> vcg::BasicGrid< SCALARTYPE >::GridType
template<class SCALARTYPE>
typedef SCALARTYPE vcg::BasicGrid< SCALARTYPE >::ScalarType

Member Function Documentation

template<class SCALARTYPE>
void vcg::BasicGrid< SCALARTYPE >::BoxToIBox ( const Box3x b,
Box3i ib 
) const [inline]

Definition at line 195 of file grid_util.h.

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

Dimensions of a single cell.

Definition at line 114 of file grid_util.h.

template<class SCALARTYPE>
Point3i vcg::BasicGrid< SCALARTYPE >::GridP ( const Point3< ScalarType > &  p  )  const [inline]

Definition at line 125 of file grid_util.h.

template<class SCALARTYPE>
void vcg::BasicGrid< SCALARTYPE >::IBoxToBox ( const Box3i ib,
Box3x b 
) const [inline]

Dato un box in voxel ritorna gli estremi del box reale.

Definition at line 207 of file grid_util.h.

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

Definition at line 183 of file grid_util.h.

template<class SCALARTYPE>
void vcg::BasicGrid< SCALARTYPE >::IPiToBox ( const Point3i pi,
Box3x b 
) const [inline]

Definition at line 160 of file grid_util.h.

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

Definition at line 174 of file grid_util.h.

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

Definition at line 148 of file grid_util.h.

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

Definition at line 136 of file grid_util.h.


Member Data Documentation

template<class SCALARTYPE>
Box3x vcg::BasicGrid< SCALARTYPE >::bbox

Definition at line 104 of file grid_util.h.

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

Definition at line 106 of file grid_util.h.

template<class SCALARTYPE>
Point3i vcg::BasicGrid< SCALARTYPE >::siz

Spatial Dimention (edge legth) of the bounding box.

Definition at line 107 of file grid_util.h.

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

Number of cells forming the grid.

Definition at line 108 of file grid_util.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:57 2013