casa
5.7.0-16
|
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::uInt > | data |
casacore::Matrix< casacore::Bool > | mask |
casacore::Vector< casacore::Int > | blc |
casacore::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 1343 of file WorldCanvas.h.
|
inline |
Definition at line 1349 of file WorldCanvas.h.
|
inline |
Definition at line 1350 of file WorldCanvas.h.
References blc, data, mask, and casacore::Matrix< T >::resize().
|
inline |
Definition at line 1355 of file WorldCanvas.h.
References data, casacore::IPosition::isEqual(), mask, casacore::ArrayBase::nelements(), and casacore::Matrix< T >::shape().
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().