42#include "DGtal/base/Common.h"
43#include "DGtal/kernel/SpaceND.h"
44#include "DGtal/helpers/StdDefs.h"
45#include "DGtal/kernel/domains/HyperRectDomain.h"
46#include "DGtal/io/boards/Board2D.h"
62 typedef MySpace::Point MyPoint;
80 board.
saveSVG(
"kernel-domain.svg");
85 trace.
info() <<
"C is inside the domain"<<endl;
87 trace.
info() <<
"C is outside the domain"<<endl;
90 board.
saveSVG(
"kernel-domain-point.svg");
95 MyPoint::Coordinate coord = 24;
96 for(MySpace::Dimension d = 0 ; d < MySpace::dimension; d++)
101 for(MyPoint::Iterator it=r.begin(), itend=r.end() ;
112 trace.
info() <<
"Processing point"<< (*it) << endl;
119 MyDomain::ConstIterator it = itPrec;
120 MyDomain::Vector shift;
124 for( MyDomain::ConstIterator itend =
domain.
end();
128 shift = (*it) -(*itPrec);
131 board.
saveSVG(
"kernel-domain-it-arrow.svg");
Aim: This class specializes a 'Board' class so as to display DGtal objects more naturally (with <<)....
Aim: Parallelepidec region of a digital space, model of a 'CDomain'.
bool isInside(const Point &p) const
const ConstIterator & begin() const
const ConstIterator & end() const
void beginBlock(const std::string &keyword="")
void clear(const DGtal::Color &color=DGtal::Color::None)
void saveSVG(const char *filename, PageSize size=Board::BoundingBox, double margin=10.0) const
DGtal is the top-level namespace which contains all DGtal functions and types.
static void draw(DGtal::Board2D &board, const DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger > &calculus)