Public Types | Public Member Functions | Public Attributes
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.
template<class OtherScalarType >
void IPfToPf (const Point3< OtherScalarType > &pi, Point3< OtherScalarType > &p) const
void IPiToBox (const Point3i &pi, Box3x &b) const
void IPiToBoxCenter (const Point3i &pi, CoordType &c) const
template<class OtherScalarType >
void IPiToPf (const Point3i &pi, Point3< OtherScalarType > &p) const
Matrix44< ScalarTypeIPtoPfMatrix () 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 54 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 162 of file grid_util.h.

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

Dimensions of a single cell.

Definition at line 73 of file grid_util.h.

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

Definition at line 84 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 174 of file grid_util.h.

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

Definition at line 151 of file grid_util.h.

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

Definition at line 127 of file grid_util.h.

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

Definition at line 141 of file grid_util.h.

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

Definition at line 108 of file grid_util.h.

template<class SCALARTYPE>
Matrix44<ScalarType> vcg::BasicGrid< SCALARTYPE >::IPtoPfMatrix ( ) const [inline]

Definition at line 117 of file grid_util.h.

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

Definition at line 95 of file grid_util.h.


Member Data Documentation

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

Definition at line 63 of file grid_util.h.

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

Definition at line 65 of file grid_util.h.

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

Spatial Dimention (edge legth) of the bounding box.

Definition at line 66 of file grid_util.h.

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

Number of cells forming the grid.

Definition at line 67 of file grid_util.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