casa
$Rev:20696$
|
Implementation of a rectangular object for DrawingDisplayData class. More...
#include <DDDRectangle.h>
Public Member Functions | |
DDDRectangle (const Record &description, DrawingDisplayData *owner) | |
Constructor taking a Record description. | |
virtual | ~DDDRectangle () |
Destructor. | |
virtual void | draw (const Display::RefreshReason &reason, WorldCanvas *worldcanvas) |
Draw this rectangle object for the given reason on the provided WorldCanvas. | |
virtual Record | description () |
Return a record describing this object. | |
virtual void | setDescription (const Record &rec) |
Update this object based on the information in the provided Record. | |
virtual void | operator() (const WCRefreshEvent &) |
Event handlers. | |
virtual void | operator() (const WCPositionEvent &ev) |
Default just prints the event to cout. | |
virtual void | operator() (const WCMotionEvent &ev) |
default sends event to cout | |
Protected Member Functions | |
DDDRectangle () | |
DDDRectangle (const DDDRectangle &other) | |
(Required) copy constructor. | |
void | operator= (const DDDRectangle &other) |
(Required) copy assignment. | |
Private Attributes | |
Vector< Double > | itsBlc |
Blc and trc of rectangle in world coordinates. | |
Vector< Double > | itsTrc |
Vector< Int > | itsHX |
Handle coordinates. | |
Vector< Int > | itsHY |
DDDObject::Mode | itsMode |
Mode. | |
Int | itsBaseMoveX |
Store for movement bases. | |
Int | itsBaseMoveY |
Bool | itsLeftHandle |
is it a left handle? a bottom handle? | |
Bool | itsBottomHandle |
Implementation of a rectangular object for DrawingDisplayData class.
This class implements the interface defined by DDDObject, to provide a rectangle object for registration with DrawingDisplayData objects.
Definition at line 47 of file DDDRectangle.h.
casa::DDDRectangle::DDDRectangle | ( | const Record & | description, |
DrawingDisplayData * | owner | ||
) |
virtual casa::DDDRectangle::~DDDRectangle | ( | ) | [virtual] |
Destructor.
casa::DDDRectangle::DDDRectangle | ( | ) | [protected] |
(Required) default constructor.
casa::DDDRectangle::DDDRectangle | ( | const DDDRectangle & | other | ) | [protected] |
(Required) copy constructor.
virtual Record casa::DDDRectangle::description | ( | ) | [virtual] |
Return a record describing this object.
Reimplemented from casa::DDDObject.
virtual void casa::DDDRectangle::draw | ( | const Display::RefreshReason & | reason, |
WorldCanvas * | worldcanvas | ||
) | [virtual] |
Draw this rectangle object for the given reason on the provided WorldCanvas.
Implements casa::DDDObject.
virtual void casa::DDDRectangle::operator() | ( | const WCRefreshEvent & | ) | [inline, virtual] |
Event handlers.
The parent DrawingDisplayData will distribute events as necessary to the various DDDObjects which comprise it.
Implements casa::DDDObject.
Definition at line 75 of file DDDRectangle.h.
virtual void casa::DDDRectangle::operator() | ( | const WCPositionEvent & | ev | ) | [virtual] |
Default just prints the event to cout.
Implements casa::DDDObject.
virtual void casa::DDDRectangle::operator() | ( | const WCMotionEvent & | ev | ) | [virtual] |
default sends event to cout
Implements casa::DDDObject.
void casa::DDDRectangle::operator= | ( | const DDDRectangle & | other | ) | [protected] |
(Required) copy assignment.
virtual void casa::DDDRectangle::setDescription | ( | const Record & | rec | ) | [virtual] |
Update this object based on the information in the provided Record.
Reimplemented from casa::DDDObject.
Int casa::DDDRectangle::itsBaseMoveX [private] |
Store for movement bases.
Definition at line 103 of file DDDRectangle.h.
Int casa::DDDRectangle::itsBaseMoveY [private] |
Definition at line 103 of file DDDRectangle.h.
Vector<Double> casa::DDDRectangle::itsBlc [private] |
Blc and trc of rectangle in world coordinates.
Definition at line 94 of file DDDRectangle.h.
Bool casa::DDDRectangle::itsBottomHandle [private] |
Definition at line 106 of file DDDRectangle.h.
Vector<Int> casa::DDDRectangle::itsHX [private] |
Handle coordinates.
Definition at line 97 of file DDDRectangle.h.
Vector<Int> casa::DDDRectangle::itsHY [private] |
Definition at line 97 of file DDDRectangle.h.
Bool casa::DDDRectangle::itsLeftHandle [private] |
is it a left handle? a bottom handle?
Definition at line 106 of file DDDRectangle.h.
DDDObject::Mode casa::DDDRectangle::itsMode [private] |
Mode.
Definition at line 100 of file DDDRectangle.h.
Vector<Double> casa::DDDRectangle::itsTrc [private] |
Definition at line 94 of file DDDRectangle.h.