DGtal
2.2.0
Toggle main menu visibility
Loading...
Searching...
No Matches
CanonicCellEmbedder.h
1
16
17
#pragma once
18
30
31
#if defined(CanonicCellEmbedder_RECURSES)
32
#error Recursive header files inclusion detected in CanonicCellEmbedder.h
33
#else
// defined(CanonicCellEmbedder_RECURSES)
35
#define CanonicCellEmbedder_RECURSES
36
37
#if !defined CanonicCellEmbedder_h
39
#define CanonicCellEmbedder_h
40
42
// Inclusions
43
#include <iostream>
44
#include "DGtal/base/Common.h"
45
#include "DGtal/base/ConstAlias.h"
46
#include "DGtal/topology/CPreCellularGridSpaceND.h"
48
49
namespace
DGtal
50
{
51
53
// class CanonicCellEmbedder
64
template
<
typename
TKSpace>
65
struct
CanonicCellEmbedder
66
{
67
public
:
68
typedef
CanonicCellEmbedder<TKSpace>
Self
;
69
BOOST_CONCEPT_ASSERT
((
concepts::CPreCellularGridSpaceND<TKSpace>
));
70
71
typedef
TKSpace
KSpace
;
72
typedef
typename
KSpace::Cell
Cell
;
73
typedef
typename
KSpace::Space
Space
;
74
typedef
typename
Space::RealPoint
RealPoint
;
75
typedef
Cell
Argument
;
76
typedef
RealPoint
Value
;
77
78
typedef
typename
Space::Integer
Integer
;
79
typedef
typename
Space::Point
Point
;
80
81
// ----------------------- Standard services ------------------------------
82
public
:
86
~CanonicCellEmbedder
();
87
91
CanonicCellEmbedder
();
92
96
CanonicCellEmbedder
(
ConstAlias<KSpace>
aKSpace );
97
102
CanonicCellEmbedder
(
const
Self
& other );
103
109
Self
&
operator=
(
const
Self
& other );
110
114
const
KSpace
&
space
()
const
;
115
123
RealPoint
embed
(
const
Cell
& cell )
const
;
124
132
RealPoint
operator()
(
const
Cell
& cell )
const
;
133
134
// ----------------------- Interface --------------------------------------
135
public
:
136
141
void
selfDisplay
( std::ostream & out )
const
;
142
147
bool
isValid
()
const
;
148
149
// ------------------------- Protected Data ------------------------------
150
protected
:
151
const
KSpace
*
myKSpace
;
152
153
// ------------------------- Private Data --------------------------------
154
private
:
155
156
// ------------------------- Hidden services ------------------------------
157
protected
:
158
159
160
// ------------------------- Internals ------------------------------------
161
private
:
162
163
};
// end of class CanonicCellEmbedder
164
165
172
template
<
typename
TKSpace>
173
std::ostream&
174
operator<<
( std::ostream & out,
const
CanonicCellEmbedder<TKSpace>
&
object
);
175
176
177
}
// namespace DGtal
178
179
181
// Includes inline functions.
182
#include "DGtal/topology/CanonicCellEmbedder.ih"
183
184
185
// //
187
188
#endif
// !defined CanonicCellEmbedder_h
189
190
#undef CanonicCellEmbedder_RECURSES
191
#endif
// else defined(CanonicCellEmbedder_RECURSES)
DGtal::ConstAlias
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
Definition
ConstAlias.h:187
DGtal::KhalimskySpaceND< 3, Integer >::Space
SpaceND< dim, Integer > Space
Definition
KhalimskySpaceND.h:410
DGtal::KhalimskySpaceND< 3, Integer >::Cell
KhalimskyCell< dim, Integer > Cell
Definition
KhalimskySpaceND.h:415
DGtal::SpaceND< dim, Integer >::Integer
Integer Integer
Definition
SpaceND.h:102
DGtal::SpaceND< dim, Integer >::Point
PointVector< dim, Integer > Point
Definition
SpaceND.h:110
DGtal::SpaceND< dim, Integer >::RealPoint
PointVector< dim, double > RealPoint
Definition
SpaceND.h:117
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition
ClosedIntegerHalfPlane.h:49
DGtal::operator<<
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)
DGtal::CanonicCellEmbedder
Aim: A trivial embedder for signed and unsigned cell, which corresponds to the canonic injection of c...
Definition
CanonicCellEmbedder.h:66
DGtal::CanonicCellEmbedder::CanonicCellEmbedder
CanonicCellEmbedder()
DGtal::CanonicCellEmbedder< KSpace >::Self
CanonicCellEmbedder< KSpace > Self
Definition
CanonicCellEmbedder.h:68
DGtal::CanonicCellEmbedder< KSpace >::Cell
KSpace::Cell Cell
Definition
CanonicCellEmbedder.h:72
DGtal::CanonicCellEmbedder< KSpace >::Value
RealPoint Value
Definition
CanonicCellEmbedder.h:76
DGtal::CanonicCellEmbedder::CanonicCellEmbedder
CanonicCellEmbedder(const Self &other)
DGtal::CanonicCellEmbedder< KSpace >::RealPoint
Space::RealPoint RealPoint
Definition
CanonicCellEmbedder.h:74
DGtal::CanonicCellEmbedder::CanonicCellEmbedder
CanonicCellEmbedder(ConstAlias< KSpace > aKSpace)
DGtal::CanonicCellEmbedder< KSpace >::myKSpace
const KSpace * myKSpace
Definition
CanonicCellEmbedder.h:151
DGtal::CanonicCellEmbedder::operator()
RealPoint operator()(const Cell &cell) const
DGtal::CanonicCellEmbedder< KSpace >::Space
KSpace::Space Space
Definition
CanonicCellEmbedder.h:73
DGtal::CanonicCellEmbedder::selfDisplay
void selfDisplay(std::ostream &out) const
DGtal::CanonicCellEmbedder::isValid
bool isValid() const
DGtal::CanonicCellEmbedder::embed
RealPoint embed(const Cell &cell) const
DGtal::CanonicCellEmbedder< KSpace >::Integer
Space::Integer Integer
Definition
CanonicCellEmbedder.h:78
DGtal::CanonicCellEmbedder::~CanonicCellEmbedder
~CanonicCellEmbedder()
DGtal::CanonicCellEmbedder< KSpace >::Argument
Cell Argument
Definition
CanonicCellEmbedder.h:75
DGtal::CanonicCellEmbedder::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((concepts::CPreCellularGridSpaceND< TKSpace >))
DGtal::CanonicCellEmbedder< KSpace >::Point
Space::Point Point
Definition
CanonicCellEmbedder.h:79
DGtal::CanonicCellEmbedder::space
const KSpace & space() const
DGtal::CanonicCellEmbedder< KSpace >::KSpace
KSpace KSpace
Definition
CanonicCellEmbedder.h:71
DGtal::CanonicCellEmbedder::operator=
Self & operator=(const Self &other)
DGtal::concepts::CPreCellularGridSpaceND
Aim: This concept describes an unbounded cellular grid space in nD. In these spaces obtained by carte...
Definition
CPreCellularGridSpaceND.h:287
src
DGtal
topology
CanonicCellEmbedder.h
Generated on
for DGtal by
1.18.0