1 #if !defined(QTPCCOLORTABLE_H)
2 #define QTPCCOLORTABLE_H
58 # define MAX_QTPCCT_SIZE 5000u
63 # define INITIAL_QTPCCT_SIZE 256u
Abstract interface to underlying graphics library's colortable.
virtual void mapToColor(const Colormap *, casacore::Array< casacore::uInt > &, casacore::Bool=true) const
virtual Display::ColorModel colorModel() const
The non-indexed 'true' color depth that Qt supports, and the number of bits in a Qrgb.
virtual casacore::uInt depth() const
Return the depth of the map in bits.
virtual void mapToColor(const Colormap *, casacore::Array< casacore::uChar > &, const casacore::Array< casacore::uChar > &, casacore::Bool=true) const
map [0,N-1] into colorpixels, where N is the current colormap size The values are returned as unsigne...
LatticeExprNode max(const LatticeExprNode &left, const LatticeExprNode &right)
virtual casacore::Bool resize(casacore::uInt, casacore::uInt, casacore::uInt)
virtual casacore::Bool staticSize()
Is the hardware colormap resizeable? ie.
virtual void mapToColor(const Colormap *, casacore::Array< casacore::uLong > &, casacore::Bool=true) const
casacore::uInt size_
actual storage for the color slots.
virtual void mapToColor(const Colormap *, casacore::Array< casacore::uChar > &, casacore::Bool=true) const
same as above except the matrix is operated on in place.
casacore::Int clrByte(casacore::Float f)
(could move X11 version down to base class and use that – it has no X11 dependencies...)
LatticeExprNode min(const LatticeExprNode &left, const LatticeExprNode &right)
virtual void mapToColor3(casacore::Array< casacore::uLong > &, const casacore::Array< casacore::Float > &, const casacore::Array< casacore::Float > &, const casacore::Array< casacore::Float > &)
Functions for dealing with multi-channel mapping.
virtual casacore::Bool colorSpaceMap(Display::ColorModel, const casacore::Array< casacore::Float > &, const casacore::Array< casacore::Float > &, const casacore::Array< casacore::Float > &, casacore::Array< casacore::Float > &, casacore::Array< casacore::Float > &, casacore::Array< casacore::Float > &)
(Multichannel Color) Transform arrays from the passed color model into the colormodel of the XPCCT...
bool Bool
Define the standard types used by Casacore.
virtual void mapToColor3(casacore::Array< casacore::uLong > &, const casacore::Array< casacore::uShort > &, const casacore::Array< casacore::uShort > &, const casacore::Array< casacore::uShort > &)
This one maps values between 0 and the integer maximum value for each channel into a single output im...
casacore::Vector< casacore::uInt > maps_
translate color component in the range [0., 1.
virtual void nColors(casacore::uInt &n1, casacore::uInt &n2, casacore::uInt &n3) const
Return the number of colors per component used in the map.
virtual void mapToColor3(casacore::Array< casacore::uLong > &, const casacore::Array< casacore::uInt > &, const casacore::Array< casacore::uInt > &, const casacore::Array< casacore::uInt > &)
ColorModels are implemented for QtPixelCanvas.
Describes a method of generating a table of colors.
virtual casacore::Bool installRGBColors(const casacore::Vector< casacore::Float > &r, const casacore::Vector< casacore::Float > &g, const casacore::Vector< casacore::Float > &b, const casacore::Vector< casacore::Float > &alpha, casacore::uInt offset=0)
Called by corresp.
virtual void mapToColor(const Colormap *, casacore::Array< casacore::uShort > &, casacore::Bool=true) const
virtual void mapToColor(const Colormap *map, casacore::Array< casacore::uInt > &outArray, const casacore::Array< casacore::uInt > &inArray, casacore::Bool rangeCheck=true) const
Translate casacore::Array of colormap indices into graphics platform's colors.
virtual void mapToColor(const Colormap *, casacore::Array< casacore::uLong > &, const casacore::Array< casacore::uLong > &, casacore::Bool=true) const
virtual void mapToColor3(casacore::Array< casacore::uLong > &, const casacore::Array< casacore::Double > &, const casacore::Array< casacore::Double > &, const casacore::Array< casacore::Double > &)
virtual casacore::uInt nColors() const
Initial size of the colortable.
virtual casacore::uInt nSpareColors() const
Current number of slots usable by colormaps.
virtual ~QtPCColorTable()
virtual void mapToColor(const Colormap *, casacore::Array< casacore::uShort > &, const casacore::Array< casacore::uShort > &, casacore::Bool=true) const
ColorModel
Different ways of handling color on the display.