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

Implementation of a rectangular object for DrawingDisplayData class. More...

#include <DDDRectangle.h>

Inheritance diagram for casa::DDDRectangle:
casa::DDDObject casa::WCRefreshEH casa::WCMotionEH casa::WCPositionEH casa::DisplayEH

List of all members.

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< DoubleitsBlc
 Blc and trc of rectangle in world coordinates.
Vector< DoubleitsTrc
Vector< IntitsHX
 Handle coordinates.
Vector< IntitsHY
DDDObject::Mode itsMode
 Mode.
Int itsBaseMoveX
 Store for movement bases.
Int itsBaseMoveY
Bool itsLeftHandle
 is it a left handle? a bottom handle?
Bool itsBottomHandle

Detailed Description

Implementation of a rectangular object for DrawingDisplayData class.

Synopsis

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.


Constructor & Destructor Documentation

casa::DDDRectangle::DDDRectangle ( const Record description,
DrawingDisplayData owner 
)

Constructor taking a Record description.

Fields in the record, on top of what is consumed by the DDDObject constructor, are: blc and trc.

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

Destructor.

   

(Required) default constructor.

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

(Required) copy constructor.


Member Function Documentation

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.


Member Data Documentation

Store for movement bases.

Definition at line 103 of file DDDRectangle.h.

Definition at line 103 of file DDDRectangle.h.

Blc and trc of rectangle in world coordinates.

Definition at line 94 of file DDDRectangle.h.

Definition at line 106 of file DDDRectangle.h.

Handle coordinates.

Definition at line 97 of file DDDRectangle.h.

Definition at line 97 of file DDDRectangle.h.

is it a left handle? a bottom handle?

Definition at line 106 of file DDDRectangle.h.

Mode.

Definition at line 100 of file DDDRectangle.h.

Definition at line 94 of file DDDRectangle.h.


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