casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Private Member Functions
casa::MSAsRasterDM Class Reference

(Minimal) DisplayMethod for MSAsRaster. More...

#include <MSAsRaster.h>

Inheritance diagram for casa::MSAsRasterDM:
casa::CachingDisplayMethod casa::DisplayMethod

List of all members.

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)
MSAsRasterDMoperator= (const MSAsRasterDM &)

Detailed Description

(Minimal) DisplayMethod for MSAsRaster.

Prerequisite

Etymology

"MSAsRasterDM" is a implementation of a CachingDisplayMethod for MSAsRaster .

Synopsis

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


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