casa
$Rev:20696$
|
#include <DSScreenPoly.h>
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 | |
PixelCanvas * | itsPC |
Matrix< Float > | itsRelativePoints |
Definition at line 52 of file DSScreenPoly.h.
casa::DSScreenPoly::DSScreenPoly | ( | const Record & | settings, |
PixelCanvas * | pc | ||
) |
casa::DSScreenPoly::DSScreenPoly | ( | DSPixelPoly & | other, |
PixelCanvas * | pc | ||
) |
casa::DSScreenPoly::DSScreenPoly | ( | DSWorldPoly & | other | ) |
casa::DSScreenPoly::DSScreenPoly | ( | DSScreenPolyLine & | other, |
PixelCanvas * | pc | ||
) |
virtual casa::DSScreenPoly::~DSScreenPoly | ( | ) | [virtual] |
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] |
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.
virtual void casa::DSScreenPoly::recalculateScreenPosition | ( | ) | [virtual] |
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.
void casa::DSScreenPoly::updateRelative | ( | ) | [private] |
PixelCanvas* casa::DSScreenPoly::itsPC [private] |
Definition at line 83 of file DSScreenPoly.h.
Matrix<Float> casa::DSScreenPoly::itsRelativePoints [private] |
Definition at line 84 of file DSScreenPoly.h.