|
Scroom
0.14
|
#include <colormappable.hh>

Public Types | |
| using | Ptr = boost::shared_ptr< Colormap > |
| using | ConstPtr = boost::shared_ptr< const Colormap > |
| using | WeakPtr = boost::weak_ptr< Colormap > |
Public Member Functions | |
| Ptr | clone () const |
| void | setAlpha (double alpha) |
| Ptr | setAlpha (double alpha) const |
Static Public Member Functions | |
| static Colormap::Ptr | create () |
| static Colormap::Ptr | createDefault (int n) |
| static Colormap::Ptr | createDefaultInverted (int n) |
Public Attributes | |
| std::string | name |
| std::vector< Color > | colors |
Private Member Functions | |
| Colormap () | |
Represent a colormap
| using Colormap::ConstPtr = boost::shared_ptr<const Colormap> |
| using Colormap::Ptr = boost::shared_ptr<Colormap> |
| using Colormap::WeakPtr = boost::weak_ptr<Colormap> |
|
inlineprivate |
|
inline |
Referenced by setAlpha().


|
inlinestatic |
Constructor. Create a smart pointer to an empty colormap
Referenced by createDefault(), createDefaultInverted(), Scroom::Tiff::getColorMap(), and Scroom::ColormapImpl::Colormaps::load().


|
inlinestatic |
Constructor. Create a smart pointer to a colormap of n grays.
Referenced by ColormapHelper::create(), MonochromeColormapHelper::generateInitialColormap(), setupTest1bpp(), setupTest2bpp(), setupTest4bpp(), setupTest8bpp(), and setupTest8bppColormapped().


|
inlinestatic |
Constructor. Create a smart pointer to a colormap of n grays.
Referenced by ColormapHelper::createInverted(), and MonochromeColormapHelper::generateInitialColormap().


|
inline |
|
inline |
| std::vector<Color> Colormap::colors |
Colors in this colormap
Referenced by setAlpha().
| std::string Colormap::name |
Name of this colormap