casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
casa::WorldCanvas::ColorIndexedImage_ Struct Reference

ColorIndexedImage_ stores the state of a WorldCanvas::drawImage() rendering after the chosen data plane has been resampled to screen (Pixelcanvas) pixels and scaled to indices within a fixed-size Colormap, but prior to mapping to actual colors for display. More...

Public Member Functions

 ColorIndexedImage_ ()
 
void clear ()
 
casacore::Bool maskValid ()
 

Public Attributes

casacore::Matrix< casacore::uIntdata
 
casacore::Matrix< casacore::Boolmask
 
casacore::Vector< casacore::Intblc
 
casacore::uInt colormapSize
 

Detailed Description

ColorIndexedImage_ stores the state of a WorldCanvas::drawImage() rendering after the chosen data plane has been resampled to screen (Pixelcanvas) pixels and scaled to indices within a fixed-size Colormap, but prior to mapping to actual colors for display.

'Caching' of this state is useful in 24-bit (trueColor) applications, greatly speeding up redrawing when only the mapping to colors is changed.

Packaging this state allows different instances to be cached by different callers of drawImage() if desired, to be reused by them when appropriate via WC::redrawIndexedImage(). Reuse is 'appropriate' only when nothing has changed since the original drawImage() call except the actual colors assigned to the map indices; among other things, the size of the Colormap used must be the same as that of the original.

Note: this level of 'caching' is distinct from the more elaborate 'drawlists' which are supported by WC/PC and cached in DisplayMethods.

Definition at line 1343 of file WorldCanvas.h.

Constructor & Destructor Documentation

casa::WorldCanvas::ColorIndexedImage_::ColorIndexedImage_ ( )
inline

Definition at line 1349 of file WorldCanvas.h.

Member Function Documentation

void casa::WorldCanvas::ColorIndexedImage_::clear ( )
inline

Definition at line 1350 of file WorldCanvas.h.

References blc, data, mask, and casacore::Matrix< T >::resize().

casacore::Bool casa::WorldCanvas::ColorIndexedImage_::maskValid ( )
inline

Member Data Documentation

casacore::Vector<casacore::Int> casa::WorldCanvas::ColorIndexedImage_::blc

Definition at line 1346 of file WorldCanvas.h.

Referenced by clear().

casacore::uInt casa::WorldCanvas::ColorIndexedImage_::colormapSize

Definition at line 1347 of file WorldCanvas.h.

casacore::Matrix<casacore::uInt> casa::WorldCanvas::ColorIndexedImage_::data

Definition at line 1344 of file WorldCanvas.h.

Referenced by clear(), and maskValid().

casacore::Matrix<casacore::Bool> casa::WorldCanvas::ColorIndexedImage_::mask

Definition at line 1345 of file WorldCanvas.h.

Referenced by clear(), and maskValid().


The documentation for this struct was generated from the following file: