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

Specialization of PlotShape for an arrow. More...

#include <PlotShape.h>

Inheritance diagram for casa::PlotShapeArrow:
casa::PlotShape casa::PlotItem

List of all members.

Public Types

enum  Style {
  TRIANGLE,
  V_ARROW,
  NOARROW
}
 Arrow style. More...

Public Member Functions

 PlotShapeArrow ()
 Constructor.
virtual ~PlotShapeArrow ()
 Destructor.
virtual void setArrowCoordinates (const PlotCoordinate &from, const PlotCoordinate &to)=0
 Sets the arrow coordinates to the given.
virtual Style arrowStyleFrom () const =0
 Gets the arrow style on the from/to points.
virtual Style arrowStyleTo () const =0
virtual void setArrowStyleFrom (Style style)=0
 Sets the arrow style(s) to the given.
virtual void setArrowStyleTo (Style style)=0
virtual void setArrowStyles (Style from, Style to)
virtual double arrowSize () const =0
 Returns the arrow size/length.
virtual void setArrowSize (double size)=0
 Sets the arrow size/length to the given.

Detailed Description

Specialization of PlotShape for an arrow.

An arrow is a line segment connecting two points, with optional arrows at either end. PlotShape's line methods apply both to the line segment and the outline of the arrow; the areaFill methods apply to the arrow if applicable. Getting/setting coordinates MUST be in the order: [from, to].

Definition at line 214 of file PlotShape.h.


Member Enumeration Documentation

Arrow style.

Enumerator:
TRIANGLE 
V_ARROW 
NOARROW 

Definition at line 217 of file PlotShape.h.


Constructor & Destructor Documentation

Constructor.

Definition at line 225 of file PlotShape.h.

virtual casa::PlotShapeArrow::~PlotShapeArrow ( ) [inline, virtual]

Destructor.

Definition at line 228 of file PlotShape.h.


Member Function Documentation

virtual double casa::PlotShapeArrow::arrowSize ( ) const [pure virtual]

Returns the arrow size/length.

virtual Style casa::PlotShapeArrow::arrowStyleFrom ( ) const [pure virtual]

Gets the arrow style on the from/to points.

virtual Style casa::PlotShapeArrow::arrowStyleTo ( ) const [pure virtual]
virtual void casa::PlotShapeArrow::setArrowCoordinates ( const PlotCoordinate &  from,
const PlotCoordinate &  to 
) [pure virtual]

Sets the arrow coordinates to the given.

virtual void casa::PlotShapeArrow::setArrowSize ( double  size) [pure virtual]

Sets the arrow size/length to the given.

virtual void casa::PlotShapeArrow::setArrowStyleFrom ( Style  style) [pure virtual]

Sets the arrow style(s) to the given.

virtual void casa::PlotShapeArrow::setArrowStyles ( Style  from,
Style  to 
) [inline, virtual]

Definition at line 244 of file PlotShape.h.

virtual void casa::PlotShapeArrow::setArrowStyleTo ( Style  style) [pure virtual]

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