Data Structures | Namespaces | Defines | Enumerations | Functions

GradientColorMap.h File Reference

#include <iostream>
#include "DGtal/base/Common.h"
#include "Board/Board.h"
#include "Board/Color.h"
#include "DGtal/io/colormaps/GradientColorMap.ih"
Include dependency graph for GradientColorMap.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  DGtal::GradientColorMap< PValueType, PDefaultPreset, PDefaultFirstColor, PDefaultLastColor >
 Aim: This class template may be used to (linearly) convert scalar values in a given range into a color in a gradient defined by two or more colors. More...

Namespaces

namespace  DGtal

Defines

#define GradientColorMap_RECURSES
#define GradientColorMap_h
#define DGTAL_RGB2INT(R, G, B)   (((R)<<16)|((G)<<8)|(B))
#define DGTAL_RED_COMPONENT(I)   (((I)>>16)&0xFF)
#define DGTAL_GREEN_COMPONENT(I)   (((I)>>8)&0xFF)
#define DGTAL_BLUE_COMPONENT(I)   ((I)&0xFF)

Enumerations

enum  DGtal::ColorGradientPreset {
  DGtal::CMAP_CUSTOM = 0, DGtal::CMAP_GRAYSCALE, DGtal::CMAP_SPRING, DGtal::CMAP_SUMMER,
  DGtal::CMAP_AUTUMN, DGtal::CMAP_WINTER, DGtal::CMAP_COOL, DGtal::CMAP_COPPER,
  DGtal::CMAP_HOT, DGtal::CMAP_JET
}

Functions

template<typename PValueType , int PDefaultPreset, int PDefaultFirstColor, int PDefaultLastColor>
std::ostream & DGtal::operator<< (std::ostream &out, const GradientColorMap< PValueType, PDefaultPreset, PDefaultFirstColor, PDefaultLastColor > &object)

Detailed Description

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:
Sebastien Fourey (Sebastien.Fourey@greyc.ensicaen.fr ) Groupe de Recherche en Informatique, Image, Automatique et Instrumentation de Caen - GREYC (CNRS, UMR 6072), ENSICAEN, France
Date:
2010/07/19

Header file for module GradientColorMap.cpp

This file is part of the DGtal library.


Define Documentation

#define DGTAL_BLUE_COMPONENT (   I  )     ((I)&0xFF)
#define DGTAL_GREEN_COMPONENT (   I  )     (((I)>>8)&0xFF)
#define DGTAL_RED_COMPONENT (   I  )     (((I)>>16)&0xFF)
#define DGTAL_RGB2INT (   R,
  G,
  B 
)    (((R)<<16)|((G)<<8)|(B))
#define GradientColorMap_h

Prevents repeated inclusion of headers.

#define GradientColorMap_RECURSES

Prevents recursive inclusion of headers.