casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes
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...

List of all members.

Public Member Functions

 ColorIndexedImage_ ()
void clear ()
Bool maskValid ()

Public Attributes

Matrix< uIntdata
Matrix< Boolmask
Vector< Intblc
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 1293 of file WorldCanvas.h.


Constructor & Destructor Documentation

Definition at line 1299 of file WorldCanvas.h.


Member Function Documentation

Definition at line 1300 of file WorldCanvas.h.

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

Definition at line 1301 of file WorldCanvas.h.

References data, mask, casa::ArrayBase::nelements(), and casa::Matrix< T >::shape().


Member Data Documentation

Definition at line 1296 of file WorldCanvas.h.

Referenced by clear().

Definition at line 1297 of file WorldCanvas.h.

Definition at line 1294 of file WorldCanvas.h.

Referenced by clear(), and maskValid().

Definition at line 1295 of file WorldCanvas.h.

Referenced by clear(), and maskValid().


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