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

#include <DSWorldRectangle.h>

Inheritance diagram for casa::DSWorldRectangle:
casa::DSRectangle casa::DisplayShapeWithCoords casa::DSPoly casa::DSClosed casa::DSBasic casa::DisplayShape

List of all members.

Public Member Functions

 DSWorldRectangle ()
 DSWorldRectangle (const Record &settings, PanelDisplay *pd)
 DSWorldRectangle (DSScreenRectangle &other, PanelDisplay *pd)
 DSWorldRectangle (DSPixelRectangle &other, PanelDisplay *pd)
virtual ~DSWorldRectangle ()
virtual void recalculateScreenPosition ()
 
   

virtual void move (const Float &dX, const Float &dY)
 So we can update our WCs.
virtual void setCenter (const Float &xPos, const Float &yPos)
 Sets the center of the DisplayShape.
virtual void rotate (const Float &angle)
 Rotate the shape about its center by a set angle (angle in degrees).
virtual void changePoint (const Vector< Float > &pos, const Int n)
 Changes the nth point making up the DisplayShape ot the specified location.
virtual void changePoint (const Vector< Float > &pos)
 Changes the closest point to the supplied location to that location.
virtual void draw (PixelCanvas *pc)
 General DisplayShape functions.
virtual Bool setOptions (const Record &settings)
 PLUS OTHERS!!
virtual Record getOptions ()
 Get and set options.
virtual Record getRawOptions ()
virtual PanelDisplaypanelDisplay ()

Private Member Functions

void updateWCoords ()

Private Attributes

PanelDisplayitsPD
 Based on a pixel center virtual Bool chooseWC(const Float& centerX, const Float& centerY, PanelDisplay* pdx, WorldCanvas* wc);.
WorldCanvasitsWC
 The WC of my choosing.
Vector< Quantum< Double > > itsWorldParameters
 The center of the marker in world co-ords.

Detailed Description

Definition at line 50 of file DSWorldRectangle.h.


Constructor & Destructor Documentation


Member Function Documentation

virtual void casa::DSWorldRectangle::changePoint ( const Vector< Float > &  newPoint,
const Int  nPoint 
) [virtual]

Changes the nth point making up the DisplayShape ot the specified location.

Reimplemented from casa::DSRectangle.

virtual void casa::DSWorldRectangle::changePoint ( const Vector< Float > &  newPos) [virtual]

Changes the closest point to the supplied location to that location.

Reimplemented from casa::DSRectangle.

virtual void casa::DSWorldRectangle::draw ( PixelCanvas pc) [virtual]

General DisplayShape functions.

Reimplemented from casa::DSPoly.

Get and set options.

Reimplemented from casa::DSRectangle.

Referenced by getRawOptions().

virtual Record casa::DSWorldRectangle::getRawOptions ( ) [inline, virtual]

Implements casa::DisplayShapeWithCoords.

Definition at line 80 of file DSWorldRectangle.h.

References getOptions().

virtual void casa::DSWorldRectangle::move ( const Float dX,
const Float dY 
) [virtual]

So we can update our WCs.

Reimplemented from casa::DSRectangle.

virtual PanelDisplay* casa::DSWorldRectangle::panelDisplay ( ) [inline, virtual]

Definition at line 84 of file DSWorldRectangle.h.

References itsPD.

   

Reimplemented from casa::DisplayShape.

virtual void casa::DSWorldRectangle::rotate ( const Float angle) [virtual]

Rotate the shape about its center by a set angle (angle in degrees).

Reimplemented from casa::DSRectangle.

virtual void casa::DSWorldRectangle::setCenter ( const Float xPos,
const Float yPos 
) [virtual]

Sets the center of the DisplayShape.

Reimplemented from casa::DSRectangle.

virtual Bool casa::DSWorldRectangle::setOptions ( const Record settings) [virtual]

PLUS OTHERS!!

Reimplemented from casa::DSRectangle.


Member Data Documentation

Based on a pixel center virtual Bool chooseWC(const Float& centerX, const Float& centerY, PanelDisplay* pdx, WorldCanvas* wc);.

The paneldisplay from which I may choose an appropriate WC

Definition at line 96 of file DSWorldRectangle.h.

Referenced by panelDisplay().

The WC of my choosing.

Definition at line 99 of file DSWorldRectangle.h.

The center of the marker in world co-ords.

x, y, major, minor, angle

Definition at line 103 of file DSWorldRectangle.h.


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