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

#include <DSScreenArrow.h>

Inheritance diagram for casa::DSScreenArrow:
casa::DSArrow casa::DisplayShapeWithCoords casa::DSLine casa::DSPolyLine casa::DSBasic casa::DisplayShape

List of all members.

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

PixelCanvasitsPC
 The pixelcanvas we are using.
Vector< FloatitsRelativeStart
 The center of the marker in world co-ords.
Vector< FloatitsRelativeEnd

Detailed Description

Definition at line 52 of file DSScreenArrow.h.


Constructor & Destructor Documentation

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

Member Function Documentation

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.

   

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.


Member Data Documentation

The pixelcanvas we are using.

Definition at line 87 of file DSScreenArrow.h.

Definition at line 91 of file DSScreenArrow.h.

The center of the marker in world co-ords.

Definition at line 90 of file DSScreenArrow.h.


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