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

#include <DSWorldPoly.h>

Inheritance diagram for casa::DSWorldPoly:
casa::DSPoly casa::DisplayShapeWithCoords casa::DSClosed casa::DSBasic casa::DisplayShape

List of all members.

Public Member Functions

 DSWorldPoly ()
 DSWorldPoly (const Record &settings, PanelDisplay *pd)
 DSWorldPoly (DSScreenPoly &other, PanelDisplay *pd)
 DSWorldPoly (DSPixelPoly &other, PanelDisplay *pd)
 DSWorldPoly (DSWorldPolyLine &other)
virtual ~DSWorldPoly ()
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 scale (const Float &scaleFactor)
 Scale the shape about its center by the scaleFactor.
virtual void addPoint (const Vector< Float > &newPos)
 Polygon specific functions, add, delete and set points, all in pixels.
virtual void setPoints (const Matrix< Float > &points)
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)
 
   

virtual Record getOptions ()
 Get and set options.
virtual Record getRawOptions ()
virtual PanelDisplaypanelDisplay ()

Private Member Functions

void updateWCoords ()

Private Attributes

PanelDisplayitsPD
 The paneldisplay from which I may choose an appropriate WC.
WorldCanvasitsWC
 The WC of my choosing.
Vector< Quantum< Double > > itsWorldXPoints
 The center of the marker in world co-ords.
Vector< Quantum< Double > > itsWorldYPoints

Detailed Description

Definition at line 53 of file DSWorldPoly.h.


Constructor & Destructor Documentation

casa::DSWorldPoly::DSWorldPoly ( const Record settings,
PanelDisplay pd 
)
virtual casa::DSWorldPoly::~DSWorldPoly ( ) [virtual]

Member Function Documentation

virtual void casa::DSWorldPoly::addPoint ( const Vector< Float > &  newPoint) [virtual]

Polygon specific functions, add, delete and set points, all in pixels.

Add point decides the best place in the array to insert the new point. Similarly, deletePoints(const Vector<Float>& remove) deletes the point closest to that provided.

Reimplemented from casa::DSPoly.

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

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

Reimplemented from casa::DSPoly.

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

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

Reimplemented from casa::DSPoly.

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

General DisplayShape functions.

Reimplemented from casa::DSPoly.

virtual Record casa::DSWorldPoly::getOptions ( ) [virtual]

Get and set options.

Reimplemented from casa::DSPoly.

Referenced by getRawOptions().

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

Implements casa::DisplayShapeWithCoords.

Definition at line 87 of file DSWorldPoly.h.

References getOptions().

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

So we can update our WCs.

Reimplemented from casa::DSPoly.

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

Definition at line 91 of file DSWorldPoly.h.

References itsPD.

   

Reimplemented from casa::DisplayShape.

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

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

Reimplemented from casa::DSPoly.

virtual void casa::DSWorldPoly::scale ( const Float scaleFactor) [virtual]

Scale the shape about its center by the scaleFactor.

Reimplemented from casa::DSPoly.

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

Sets the center of the DisplayShape.

Reimplemented from casa::DSPoly.

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

   

Reimplemented from casa::DSPoly.

virtual void casa::DSWorldPoly::setPoints ( const Matrix< Float > &  points) [virtual]

Reimplemented from casa::DSPoly.


Member Data Documentation

The paneldisplay from which I may choose an appropriate WC.

Definition at line 98 of file DSWorldPoly.h.

Referenced by panelDisplay().

The WC of my choosing.

Definition at line 101 of file DSWorldPoly.h.

The center of the marker in world co-ords.

Definition at line 104 of file DSWorldPoly.h.

Definition at line 105 of file DSWorldPoly.h.


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