casa
5.7.0-16
|
Assistance class for auto-caching of DisplayData objects. More...
#include <CachingDisplayMethod.h>
Protected Member Functions | |
CachingDisplayMethod () | |
(Required) default constructor. More... | |
CachingDisplayMethod (const CachingDisplayMethod &other) | |
(Required) copy constructor. More... | |
void | operator= (const CachingDisplayMethod &other) |
(Required) copy assignment. More... | |
virtual casacore::Bool | drawIntoList (Display::RefreshReason reason, WorldCanvasHolder &wcHolder)=0 |
Draw into a cached drawing list, called by draw function. More... | |
Protected Member Functions inherited from casa::DisplayMethod | |
DisplayMethod () | |
(Required) default constructor. More... | |
DisplayMethod (const DisplayMethod &other) | |
(Required) copy constructor. More... | |
void | operator= (const DisplayMethod &other) |
(Required) copy assignment. More... | |
DisplayData * | parentDisplayData () |
Return the parent DisplayData. More... | |
Private Attributes | |
WorldCanvas * | itsWorldCanvas |
Store for the WorldCanvas which this has previously drawn upon. More... | |
AttributeBuffer * | itsWCHAttributes |
Store for WorldCanvasHolder- and DisplayData-specific AttributeBuffers. More... | |
AttributeBuffer * | itsDDAttributes |
casacore::Bool | itsHasList |
Do we have a cached drawing list? More... | |
casacore::uInt | itsCachedDrawingList |
Store for cached drawing list number. More... | |
Additional Inherited Members | |
Protected Attributes inherited from casa::DisplayMethod | |
AttributeBuffer | restrictions |
Assistance class for auto-caching of DisplayData objects.
Public interface
"CachingDisplayMethod" is an implementation of a DisplayMethod which provides a single element in a cache of individual depictions of some data.
Definition at line 66 of file CachingDisplayMethod.h.
casa::CachingDisplayMethod::CachingDisplayMethod | ( | WorldCanvas * | worldCanvas, |
AttributeBuffer * | wchAttributes, | ||
AttributeBuffer * | ddAttributes, | ||
CachingDisplayData * | parentDisplayData | ||
) |
Constructor.
A single instance of a CachingDisplayMethod is setup to draw on a particular WorldCanvas, and only when particular conditions, as stored in the provided AttributeBuffers, are met. The parent DisplayData is given in parentDisplayData
.
|
virtual |
Destructor.
|
protected |
(Required) default constructor.
|
protected |
(Required) copy constructor.
|
virtual |
Draw this slice of data on the supplied WorldCanvasHolder.
Implements casa::DisplayMethod.
|
protectedpure virtual |
Draw into a cached drawing list, called by draw function.
The return value is set false if the DM could not draw or does not wish a drawlist to be saved.
Implemented in casa::MSAsRasterDM, casa::RegionShapeDM, casa::WedgeDM, casa::TblAsXYDM, casa::TblAsRasterDM, casa::TblAsContourDM, casa::Histogram2dDM, casa::Profile2dDM, casa::SkyCatOverlayDM, casa::DrawingDisplayMethod, casa::AxesDisplayMethod, and casa::WorldAxesDM.
|
protected |
(Required) copy assignment.
|
inlinevirtual |
Return the WorldCanvas recorded in this CachingDisplayMethod.
Definition at line 84 of file CachingDisplayMethod.h.
References itsWorldCanvas.
Referenced by casa::MSAsRasterDM::drawIntoList().
|
private |
Store for cached drawing list number.
Definition at line 122 of file CachingDisplayMethod.h.
|
private |
Definition at line 116 of file CachingDisplayMethod.h.
|
private |
Do we have a cached drawing list?
Definition at line 119 of file CachingDisplayMethod.h.
|
private |
Store for WorldCanvasHolder- and DisplayData-specific AttributeBuffers.
Definition at line 116 of file CachingDisplayMethod.h.
|
private |
Store for the WorldCanvas which this has previously drawn upon.
Definition at line 112 of file CachingDisplayMethod.h.
Referenced by worldCanvas().