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


Public Types | |
| using | Ptr = std::shared_ptr< Colormappable > |
| using | WeakPtr = std::weak_ptr< Colormappable > |
Public Member Functions | |
| virtual void | setColormap (Colormap::Ptr colormap)=0 |
| virtual Colormap::Ptr | getOriginalColormap ()=0 |
| virtual int | getNumberOfColors ()=0 |
For monochrome presentations: Set/Get the current color | |
| virtual Color | getMonochromeColor ()=0 |
| virtual void | setMonochromeColor (const Color &c)=0 |
Manipulate the "Transparent Background" setting of the presentation | |
| virtual void | setTransparentBackground ()=0 |
| virtual void | disableTransparentBackground ()=0 |
| virtual bool | getTransparentBackground ()=0 |
Additional Inherited Members | |
Private Member Functions inherited from Interface | |
| Interface ()=default | |
| Interface (const Interface &)=delete | |
| Interface & | operator= (const Interface &)=delete |
| Interface (Interface &&)=delete | |
| Interface & | operator= (Interface &&)=delete |
| virtual | ~Interface ()=default |
Interface for Colormappable presentations.
In order to use the colormap plugin, presentations should implement this interface, and define the COLORMAPPABLE_PROPERTY_NAME property.
Presentations should forward view creation and destruction events (i.e. Viewable::open() and Viewable::close() events) to their observers. As a result, new views will get a sidebar containing the available colormaps, and when one is selected, setColormap() will be called.
| using Colormappable::Ptr = std::shared_ptr<Colormappable> |
| using Colormappable::WeakPtr = std::weak_ptr<Colormappable> |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Retrieve the number of colors in use by the presentation
Implemented in ColormapHelperBase, TransformPresentation, and anonymous_namespace{tiledbitmappresentation.cc}::TiledBitmapPresentation.
|
pure virtual |
Retrieve the images colormap (if any)
Implemented in ColormapHelperBase, TransformPresentation, and anonymous_namespace{tiledbitmappresentation.cc}::TiledBitmapPresentation.
|
pure virtual |
|
pure virtual |
Request that the presentation use the given colormap
Implemented in ColormapHelperBase, TransformPresentation, and anonymous_namespace{tiledbitmappresentation.cc}::TiledBitmapPresentation.
|
pure virtual |