DGtal 1.4.0
|
#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 DGtal::Color::Black, LibBoard::Fonts::Courier, LibBoard::Board::drawRectangle(), LibBoard::Board::drawText(), DGtal::Color::None, 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::GradientColorMap< PValue, PDefaultPreset, PDefaultFirstColor, PDefaultLastColor >::addColor(), DGtal::RandomColorMap::addColor(), addColorMapSample(), DGtal::Trace::beginBlock(), DGtal::Color::Blue, 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(), DGtal::Color::Green, DGtal::Color::Red, LibBoard::Board::saveCairo(), LibBoard::Board::saveEPS(), LibBoard::Board::saveSVG(), LibBoard::Board::saveTikZ(), testGrayscaleColorMap(), DGtal::trace, DGtal::Color::White, and DGtal::Color::Yellow.
bool testGrayscaleColorMap | ( | ) |
Definition at line 75 of file testColorMaps.cpp.
References DGtal::Trace::beginBlock(), DGtal::Color::Black, DGtal::Color::blue(), DGtal::Trace::endBlock(), DGtal::GrayscaleColorMap< PValue >::getColor(), DGtal::Color::green(), DGtal::Trace::info(), DGtal::Color::red(), DGtal::trace, and DGtal::Color::White.
Referenced by main().