34#if defined(GaussDigitizer_RECURSES)
35#error Recursive header files inclusion detected in GaussDigitizer.h
38#define GaussDigitizer_RECURSES
40#if !defined GaussDigitizer_h
42#define GaussDigitizer_h
47#include "DGtal/base/Common.h"
48#include "DGtal/base/ConstAlias.h"
49#include "DGtal/base/CountedConstPtrOrConstPtr.h"
50#include "DGtal/kernel/domains/HyperRectDomain.h"
51#include "DGtal/kernel/RegularPointEmbedder.h"
52#include "DGtal/shapes/CEuclideanOrientedShape.h"
53#include "DGtal/shapes/CEuclideanBoundedShape.h"
78 template <
typename TSpace,
typename TEucl
ideanShape>
276 template <
typename TSpace,
typename TEucl
ideanShape>
286#include "DGtal/shapes/GaussDigitizer.ih"
293#undef GaussDigitizer_RECURSES
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
Aim: Smart or simple const pointer on T. It can be a smart pointer based on reference counts or a sim...
Aim: A class for computing the Gauss digitization of some Euclidean shape, i.e. its intersection with...
HyperRectDomain< Space > Domain
Vector resolution() const
TEuclideanShape EuclideanShape
Point myUpperPoint
Digital uppest point.
RegularPointEmbedder< Space > PointEmbedder
GaussDigitizer & operator=(const GaussDigitizer &other)
const Point & getUpperBound() const
Point floor(const RealPoint &p) const
Orientation orientation(const Point &p) const
void attach(ConstAlias< EuclideanShape > shape)
const PointEmbedder & pointEmbedder() const
const Point & getLowerBound() const
RealVector gridSteps() const
Point myLowerPoint
Digital lowest point.
void selfDisplay(std::ostream &out) const
bool operator()(const Point &p) const
BOOST_CONCEPT_ASSERT((concepts::CEuclideanOrientedShape< TEuclideanShape >))
Point round(const RealPoint &p) const
Point ceil(const RealPoint &p) const
void init(const RealPoint &xLow, const RealPoint &xUp, typename RealVector::Component gridStep)
CountedConstPtrOrConstPtr< EuclideanShape > myEShape
The referenced shape or 0 if not initialized.
RealPoint embed(const Point &p) const
Space::RealPoint RealVector
Space::RealPoint RealPoint
void init(const RealPoint &xLow, const RealPoint &xUp, const RealVector &gridSteps)
RegularPointEmbedder< Space > myPointEmbedder
The embedder.
Aim: Parallelepidec region of a digital space, model of a 'CDomain'.
TEuclideanRing Component
Type for Vector elements.
Aim: A simple point embedder where grid steps are given for each axis. Note that the real point (0,...
TInteger Integer
Arithmetic ring induced by (+,-,*) and Integer numbers.
PointVector< dim, Integer > Point
Points in DGtal::SpaceND.
DGtal is the top-level namespace which contains all DGtal functions and types.
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)
Aim: characterizes models of digital oriented shapes. For example, models should provide an orientati...