This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
- Author
- Jacques-Olivier Lachaud (
jacqu.nosp@m.es-o.nosp@m.livie.nosp@m.r.la.nosp@m.chaud.nosp@m.@uni.nosp@m.v-sav.nosp@m.oie..nosp@m.fr
) Laboratory of Mathematics (CNRS, UMR 5807), University of Savoie, France
- Date
- 2011/03/05
An example file named ctopo-1.
This file is part of the DGtal library.
Definition in file ctopo-1.cpp.
Definition at line 56 of file ctopo-1.cpp.
57{
63 K.
init( plow, pup,
true );
77 Color( 100, 100, 255 ) ) )
78 << ptlow << ptup2;
81 Color( 255, 100, 100 ) ) )
82 << pixlow << pixup;
85 Color( 100, 255, 100 ) ) )
86 << linelb << linelt << linell << linelr;
89 return 0;
90}
Aim: This class specializes a 'Board' class so as to display DGtal objects more naturally (with <<)....
Structure representing an RGB triple with alpha component.
std::string className() const
Aim: This class is a model of CCellularGridSpaceND. It represents the cubical grid as a cell complex,...
Cell uSpel(Point p) const
From the digital coordinates of a point in Zn, builds the corresponding spel (cell of maximal dimensi...
bool init(const Point &lower, const Point &upper, bool isClosed)
Specifies the upper and lower bounds for the maximal cells in this space.
Cell uTranslation(const Cell &p, const Vector &vec) const
Add the vector [vec] to [p].
Cell uPointel(Point p) const
From the digital coordinates of a point in Zn, builds the corresponding pointel (cell of dimension 0)...
Cell uCell(const PreCell &c) const
From an unsigned cell, returns an unsigned cell lying into this Khalismky space.
static Self diagonal(Component val=1)
void saveEPS(const char *filename, PageSize size=Board::BoundingBox, double margin=10.0) const
void saveSVG(const char *filename, PageSize size=Board::BoundingBox, double margin=10.0) const
Custom style class redefining the pen color and the fill color. You may use Board2D::Color::None for ...
std::string className() const
Return the style name used for drawing this object.
Modifier class in a Board2D stream. Useful to choose your own mode for a given class....
References DGtal::HyperRectDomain< TSpace >::className(), DGtal::KhalimskyCell< dim, TInteger >::className(), DGtal::PointVector< dim, Integer >::diagonal(), domain, DGtal::KhalimskySpaceND< dim, TInteger >::init(), K, LibBoard::Board::saveEPS(), LibBoard::Board::saveSVG(), DGtal::KhalimskySpaceND< dim, TInteger >::uCell(), DGtal::KhalimskySpaceND< dim, TInteger >::uPointel(), DGtal::KhalimskySpaceND< dim, TInteger >::uSpel(), and DGtal::KhalimskySpaceND< dim, TInteger >::uTranslation().