casa
$Rev:20696$
|
#include <DSScreenArrow.h>
Public Member Functions | |
DSScreenArrow () | |
DSScreenArrow (const Record &settings, PixelCanvas *pc) | |
DSScreenArrow (DSPixelArrow &other, PixelCanvas *pc) | |
DSScreenArrow (DSWorldArrow &other) | |
virtual | ~DSScreenArrow () |
virtual void | recalculateScreenPosition () |
virtual void | move (const Float &dX, const Float &dY) |
So we can update our Screen pos (relative) | |
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 Bool | setOptions (const Record &settings) |
virtual Record | getOptions () |
Return an option record describing the shape. | |
virtual Record | getRawOptions () |
Private Member Functions | |
void | updateRelative () |
Private Attributes | |
PixelCanvas * | itsPC |
The pixelcanvas we are using. | |
Vector< Float > | itsRelativeStart |
The center of the marker in world co-ords. | |
Vector< Float > | itsRelativeEnd |
Definition at line 52 of file DSScreenArrow.h.
casa::DSScreenArrow::DSScreenArrow | ( | const Record & | settings, |
PixelCanvas * | pc | ||
) |
casa::DSScreenArrow::DSScreenArrow | ( | DSPixelArrow & | other, |
PixelCanvas * | pc | ||
) |
casa::DSScreenArrow::DSScreenArrow | ( | DSWorldArrow & | other | ) |
virtual casa::DSScreenArrow::~DSScreenArrow | ( | ) | [virtual] |
virtual void casa::DSScreenArrow::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::DSScreenArrow::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 Record casa::DSScreenArrow::getOptions | ( | ) | [virtual] |
Return an option record describing the shape.
Reimplemented from casa::DSArrow.
Referenced by getRawOptions().
virtual Record casa::DSScreenArrow::getRawOptions | ( | ) | [inline, virtual] |
Implements casa::DisplayShapeWithCoords.
Definition at line 80 of file DSScreenArrow.h.
References getOptions().
virtual void casa::DSScreenArrow::move | ( | const Float & | dX, |
const Float & | dY | ||
) | [virtual] |
So we can update our Screen pos (relative)
Reimplemented from casa::DSArrow.
virtual void casa::DSScreenArrow::recalculateScreenPosition | ( | ) | [virtual] |
Reimplemented from casa::DisplayShape.
virtual void casa::DSScreenArrow::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::DSScreenArrow::scale | ( | const Float & | scaleFactor | ) | [virtual] |
Scale the shape about its center by the scaleFactor.
Reimplemented from casa::DSArrow.
virtual void casa::DSScreenArrow::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::DSScreenArrow::setEndPoint | ( | const Vector< Float > & | endPoint | ) | [virtual] |
Reimplemented from casa::DSArrow.
virtual Bool casa::DSScreenArrow::setOptions | ( | const Record & | settings | ) | [virtual] |
Reimplemented from casa::DSArrow.
virtual void casa::DSScreenArrow::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::DSScreenArrow::updateRelative | ( | ) | [private] |
PixelCanvas* casa::DSScreenArrow::itsPC [private] |
The pixelcanvas we are using.
Definition at line 87 of file DSScreenArrow.h.
Vector<Float> casa::DSScreenArrow::itsRelativeEnd [private] |
Definition at line 91 of file DSScreenArrow.h.
Vector<Float> casa::DSScreenArrow::itsRelativeStart [private] |
The center of the marker in world co-ords.
Definition at line 90 of file DSScreenArrow.h.