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
- 2010/11/26
An example file named dgtalboard-4-colormaps.
This file is part of the DGtal library.
Definition in file dgtalBoard2D-4-colormaps.cpp.
Definition at line 56 of file dgtalBoard2D-4-colormaps.cpp.
68 shape_set.erase( c1 );
69 shape_set.erase( c2 );
73 cmap_grad.addColor(
Color( 50, 50, 255 ) );
74 cmap_grad.addColor(
Color( 255, 0, 0 ) );
75 cmap_grad.addColor(
Color( 255, 255, 10 ) );
81 <<
SetMode( p1.className(),
"Paving" );
83 string specificStyle = p1.className() +
"/Paving";
85 it != shape_set.end();
88 unsigned int d = (
unsigned int) ceil( ( *it - c1 ).norm() );
95 board.
saveSVG(
"dgtalBoard2D-4-colormaps.svg");
96 board.
saveEPS(
"dgtalBoard2D-4-colormaps.eps");
97 board.
saveTikZ(
"dgtalBoard2D-4-colormaps.tikz");
100 board.
saveCairo(
"dgtalBoard2D-4-colormaps-cairo.pdf", Board2D::CairoPDF);
101 board.
saveCairo(
"dgtalBoard2D-4-colormaps-cairo.png", Board2D::CairoPNG);
102 board.
saveCairo(
"dgtalBoard2D-4-colormaps-cairo.ps", Board2D::CairoPS);
103 board.
saveCairo(
"dgtalBoard2D-4-colormaps-cairo.svg", Board2D::CairoSVG);
Aim: This class specializes a 'Board' class so as to display DGtal objects more naturally (with <<)....
Structure representing an RGB triple with alpha component.
Aim: A wrapper class around a STL associative container for storing sets of digital points within som...
Container::const_iterator ConstIterator
ConstIterator type of the container;.
Aim: This class template may be used to (linearly) convert scalar values in a given range into a colo...
std::string className() const
Aim: A utility class for constructing different shapes (balls, diamonds, and others).
void beginBlock(const std::string &keyword="")
void saveTikZ(const char *filename, PageSize size=Board::BoundingBox, double margin=10.0) const
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
void saveCairo(const char *filename, CairoType type=CairoPNG, 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 ...
Modifier class in a Board2D stream. Useful to choose your own mode for a given class....
References DGtal::GradientColorMap< PValue, PDefaultPreset, PDefaultFirstColor, PDefaultLastColor >::addColor(), DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::begin(), DGtal::Trace::beginBlock(), DGtal::HyperRectDomain< TSpace >::className(), DGtal::PointVector< dim, TEuclideanRing, TContainer >::className(), domain, DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::end(), DGtal::Trace::endBlock(), DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::erase(), LibBoard::Board::saveCairo(), LibBoard::Board::saveEPS(), LibBoard::Board::saveSVG(), LibBoard::Board::saveTikZ(), and DGtal::trace.