| 
    DGtal
    0.6.devel
    
   | 
 
#include <Lattice.h>

Public Types | |
| typedef TSpace | Space | 
| typedef TSpace::Integer | Integer | 
| typedef TSpace::Point | Point | 
| typedef TSpace::Dimension | Dimension | 
Public Member Functions | |
| ~Lattice () | |
| Lattice () | |
| Lattice (const Lattice< Space > &other) | |
| Lattice< Space > & | operator= (const Lattice< Space > &other) | 
| void | init (Dimension aN, Dimension aM, double dh=1.0) | 
| void | clear () | 
| Dimension | n () const | 
| Dimension | m () const | 
| void | setOrigin (const double *x) | 
| void | setVector (Dimension i, const double *v) | 
| void | immerse (const Integer *p, double *x) const | 
| void | immerse (const Point &p, double *x) const | 
| void | immerse (const Integer *p, float *x) const | 
| void | immerse (const Point &p, float *x) const | 
| void | selfDisplay (std::ostream &out) const | 
| bool | isValid () const | 
Static Public Member Functions | |
| static void | defaultZ2toZ3 (Lattice &l, const double *x0, double dh=1.0) | 
| static void | defaultZ3toZ3 (Lattice &l, const double *x0, double dh=1.0) | 
Private Member Functions | |
| BOOST_CONCEPT_ASSERT ((CSpace< TSpace >)) | |
Private Attributes | |
| unsigned int | myN | 
| unsigned int | myM | 
| double * | myX0 | 
| double * | myV | 
Aim: Represents an n-dimensional integer lattice in an m-dimensional real vector space.
Description of template class 'Lattice'
| TSpace | the source digital space for the lattice. | 
| typedef TSpace::Dimension DGtal::Lattice< TSpace >::Dimension | 
| typedef TSpace::Integer DGtal::Lattice< TSpace >::Integer | 
| typedef TSpace::Point DGtal::Lattice< TSpace >::Point | 
| typedef TSpace DGtal::Lattice< TSpace >::Space | 
      
  | 
  inline | 
      
  | 
  inline | 
| DGtal::Lattice< TSpace >::Lattice | ( | const Lattice< Space > & | other | ) | 
Copy constructor.
| other | the object to clone. | 
Definition at line 120 of file Lattice.ih.
References DGtal::Lattice< TSpace >::myM, DGtal::Lattice< TSpace >::myN, DGtal::Lattice< TSpace >::myV, and DGtal::Lattice< TSpace >::myX0.
      
  | 
  private | 
      
  | 
  inline | 
      
  | 
  static | 
Constructs a default 2D lattice centered at [x0], with vectors (dh,0,0) and (0,dh,0).
| l | (returns) the lattice | 
| x0 | the origin of the lattice embedding (a 3D point) | 
| dh | the grid step or length of each vector. | 
      
  | 
  static | 
Constructs a default 3D lattice centered at [x0], with vectors (dh,0,0) and (0,dh,0) and (0,0,dh).
| l | (returns) the lattice | 
| x0 | the origin of the lattice embedding (a 3D point) | 
| dh | the grid step or length of each vector. | 
      
  | 
  inline | 
Immerse a point of the lattice into the target space of dimension m.
| p | the n coordinates of a point in the lattice. | 
| x | (returns) its m coordinates in the target space of dimension m. | 
Definition at line 260 of file Lattice.ih.
      
  | 
  inline | 
Immerse a point of the lattice into the target space of dimension m.
| p | the n coordinates of a point in the lattice. | 
| x | (returns) its m coordinates in the target space of dimension m. | 
Definition at line 286 of file Lattice.ih.
      
  | 
  inline | 
Immerse a point of the lattice into the target space of dimension m.
| p | the n coordinates of a point in the lattice. | 
| x | (returns) its m coordinates in the target space of dimension m. | 
Definition at line 312 of file Lattice.ih.
      
  | 
  inline | 
Immerse a point of the lattice into the target space of dimension m.
| p | the n coordinates of a point in the lattice. | 
| x | (returns) its m coordinates in the target space of dimension m. | 
Definition at line 338 of file Lattice.ih.
      
  | 
  inline | 
Defines the standard lattice when aN=aM, the standard injection when aN < aM, and when aM > aN, vectors are overlapping.
| aN | the dimension of the lattice space | 
| aM | the dimension of the target space where the lattice is represented. | 
| dh | the length of the elementary displacement. | 
Defines the standard lattice when n=m, the standard injection when n < m, and when m > n, vectors are overlapping.
| n | the dimension of the lattice space | 
| m | the dimension of the target space where the lattice is represented. | 
| dh | the length of the elementary displacement. | 
Definition at line 186 of file Lattice.ih.
Referenced by DGtal::DGtalInventor< TSpace >::DGtalInventor().
      
  | 
  inline | 
Checks the validity/consistency of the object.
Definition at line 85 of file Lattice.ih.
      
  | 
  inline | 
Definition at line 58 of file Lattice.ih.
      
  | 
  inline | 
Definition at line 47 of file Lattice.ih.
Referenced by DGtal::DGtalInventor< TSpace >::setLattice().
      
  | 
  inline | 
Assignment.
| other | the object to copy. | 
Definition at line 143 of file Lattice.ih.
References DGtal::Lattice< TSpace >::myM, DGtal::Lattice< TSpace >::myN, DGtal::Lattice< TSpace >::myV, and DGtal::Lattice< TSpace >::myX0.
      
  | 
  inline | 
Writes/Displays the object on an output stream.
| out | the output stream where the object is written. | 
Definition at line 73 of file Lattice.ih.
      
  | 
  inline | 
Sets the origin of the space.
| x | is a vector of size m. | 
Definition at line 228 of file Lattice.ih.
      
  | 
  inline | 
      
  | 
  private | 
Dimension of target space;
Definition at line 227 of file Lattice.h.
Referenced by DGtal::Lattice< TSpace >::Lattice(), and DGtal::Lattice< TSpace >::operator=().
      
  | 
  private | 
Dimension of lattice space;
Definition at line 222 of file Lattice.h.
Referenced by DGtal::Lattice< TSpace >::Lattice(), and DGtal::Lattice< TSpace >::operator=().
      
  | 
  private | 
Vectors for each dimension. Array of size m_n times m_m;
Definition at line 237 of file Lattice.h.
Referenced by DGtal::Lattice< TSpace >::Lattice(), and DGtal::Lattice< TSpace >::operator=().
      
  | 
  private | 
Origin. Array of size m_m;
Definition at line 232 of file Lattice.h.
Referenced by DGtal::Lattice< TSpace >::Lattice(), and DGtal::Lattice< TSpace >::operator=().
 1.8.1.1