28 #ifndef TRIALDISPLAY_COLORMAP_H
29 #define TRIALDISPLAY_COLORMAP_H
40 template <
class T>
class Vector;
41 template <
class T,
class U>
class Function1D;
49 class ColormapDefinition;
50 class PixelCanvasColorTable;
void setColormapDefinition(ColormapDefinition *definition)
casacore::Bool itsOwnShapingFunction
void setInvertFlags(const casacore::Bool &red, const casacore::Bool &green, const casacore::Bool &blue, const casacore::Bool &doReinstall=true)
set/get the inverse flags
virtual casacore::Bool calcRGBMaps(casacore::uInt reqSize, casacore::Vector< casacore::Float > &redMap, casacore::Vector< casacore::Float > &greenMap, casacore::Vector< casacore::Float > &blueMap, casacore::Vector< casacore::Float > &alphaMap) const
Compute RGB values using the definition and shape function.
std::vector< double > Vector
Abstract interface to underlying graphics library's colortable.
const casacore::String & name() const
return the name of the map
casacore::Float getContrast() const
void doResizeCallbacks()
Do resizeCallbacks on the PixelCanvasColorTables that use this Colormap.
AipsIO is the object persistency mechanism of Casacore.
casacore::String itsName
name of this Colormap.
casacore::Int itsLogScale
casacore::Float itsContrastScale
void registerPCColorTable(PixelCanvasColorTable *pcctbl)
Register/Unregister a PixelCanvasColorTable that uses this Colormap.
casacore::Bool rigid() const
If rigid is true, the colormap must be installed at a specific size.
Colormap()
Default Constructor Required.
casacore::Float itsAlpha
Transparency.
ostream-like interface to creating log messages.
casacore::uInt rigidSize() const
What is the size enforced by the rigid requirement?
casacore::Float getAlpha() const
void getInvertFlags(casacore::Bool &red, casacore::Bool &green, casacore::Bool &blue) const
casacore::Bool itsInvertBlue
void unregisterPCColorTable(PixelCanvasColorTable *pcctbl)
void reinstall()
reinstall this Colormap on the registered PixelCanvasColorTables
void setAlpha(const casacore::Float &brightness, const casacore::Bool &doReinstall=true)
set/get the colormap alpha level in range 0 to 1
void setRigid(casacore::Bool b)
ColormapDefinition * itsColormapDefinition
void setLogScale(const casacore::Int &logScale, const casacore::Bool &doReinstall=true)
Set whether or not the colormap should use a log scale.
casacore::uInt itsRigidSize
what is its rigid size?
void setContrast(const casacore::Float &contrast, const casacore::Bool &doReinstall=true)
set/get the colormap contrast level
casacore::Bool itsInvertGreen
bool Bool
Define the standard types used by Casacore.
casacore::Function1D< casacore::Float, casacore::Float > * itsShapingFunction
function for shaping the colormap
casacore::Float itsBrightnessScale
casacore::Float itsContrast
casacore::Bool itsIsRigid
is this Colormap rigid?
casacore::Float getBrightness() const
virtual ~Colormap()
Destructor.
Describes a method of generating a table of colors.
ColormapDefinition * definition()
Provide access to the colormap definition.
casacore::Bool itsInvertRed
invert flags
const Double c
Fundamental physical constants (SI units):
void setBrightness(const casacore::Float &brightness, const casacore::Bool &doReinstall=true)
set/get the colormap brightness level in range 0 to 1
String: the storage and methods of handling collections of characters.
void setShapingFunction(casacore::Function1D< casacore::Float, casacore::Float > *shapingfunc=0)
Set the Colormap shaping function.
std::map< PixelCanvasColorTable *, casacore::uInt > itsPCColorTables
void setName(const casacore::String &mapName)
const casacore::Vector< casacore::Float > getShapingCoefficients() const
casacore::Float itsBrightness
levels
friend casacore::AipsIO & operator>>(casacore::AipsIO &aio, Colormap &c)
Read a Colormap from an casacore::AipsIO stream in a binary format.
void setShapingCoefficients(const casacore::Vector< casacore::Float > ¶ms, const casacore::Bool &doReinstall=true)
Set and retrieve the coefficients of the shaping function.
friend std::ostream & operator<<(std::ostream &os, const Colormap &c)
Write a Colormap to an ostream in a simple text form.
void setRigidSize(casacore::uInt s)
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.