|
Scroom 0.14-49-gb7ae7a6d
|
#include <colormappable.hh>

Public Types | |
| using | Ptr = std::shared_ptr< Colormap > |
| using | ConstPtr = std::shared_ptr< const Colormap > |
| using | WeakPtr = std::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 = std::shared_ptr<const Colormap> |
| using Colormap::Ptr = std::shared_ptr<Colormap> |
| using Colormap::WeakPtr = std::weak_ptr<Colormap> |
|
inlineprivate |
Constructor. Create an empty colormap
Referenced by create().

|
inline |
Referenced by setAlpha().

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


|
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