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

#include <DSWorldArrow.h>

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

List of all members.

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 PanelDisplaypanelDisplay ()

Private Member Functions

virtual WorldCanvaschooseWC (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

PanelDisplayitsPD
 The paneldisplay from which I may choose an appropriate WC.
WorldCanvasitsWC
 The WC of my choosing.
Vector< Quantum< Double > > itsWorldStart
 The center of the marker in world co-ords.
Vector< Quantum< Double > > itsWorldEnd

Detailed Description

Definition at line 50 of file DSWorldArrow.h.


Constructor & Destructor Documentation

casa::DSWorldArrow::DSWorldArrow ( const Record settings,
PanelDisplay pd 
)
virtual casa::DSWorldArrow::~DSWorldArrow ( ) [virtual]

Member Function Documentation

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.

   

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.


Member Data Documentation

The paneldisplay from which I may choose an appropriate WC.

Definition at line 100 of file DSWorldArrow.h.

Referenced by panelDisplay().

The WC of my choosing.

Definition at line 103 of file DSWorldArrow.h.

Definition at line 107 of file DSWorldArrow.h.

The center of the marker in world co-ords.

Definition at line 106 of file DSWorldArrow.h.


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