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 ()
 (Required) default constructor.
 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

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.

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

(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 WCMotionEvent ev  )  [virtual]

default sends event to cout

Implements casa::DDDObject.

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 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.

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

(Required) copy assignment.

Reimplemented from casa::DDDObject.

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 105 of file DDDRectangle.h.

Definition at line 105 of file DDDRectangle.h.

Vector<Double> casa::DDDRectangle::itsBlc [private]

Blc and trc of rectangle in world coordinates.

Definition at line 96 of file DDDRectangle.h.

Definition at line 108 of file DDDRectangle.h.

Vector<Int> casa::DDDRectangle::itsHX [private]

Handle coordinates.

Definition at line 99 of file DDDRectangle.h.

Vector<Int> casa::DDDRectangle::itsHY [private]

Definition at line 99 of file DDDRectangle.h.

is it a left handle? a bottom handle?

Definition at line 108 of file DDDRectangle.h.

Mode.

Definition at line 102 of file DDDRectangle.h.

Vector<Double> casa::DDDRectangle::itsTrc [private]

Definition at line 96 of file DDDRectangle.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1