DGtal
0.6.devel
|
#include <SpaceND.h>
Data Structures | |
struct | Subcospace |
Define the type of a sub co-Space. More... | |
struct | Subspace |
Define the type of a subspace. More... |
Public Types | |
typedef TInteger | Integer |
typedef NumberTraits< Integer > ::UnsignedVersion | UnsignedInteger |
typedef UnsignedInteger | Size |
typedef PointVector< dim, Integer > | Point |
typedef PointVector< dim, Integer > | Vector |
typedef PointVector< dim, double > | RealPoint |
typedef PointVector< dim, double > | RealVector |
typedef SpaceND< dim, Integer > | Space |
typedef Space | Self |
typedef DGtal::Dimension | Dimension |
Static Public Member Functions | |
static void | selfDisplay (std::ostream &out) |
Static Public Attributes | |
static const Dimension | dimension = dim |
Private Member Functions | |
BOOST_CONCEPT_ASSERT ((CInteger< TInteger >)) | |
BOOST_CONCEPT_ASSERT ((CCommutativeRing< TInteger >)) | |
SpaceND & | operator= (const SpaceND &other) |
SpaceND () | |
~SpaceND () |
Aim: SpaceND is a utility class that defines the fundamental structure of a Digital Space in ND.
Description of class 'SpaceND' <p> This class just defines fundamental types associated to a digital space in dimension n. For instance, it specifies the type of a Point lying in this space, the type of a Vector or the type of subspace. @tparam dim static constant of type DGtal::Dimension that specifies the static dimension of the space. @tparam Integer specifies the integer number type to use as a ring for the computations or as coordinates type. Integer must be a model of CInteger and CSignedInteger concepts. Example of use: @code
#include <DGtal/kernel/SpaceND.h>
//...
//We define the type of a digital domain on dimension 4 using the //"int" arithmetic ring.
typedef SpaceND<4, int> Space4Int;
//We deduce the type to represent points in this space typedef Space4::Point Point4Int;
//and we use it (see PointVector documentation). Point4Int a= {2, 3 , -5 , 6};
typedef DGtal::Dimension DGtal::SpaceND< dim, TInteger >::Dimension |
typedef TInteger DGtal::SpaceND< dim, TInteger >::Integer |
typedef PointVector<dim,Integer> DGtal::SpaceND< dim, TInteger >::Point |
Points in DGtal::SpaceND.
typedef PointVector<dim, double> DGtal::SpaceND< dim, TInteger >::RealPoint |
typedef PointVector<dim, double> DGtal::SpaceND< dim, TInteger >::RealVector |
typedef Space DGtal::SpaceND< dim, TInteger >::Self |
typedef UnsignedInteger DGtal::SpaceND< dim, TInteger >::Size |
typedef SpaceND<dim, Integer> DGtal::SpaceND< dim, TInteger >::Space |
typedef NumberTraits<Integer>::UnsignedVersion DGtal::SpaceND< dim, TInteger >::UnsignedInteger |
typedef PointVector<dim,Integer> DGtal::SpaceND< dim, TInteger >::Vector |
Vectors in DGtal::SpaceND.
|
private |
Constructor
|
private |
Destructor.
|
private |
|
private |
|
private |
Assignment.
other | the object to copy. |
|
inlinestatic |
|
static |
static constants to store the dimension.
Definition at line 138 of file SpaceND.h.
Referenced by DGtal::SpaceND< 2, Integer >::selfDisplay().