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

#include <DSScreenPoly.h>

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

List of all members.

Public Member Functions

 DSScreenPoly ()
 DSScreenPoly (const Record &settings, PixelCanvas *pc)
 DSScreenPoly (DSPixelPoly &other, PixelCanvas *pc)
 DSScreenPoly (DSWorldPoly &other)
 DSScreenPoly (DSScreenPolyLine &other, PixelCanvas *pc)
virtual ~DSScreenPoly ()
virtual void recalculateScreenPosition ()
 
   

virtual void setCenter (const Float &xPos, const Float &yPos)
 Sets the center of the DisplayShape.
virtual void move (const Float &dX, const Float &dY)
virtual void scale (const Float &scaleFactor)
 Scale the shape about its center by the scaleFactor.
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 addPoint (const Vector< Float > &newPos)
 Polygon specific functions, add, delete and set points, all in pixels.
virtual void setPoints (const Matrix< Float > &points)
virtual Bool setOptions (const Record &settings)
virtual Record getOptions ()
 Get and set options.
virtual Record getRawOptions ()

Private Member Functions

void updateRelative ()

Private Attributes

PixelCanvasitsPC
Matrix< FloatitsRelativePoints

Detailed Description

Definition at line 52 of file DSScreenPoly.h.


Constructor & Destructor Documentation

casa::DSScreenPoly::DSScreenPoly ( const Record settings,
PixelCanvas pc 
)
virtual casa::DSScreenPoly::~DSScreenPoly ( ) [virtual]

Member Function Documentation

virtual void casa::DSScreenPoly::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::DSScreenPoly::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::DSScreenPoly::changePoint ( const Vector< Float > &  newPos) [virtual]

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

Reimplemented from casa::DSPoly.

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

Get and set options.

Reimplemented from casa::DSPoly.

Referenced by getRawOptions().

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

Implements casa::DisplayShapeWithCoords.

Definition at line 78 of file DSScreenPoly.h.

References getOptions().

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

Reimplemented from casa::DSPoly.

   

Reimplemented from casa::DisplayShape.

virtual void casa::DSScreenPoly::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::DSScreenPoly::scale ( const Float scaleFactor) [virtual]

Scale the shape about its center by the scaleFactor.

Reimplemented from casa::DSPoly.

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

Sets the center of the DisplayShape.

Reimplemented from casa::DSPoly.

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

Reimplemented from casa::DSPoly.

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

Reimplemented from casa::DSPoly.


Member Data Documentation

Definition at line 83 of file DSScreenPoly.h.

Definition at line 84 of file DSScreenPoly.h.


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