#include <DSWorldPoly.h>
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 PanelDisplay * | panelDisplay () |
Private Member Functions | |
| void | updateWCoords () |
Private Attributes | |
| PanelDisplay * | itsPD |
| The paneldisplay from which I may choose an appropriate WC. | |
| WorldCanvas * | itsWC |
| The WC of my choosing. | |
| Vector< Quantum< Double > > | itsWorldXPoints |
| The center of the marker in world co-ords. | |
| Vector< Quantum< Double > > | itsWorldYPoints |
Definition at line 53 of file DSWorldPoly.h.
| casa::DSWorldPoly::DSWorldPoly | ( | ) |
| casa::DSWorldPoly::DSWorldPoly | ( | const Record & | settings, | |
| PanelDisplay * | pd | |||
| ) |
| casa::DSWorldPoly::DSWorldPoly | ( | DSScreenPoly & | other, | |
| PanelDisplay * | pd | |||
| ) |
| casa::DSWorldPoly::DSWorldPoly | ( | DSPixelPoly & | other, | |
| PanelDisplay * | pd | |||
| ) |
| casa::DSWorldPoly::DSWorldPoly | ( | DSWorldPolyLine & | other | ) |
| virtual casa::DSWorldPoly::~DSWorldPoly | ( | ) | [virtual] |
| 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 > & | newPos | ) | [virtual] |
Changes the closest point to the supplied location to that location.
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::draw | ( | PixelCanvas * | pc | ) | [virtual] |
General DisplayShape functions.
Reimplemented from casa::DSPoly.
| virtual Record casa::DSWorldPoly::getOptions | ( | ) | [virtual] |
| 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.
| virtual void casa::DSWorldPoly::recalculateScreenPosition | ( | ) | [virtual] |
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.
| void casa::DSWorldPoly::updateWCoords | ( | ) | [private] |
PanelDisplay* casa::DSWorldPoly::itsPD [private] |
The paneldisplay from which I may choose an appropriate WC.
Definition at line 98 of file DSWorldPoly.h.
Referenced by panelDisplay().
WorldCanvas* casa::DSWorldPoly::itsWC [private] |
The WC of my choosing.
Definition at line 101 of file DSWorldPoly.h.
Vector<Quantum<Double> > casa::DSWorldPoly::itsWorldXPoints [private] |
The center of the marker in world co-ords.
Definition at line 104 of file DSWorldPoly.h.
Vector<Quantum<Double> > casa::DSWorldPoly::itsWorldYPoints [private] |
Definition at line 105 of file DSWorldPoly.h.
1.6.1