34 #if defined(GaussDigitizer_RECURSES) 35 #error Recursive header files inclusion detected in GaussDigitizer.h 36 #else // defined(GaussDigitizer_RECURSES) 38 #define GaussDigitizer_RECURSES 40 #if !defined GaussDigitizer_h 42 #define GaussDigitizer_h 47 #include "DGtal/base/Common.h" 48 #include "DGtal/kernel/domains/HyperRectDomain.h" 49 #include "DGtal/kernel/RegularPointEmbedder.h" 50 #include "DGtal/shapes/CEuclideanOrientedShape.h" 51 #include "DGtal/shapes/CEuclideanBoundedShape.h" 76 template <
typename TSpace,
typename TEucl
ideanShape>
117 void attach(
const EuclideanShape & shape );
131 void init(
const RealPoint & xLow,
const RealPoint & xUp,
145 void init(
const RealPoint & xLow,
const RealPoint & xUp,
163 Point
floor(
const RealPoint & p )
const;
169 Point
ceil(
const RealPoint & p )
const;
177 Point
round(
const RealPoint & p )
const;
186 RealPoint
embed(
const Point & p )
const;
278 template <
typename TSpace,
typename TEucl
ideanShape>
288 #include "DGtal/shapes/GaussDigitizer.ih" 293 #endif // !defined GaussDigitizer_h 295 #undef GaussDigitizer_RECURSES 296 #endif // else defined(GaussDigitizer_RECURSES) Space::RealPoint RealPoint
Point myLowerPoint
Digital lowest point.
const Point & getLowerBound() const
void selfDisplay(std::ostream &out) const
const Point & getUpperBound() const
RegularPointEmbedder< Space > myPointEmbedder
The embedder.
Orientation orientation(const Point &p) const
Point ceil(const RealPoint &p) const
void attach(const EuclideanShape &shape)
HyperRectDomain< Space > Domain
const PointEmbedder & pointEmbedder() const
const EuclideanShape * myEShape
The referenced shape or 0 if not initialized.
TEuclideanShape EuclideanShape
void init(const RealPoint &xLow, const RealPoint &xUp, typename RealVector::Component gridStep)
Aim: A class for computing the Gauss digitization of some Euclidean shape, i.e. its intersection with...
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)
TInteger Integer
Arithmetic ring induced by (+,-,*) and Integer numbers.
Point floor(const RealPoint &p) const
Aim: characterizes models of digital oriented shapes. For example, models should provide an orientati...
DGtal is the top-level namespace which contains all DGtal functions and types.
Point myUpperPoint
Digital uppest point.
bool operator()(const Point &p) const
RealPoint embed(const Point &p) const
Point round(const RealPoint &p) const
RegularPointEmbedder< Space > PointEmbedder
RealVector gridSteps() const
BOOST_CONCEPT_ASSERT((concepts::CEuclideanOrientedShape< TEuclideanShape >))
Space::RealPoint RealVector
GaussDigitizer & operator=(const GaussDigitizer &other)
Vector resolution() const
TEuclideanRing Component
Type for Vector elements.