casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Private Member Functions | List of all members
casa::MSAsRasterDM Class Reference

(Minimal) DisplayMethod for MSAsRaster. More...

#include <MSAsRaster.h>

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

Public Member Functions

 MSAsRasterDM (WorldCanvas *wc, AttributeBuffer *wchAttrs, AttributeBuffer *ddAttrs, CachingDisplayData *dd)
 Constructor. More...
virtual ~MSAsRasterDM ()
 Destructor. More...
- Public Member Functions inherited from casa::CachingDisplayMethod
 CachingDisplayMethod (WorldCanvas *worldCanvas, AttributeBuffer *wchAttributes, AttributeBuffer *ddAttributes, CachingDisplayData *parentDisplayData)
 Constructor. More...
virtual ~CachingDisplayMethod ()
 Destructor. More...
virtual WorldCanvasworldCanvas ()
 Return the WorldCanvas recorded in this CachingDisplayMethod. More...
virtual void draw (Display::RefreshReason reason, WorldCanvasHolder &wcHolder)
 Draw this slice of data on the supplied WorldCanvasHolder. More...
- Public Member Functions inherited from casa::DisplayMethod
 DisplayMethod (DisplayData *parentDisplayData)
 Constructor. More...
virtual ~DisplayMethod ()
 Destructor. More...
virtual void cleanup ()
 clear drawlist state. More...
void addRestriction (Attribute &newAt, casacore::Bool permanent)
 Set & remove restrictions. More...
void addRestrictions (AttributeBuffer &newBuf)
void setRestriction (Attribute &newAt)
void setRestrictions (AttributeBuffer &newBuf)
void removeRestriction (const casacore::String &name)
casacore::Bool existRestriction (const casacore::String &name)
void clearRestrictions ()
casacore::Bool matches (Attribute &at)
 match restriction More...
casacore::Bool matches (AttributeBuffer &atBuf)

Protected Member Functions

virtual casacore::Bool drawIntoList (Display::RefreshReason reason, WorldCanvasHolder &wcHolder)
 The base CachingDM takes care of using any cached drawlist. More...
- Protected Member Functions inherited from casa::CachingDisplayMethod
 CachingDisplayMethod ()
 (Required) default constructor. More...
 CachingDisplayMethod (const CachingDisplayMethod &other)
 (Required) copy constructor. More...
void operator= (const CachingDisplayMethod &other)
 (Required) copy assignment. 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...
DisplayDataparentDisplayData ()
 Return the parent DisplayData. More...

Private Member Functions

 MSAsRasterDM ()
 Default and copy constructors, and the assignment operator, are mon-functional and should not be used. More...
 MSAsRasterDM (const MSAsRasterDM &other)
MSAsRasterDMoperator= (const MSAsRasterDM &)

Additional Inherited Members

- Protected Attributes inherited from casa::DisplayMethod
AttributeBuffer restrictions

Detailed Description

(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 1431 of file MSAsRaster.h.

Constructor & Destructor Documentation

casa::MSAsRasterDM::MSAsRasterDM ( WorldCanvas wc,
AttributeBuffer wchAttrs,
AttributeBuffer ddAttrs,
CachingDisplayData dd 


The parameters contain state that determines what should be drawn.

Definition at line 1437 of file MSAsRaster.h.

virtual casa::MSAsRasterDM::~MSAsRasterDM ( )


Definition at line 1442 of file MSAsRaster.h.

casa::MSAsRasterDM::MSAsRasterDM ( )

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 1469 of file MSAsRaster.h.

casa::MSAsRasterDM::MSAsRasterDM ( const MSAsRasterDM other)

Definition at line 1470 of file MSAsRaster.h.

Member Function Documentation

virtual casacore::Bool casa::MSAsRasterDM::drawIntoList ( Display::RefreshReason  reason,
WorldCanvasHolder wcHolder 

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 1453 of file MSAsRaster.h.

References casa::MSAsRaster::draw_(), casa::DisplayMethod::parentDisplayData(), and casa::CachingDisplayMethod::worldCanvas().

MSAsRasterDM& casa::MSAsRasterDM::operator= ( const MSAsRasterDM )

Definition at line 1471 of file MSAsRaster.h.

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