Scroom 0.14-48-ga0fee447
Loading...
Searching...
No Matches
ColormapHelper Class Reference

#include <colormappable.hh>

Inheritance diagram for ColormapHelper:
Inheritance graph
Collaboration diagram for ColormapHelper:
Collaboration graph

Public Member Functions

std::map< std::string, std::string > getProperties () override
 
- Public Member Functions inherited from ColormapHelperBase
 ColormapHelperBase (Colormap::Ptr const &colormap)
 
void setColormap (Colormap::Ptr colormap) override
 
Colormap::Ptr getOriginalColormap () override
 
int getNumberOfColors () override
 
Color getMonochromeColor () override
 
void setMonochromeColor (const Color &c) override
 
void setTransparentBackground () override
 
void disableTransparentBackground () override
 
bool getTransparentBackground () override
 
Colormap::Ptr getColormap () override
 
virtual void setOriginalColormap (Colormap::Ptr colormap)
 
For monochrome presentations: Set/Get the current color
Manipulate the "Transparent Background" setting of the presentation

Static Public Member Functions

static Ptr create (int numberOfColors)
 
static Ptr createInverted (int numberOfColors)
 
static Ptr create (Colormap::Ptr const &colormap)
 

Private Member Functions

 ColormapHelper (Colormap::Ptr const &colormap)
 

Additional Inherited Members

- Public Types inherited from ColormapHelperBase
using Ptr = std::shared_ptr< ColormapHelperBase >
 
- Public Types inherited from ColormapProvider
using Ptr = std::shared_ptr< ColormapProvider >
 
- Public Types inherited from Colormappable
using Ptr = std::shared_ptr< Colormappable >
 
using WeakPtr = std::weak_ptr< Colormappable >
 
- Public Attributes inherited from ColormapHelperBase
Colormap::Ptr colormap
 
Colormap::Ptr originalColormap
 

Constructor & Destructor Documentation

◆ ColormapHelper()

ColormapHelper::ColormapHelper ( Colormap::Ptr const &  colormap)
explicitprivate
59 : ColormapHelperBase(colormap_)
60{
61}
Definition colormappable.hh:156

Member Function Documentation

◆ create() [1/2]

ColormapHelper::Ptr ColormapHelper::create ( Colormap::Ptr const &  colormap)
static
49{ return Ptr(new ColormapHelper(colormap)); }
std::shared_ptr< ColormapHelperBase > Ptr
Definition colormappable.hh:158
Colormap::Ptr colormap
Definition colormappable.hh:161
Definition colormappable.hh:195

◆ create() [2/2]

ColormapHelper::Ptr ColormapHelper::create ( int  numberOfColors)
static
51{ return create(Colormap::createDefault(numberOfColors)); }
static Ptr create(int numberOfColors)
Definition colormap-helpers.cc:51
static Colormap::Ptr createDefault(int n)
Definition colormappable.hh:49

Referenced by create(), createInverted(), Scroom::Tiff::getColormapHelper(), Scroom::Pnm::open(), and Scroom::Tiff::open().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createInverted()

ColormapHelper::Ptr ColormapHelper::createInverted ( int  numberOfColors)
static
54{
55 return create(Colormap::createDefaultInverted(numberOfColors));
56}
static Colormap::Ptr createDefaultInverted(int n)
Definition colormappable.hh:65
Here is the call graph for this function:

◆ getProperties()

std::map< std::string, std::string > ColormapHelper::getProperties ( )
overridevirtual

Implements ColormapHelperBase.

63{ return {{COLORMAPPABLE_PROPERTY_NAME, ""}}; }
const std::string COLORMAPPABLE_PROPERTY_NAME
Definition colormappable.hh:19

The documentation for this class was generated from the following files: