casa
$Rev:20696$
|
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 () |
Bool | maskValid () |
Public Attributes | |
Matrix< uInt > | data |
Matrix< Bool > | mask |
Vector< Int > | blc |
uInt | colormapSize |
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.
Definition at line 1299 of file WorldCanvas.h.
void casa::WorldCanvas::ColorIndexedImage_::clear | ( | ) | [inline] |
Definition at line 1300 of file WorldCanvas.h.
References blc, data, mask, and casa::Matrix< T >::resize().
Bool casa::WorldCanvas::ColorIndexedImage_::maskValid | ( | ) | [inline] |
Definition at line 1301 of file WorldCanvas.h.
References data, mask, casa::ArrayBase::nelements(), and casa::Matrix< T >::shape().
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().