DGtal
1.5.beta
|
#include <iostream>
#include "DGtal/base/Common.h"
#include "DGtal/io/Color.h"
#include "DGtal/io/colormaps/CColorMap.h"
#include "DGtal/io/colormaps/GrayscaleColorMap.h"
#include "DGtal/io/colormaps/HueShadeColorMap.h"
#include "DGtal/io/colormaps/ColorBrightnessColorMap.h"
#include "DGtal/io/colormaps/SimpleDistanceColorMap.h"
#include "DGtal/io/colormaps/GradientColorMap.h"
#include "DGtal/io/colormaps/RandomColorMap.h"
#include "DGtal/io/boards/Board2D.h"
#include "Board/PSFonts.h"
Go to the source code of this file.
Functions | |
template<typename TColorMap > | |
void | addColorMapSample (const char *name, const TColorMap &aColorMap, const typename TColorMap::Value step, Board &board) |
bool | testGrayscaleColorMap () |
int | main () |
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/.
Functions for testing the ColorMap classes.
This file is part of the DGtal library.
Definition in file testColorMaps.cpp.
void addColorMapSample | ( | const char * | name, |
const TColorMap & | aColorMap, | ||
const typename TColorMap::Value | step, | ||
Board & | board | ||
) |
Definition at line 53 of file testColorMaps.cpp.
References LibBoard::Fonts::Courier, LibBoard::Board::drawRectangle(), LibBoard::Board::drawText(), LibBoard::Board::setFillColor(), LibBoard::Board::setFont(), LibBoard::Board::setPenColor(), and LibBoard::Board::translate().
Referenced by main().
int main | ( | void | ) |
Definition at line 139 of file testColorMaps.cpp.
References DGtal::RandomColorMap::addColor(), DGtal::GradientColorMap< PValue, PDefaultPreset, PDefaultFirstColor, PDefaultLastColor >::addColor(), addColorMapSample(), DGtal::Trace::beginBlock(), DGtal::GradientColorMap< PValue, PDefaultPreset, PDefaultFirstColor, PDefaultLastColor >::clearColors(), DGtal::CMAP_AUTUMN, DGtal::CMAP_COOL, DGtal::CMAP_COPPER, DGtal::CMAP_HOT, DGtal::CMAP_SUMMER, DGtal::CMAP_WINTER, dt, DGtal::Trace::emphase(), DGtal::Trace::endBlock(), LibBoard::Board::saveCairo(), LibBoard::Board::saveEPS(), LibBoard::Board::saveSVG(), LibBoard::Board::saveTikZ(), testGrayscaleColorMap(), and DGtal::trace.
bool testGrayscaleColorMap | ( | ) |
Definition at line 75 of file testColorMaps.cpp.
References DGtal::Trace::beginBlock(), DGtal::Color::blue(), DGtal::Trace::endBlock(), DGtal::Color::green(), DGtal::Trace::info(), DGtal::Color::red(), and DGtal::trace.
Referenced by main().