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

Base class for drawing a particular element (view) of a DisplayData. More...

#include <DisplayMethod.h>

Inheritance diagram for casa::DisplayMethod:
casa::CachingDisplayMethod casa::PrincipalAxesDM casa::AxesDisplayMethod casa::DrawingDisplayMethod casa::Histogram2dDM casa::MSAsRasterDM casa::Profile2dDM casa::RegionShapeDM casa::SkyCatOverlayDM casa::TblAsContourDM casa::TblAsRasterDM casa::TblAsXYDM casa::WedgeDM casa::WorldAxesDM casa::LatticePADisplayMethod< T > casa::ScrollingRasterDM

List of all members.

Public Member Functions

 DisplayMethod (DisplayData *parentDisplayData)
 Constructor.
virtual ~DisplayMethod ()
 Destructor.
virtual void draw (Display::RefreshReason reason, WorldCanvasHolder &wcHolder)=0
 Draw on the provided WorldCanvasHolder.
virtual void cleanup ()
 clear drawlist state.
void addRestriction (Attribute &newAt, Bool permanent)
 Set & remove restrictions.
void addRestrictions (AttributeBuffer &newBuf)
void setRestriction (Attribute &newAt)
void setRestrictions (AttributeBuffer &newBuf)
void removeRestriction (const String &name)
Bool existRestriction (const String &name)
void clearRestrictions ()
Bool matches (Attribute &at)
 match restriction
Bool matches (AttributeBuffer &atBuf)

Protected Member Functions

 DisplayMethod ()
 (Required) default constructor.
 DisplayMethod (const DisplayMethod &other)
 (Required) copy constructor.
void operator= (const DisplayMethod &other)
 (Required) copy assignment.
DisplayDataparentDisplayData ()
 Return the parent DisplayData.

Protected Attributes

AttributeBuffer restrictions

Private Attributes

DisplayDataitsParentDisplayData

Friends

class DisplayData
 Allow DisplayData objects to find out about restrictions in DisplayMethod elements...

Detailed Description

Base class for drawing a particular element (view) of a DisplayData.

Synopsis

This base class defines an interface for drawing a single view of a DisplayData object. The fundamental idea is that a DisplayData class will manage one or more DisplayMethod objects, and request the individual objects to draw as necessary.

Definition at line 56 of file DisplayMethod.h.


Constructor & Destructor Documentation

Constructor.

DisplayMethods need to know who their parent DisplayData is.

virtual casa::DisplayMethod::~DisplayMethod ( ) [virtual]

Destructor.

(Required) default constructor.

casa::DisplayMethod::DisplayMethod ( const DisplayMethod other) [protected]

(Required) copy constructor.


Member Function Documentation

void casa::DisplayMethod::addRestriction ( Attribute newAt,
Bool  permanent 
)

Set & remove restrictions.

virtual void casa::DisplayMethod::cleanup ( ) [virtual]

clear drawlist state.

dk note 11/03: Only used by the PrincipleAxesDM branch, where the implementation has been moved. Implementation should remain null on the CachingDD/DM branch, which uses different interface (purgeCache) and state for this.

Reimplemented in casa::WedgeDM, casa::TblAsXYDM, casa::TblAsRasterDM, casa::TblAsContourDM, casa::PrincipalAxesDM, casa::Histogram2dDM, casa::Profile2dDM, casa::AxesDisplayMethod, casa::DrawingDisplayMethod, casa::SkyCatOverlayDM, and casa::WorldAxesDM.

virtual void casa::DisplayMethod::draw ( Display::RefreshReason  reason,
WorldCanvasHolder wcHolder 
) [pure virtual]

Draw on the provided WorldCanvasHolder.

Implemented in casa::CachingDisplayMethod, and casa::PrincipalAxesDM.

match restriction

void casa::DisplayMethod::operator= ( const DisplayMethod other) [protected]

(Required) copy assignment.

Return the parent DisplayData.

Definition at line 113 of file DisplayMethod.h.

References itsParentDisplayData.

Referenced by casa::MSAsRasterDM::drawIntoList().


Friends And Related Function Documentation

friend class DisplayData [friend]

Allow DisplayData objects to find out about restrictions in DisplayMethod elements...

Definition at line 97 of file DisplayMethod.h.


Member Data Documentation

Definition at line 118 of file DisplayMethod.h.

Referenced by parentDisplayData().

Definition at line 101 of file DisplayMethod.h.


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