casa
$Rev:20696$
|
(Minimal) DisplayMethod for MSAsRaster. More...
#include <MSAsRaster.h>
Public Member Functions | |
MSAsRasterDM (WorldCanvas *wc, AttributeBuffer *wchAttrs, AttributeBuffer *ddAttrs, CachingDisplayData *dd) | |
Constructor. | |
virtual | ~MSAsRasterDM () |
Destructor. | |
Protected Member Functions | |
virtual Bool | drawIntoList (Display::RefreshReason reason, WorldCanvasHolder &wcHolder) |
The base CachingDM takes care of using any cached drawlist. | |
Private Member Functions | |
MSAsRasterDM () | |
Default and copy constructors, and the assignment operator, are mon-functional and should not be used. | |
MSAsRasterDM (const MSAsRasterDM &other) | |
MSAsRasterDM & | operator= (const MSAsRasterDM &) |
(Minimal) DisplayMethod for MSAsRaster.
"MSAsRasterDM" is a implementation of a CachingDisplayMethod for MSAsRaster .
MSAsRasterDM a minimal skeleton; it is implemented in its entirety here. Its only purpose is to hold the cached drawlist and use it when appropriate via the mechanism and data structure implemented on the CachingDisplayMethod level. MSAsRasterDM just turns the draw request back over to MSAsRaster, since that's where the necessary data is.
This 'minimal' CachingDisplayMethod could be adapted and reused by any other CachingDisplayData that wanted to do its own drawing.
Definition at line 1315 of file MSAsRaster.h.
casa::MSAsRasterDM::MSAsRasterDM | ( | WorldCanvas * | wc, |
AttributeBuffer * | wchAttrs, | ||
AttributeBuffer * | ddAttrs, | ||
CachingDisplayData * | dd | ||
) | [inline] |
Constructor.
The parameters contain state that determines what should be drawn.
Definition at line 1321 of file MSAsRaster.h.
virtual casa::MSAsRasterDM::~MSAsRasterDM | ( | ) | [inline, virtual] |
Destructor.
Definition at line 1326 of file MSAsRaster.h.
casa::MSAsRasterDM::MSAsRasterDM | ( | ) | [inline, private] |
Default and copy constructors, and the assignment operator, are mon-functional and should not be used.
Do not make copies of DisplayMethod objects, or pass them by value; use references or pointers instead.
Definition at line 1352 of file MSAsRaster.h.
casa::MSAsRasterDM::MSAsRasterDM | ( | const MSAsRasterDM & | other | ) | [inline, private] |
Definition at line 1353 of file MSAsRaster.h.
virtual Bool casa::MSAsRasterDM::drawIntoList | ( | Display::RefreshReason | reason, |
WorldCanvasHolder & | wcHolder | ||
) | [inline, protected, virtual] |
The base CachingDM takes care of using any cached drawlist.
When this method is called, we know that no drawlist applies, and that we must actually send drawing commands to the WC (though technically, they might not actually be going into a drawlist). This skeleton DM just hands the drawing task back to the DD, where all the data has been created and maintained anyway.
Implements casa::CachingDisplayMethod.
Definition at line 1337 of file MSAsRaster.h.
References casa::MSAsRaster::draw_(), casa::DisplayMethod::parentDisplayData(), and casa::CachingDisplayMethod::worldCanvas().
MSAsRasterDM& casa::MSAsRasterDM::operator= | ( | const MSAsRasterDM & | ) | [inline, private] |
Definition at line 1354 of file MSAsRaster.h.