casa
$Rev:20696$
|
Base class for drawing a particular element (view) of a DisplayData. More...
#include <DisplayMethod.h>
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. | |
DisplayData * | parentDisplayData () |
Return the parent DisplayData. | |
Protected Attributes | |
AttributeBuffer | restrictions |
Private Attributes | |
DisplayData * | itsParentDisplayData |
Friends | |
class | DisplayData |
Allow DisplayData objects to find out about restrictions in DisplayMethod elements... |
Base class for drawing a particular element (view) of a DisplayData.
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.
casa::DisplayMethod::DisplayMethod | ( | DisplayData * | parentDisplayData | ) |
Constructor.
DisplayMethods need to know who their parent DisplayData is.
virtual casa::DisplayMethod::~DisplayMethod | ( | ) | [virtual] |
Destructor.
casa::DisplayMethod::DisplayMethod | ( | ) | [protected] |
(Required) default constructor.
casa::DisplayMethod::DisplayMethod | ( | const DisplayMethod & | other | ) | [protected] |
(Required) copy constructor.
void casa::DisplayMethod::addRestriction | ( | Attribute & | newAt, |
Bool | permanent | ||
) |
Set & remove restrictions.
void casa::DisplayMethod::addRestrictions | ( | AttributeBuffer & | newBuf | ) |
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.
Bool casa::DisplayMethod::existRestriction | ( | const String & | name | ) |
match restriction
Bool casa::DisplayMethod::matches | ( | AttributeBuffer & | atBuf | ) |
void casa::DisplayMethod::operator= | ( | const DisplayMethod & | other | ) | [protected] |
(Required) copy assignment.
DisplayData* casa::DisplayMethod::parentDisplayData | ( | ) | [inline, protected] |
Return the parent DisplayData.
Definition at line 113 of file DisplayMethod.h.
References itsParentDisplayData.
Referenced by casa::MSAsRasterDM::drawIntoList().
void casa::DisplayMethod::removeRestriction | ( | const String & | name | ) |
void casa::DisplayMethod::setRestriction | ( | Attribute & | newAt | ) |
void casa::DisplayMethod::setRestrictions | ( | AttributeBuffer & | newBuf | ) |
friend class DisplayData [friend] |
Allow DisplayData objects to find out about restrictions in DisplayMethod elements...
Definition at line 97 of file DisplayMethod.h.
Definition at line 118 of file DisplayMethod.h.
Referenced by parentDisplayData().
AttributeBuffer casa::DisplayMethod::restrictions [protected] |
Definition at line 101 of file DisplayMethod.h.