casa
$Rev:20696$
|
#include <DSWorldArrow.h>
Public Member Functions | |
DSWorldArrow () | |
DSWorldArrow (const Record &settings, PanelDisplay *pd) | |
DSWorldArrow (DSScreenArrow &other, PanelDisplay *pd) | |
DSWorldArrow (DSPixelArrow &other, PanelDisplay *pd) | |
virtual | ~DSWorldArrow () |
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) |
This does nothing, it's so arrow and other inheriting classes can take note of new centers. | |
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 | setStartPoint (const Vector< Float > &startPoint) |
Standard (changePoint) and specific funtions for altering the arrow. | |
virtual void | setEndPoint (const Vector< Float > &endPoint) |
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) |
Point manipulation functions. | |
virtual void | draw (PixelCanvas *pc) |
Standard Display Shape functions. | |
virtual Bool | setOptions (const Record &settings) |
virtual Record | getOptions () |
Return an option record describing the shape. | |
virtual Record | getRawOptions () |
virtual PanelDisplay * | panelDisplay () |
Private Member Functions | |
virtual WorldCanvas * | chooseWC (const Float &startXPos, const Float &startYPos, const Float &endXPos, const Float &endYPos, PanelDisplay *pd) |
Based on a WC option record virtual WorldCanvas* chooseWC(const Record& settings, PanelDisplay* pd);. | |
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 > > | itsWorldStart |
The center of the marker in world co-ords. | |
Vector< Quantum< Double > > | itsWorldEnd |
Definition at line 50 of file DSWorldArrow.h.
casa::DSWorldArrow::DSWorldArrow | ( | const Record & | settings, |
PanelDisplay * | pd | ||
) |
casa::DSWorldArrow::DSWorldArrow | ( | DSScreenArrow & | other, |
PanelDisplay * | pd | ||
) |
casa::DSWorldArrow::DSWorldArrow | ( | DSPixelArrow & | other, |
PanelDisplay * | pd | ||
) |
virtual casa::DSWorldArrow::~DSWorldArrow | ( | ) | [virtual] |
virtual void casa::DSWorldArrow::changePoint | ( | const Vector< Float > & | newPoint, |
const Int | nPoint | ||
) | [virtual] |
Changes the nth point making up the DisplayShape ot the specified location.
Reimplemented from casa::DSArrow.
virtual void casa::DSWorldArrow::changePoint | ( | const Vector< Float > & | pos | ) | [virtual] |
Point manipulation functions.
The changePoint with only one argument moves the closest point to the location specified.
Reimplemented from casa::DSArrow.
virtual WorldCanvas* casa::DSWorldArrow::chooseWC | ( | const Float & | startXPos, |
const Float & | startYPos, | ||
const Float & | endXPos, | ||
const Float & | endYPos, | ||
PanelDisplay * | pd | ||
) | [private, virtual] |
Based on a WC option record virtual WorldCanvas* chooseWC(const Record& settings, PanelDisplay* pd);.
Based on a pixel center
virtual void casa::DSWorldArrow::draw | ( | PixelCanvas * | pc | ) | [virtual] |
Standard Display Shape functions.
Reimplemented from casa::DSArrow.
virtual Record casa::DSWorldArrow::getOptions | ( | ) | [virtual] |
Return an option record describing the shape.
Reimplemented from casa::DSArrow.
Referenced by getRawOptions().
virtual Record casa::DSWorldArrow::getRawOptions | ( | ) | [inline, virtual] |
Implements casa::DisplayShapeWithCoords.
Definition at line 81 of file DSWorldArrow.h.
References getOptions().
virtual void casa::DSWorldArrow::move | ( | const Float & | dX, |
const Float & | dY | ||
) | [virtual] |
So we can update our WCs.
Reimplemented from casa::DSArrow.
virtual PanelDisplay* casa::DSWorldArrow::panelDisplay | ( | ) | [inline, virtual] |
Definition at line 85 of file DSWorldArrow.h.
References itsPD.
virtual void casa::DSWorldArrow::recalculateScreenPosition | ( | ) | [virtual] |
Reimplemented from casa::DisplayShape.
virtual void casa::DSWorldArrow::rotate | ( | const Float & | angle | ) | [virtual] |
Rotate the shape about its center by a set angle (angle in degrees).
Reimplemented from casa::DSArrow.
virtual void casa::DSWorldArrow::scale | ( | const Float & | scaleFactor | ) | [virtual] |
Scale the shape about its center by the scaleFactor.
Reimplemented from casa::DSArrow.
virtual void casa::DSWorldArrow::setCenter | ( | const Float & | xPos, |
const Float & | yPos | ||
) | [virtual] |
This does nothing, it's so arrow and other inheriting classes can take note of new centers.
Reimplemented from casa::DSArrow.
virtual void casa::DSWorldArrow::setEndPoint | ( | const Vector< Float > & | endPoint | ) | [virtual] |
Reimplemented from casa::DSArrow.
virtual Bool casa::DSWorldArrow::setOptions | ( | const Record & | settings | ) | [virtual] |
Reimplemented from casa::DSArrow.
virtual void casa::DSWorldArrow::setStartPoint | ( | const Vector< Float > & | startPoint | ) | [virtual] |
Standard (changePoint) and specific funtions for altering the arrow.
the changePoint method with only one argument will move the closest point to the specified new point. When speciffyin 'n', in this case only 0 or 1 are valid. The 'startpoint' is the one with the arrow head on it.
Reimplemented from casa::DSArrow.
void casa::DSWorldArrow::updateWCoords | ( | ) | [private] |
PanelDisplay* casa::DSWorldArrow::itsPD [private] |
The paneldisplay from which I may choose an appropriate WC.
Definition at line 100 of file DSWorldArrow.h.
Referenced by panelDisplay().
WorldCanvas* casa::DSWorldArrow::itsWC [private] |
The WC of my choosing.
Definition at line 103 of file DSWorldArrow.h.
Vector<Quantum<Double> > casa::DSWorldArrow::itsWorldEnd [private] |
Definition at line 107 of file DSWorldArrow.h.
Vector<Quantum<Double> > casa::DSWorldArrow::itsWorldStart [private] |
The center of the marker in world co-ords.
Definition at line 106 of file DSWorldArrow.h.