casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
casa::PlotShapeArc Class Referenceabstract

Specialization of PlotShape for an arc. More...

#include <PlotShape.h>

Inheritance diagram for casa::PlotShapeArc:
casa::PlotShape casa::PlotItem

Public Member Functions

 PlotShapeArc ()
 Constructor. More...
 
virtual ~PlotShapeArc ()
 Destructor. More...
 
virtual PlotCoordinate startCoordinate () const =0
 Returns the start coordinate. More...
 
virtual void setStartCoordinate (const PlotCoordinate &coord)=0
 Sets the start coordinate to the given. More...
 
virtual PlotCoordinate widthHeight () const =0
 Returns the width and height as a PlotCoordinate. More...
 
virtual void setWidthHeight (double width, double height)
 Sets the width and height to the given. More...
 
virtual void setWidthHeight (const PlotCoordinate &widthHeight)=0
 Sets the width and height as a PlotCoordinate. More...
 
virtual int startAngle () const =0
 Returns the start angle. More...
 
virtual void setStartAngle (int startAngle)=0
 Sets the start angle. More...
 
virtual int spanAngle () const =0
 Returns the span angle. More...
 
virtual void setSpanAngle (int spanAngle)=0
 Sets the span angle. More...
 
virtual int orientation () const =0
 Returns the orientation. More...
 
virtual void setOrientation (int o)=0
 Sets the orientation. More...
 
- Public Member Functions inherited from casa::PlotShape
 PlotShape ()
 Constructor. More...
 
virtual ~PlotShape ()
 Destructor. More...
 
virtual unsigned int drawCount () const
 Implements PlotItem::drawCount(). More...
 
virtual std::vector
< PlotCoordinate > 
coordinates () const =0
 ABSTRACT METHODS //. More...
 
virtual void setCoordinates (const std::vector< PlotCoordinate > &c)=0
 Sets this shape's coordinates to the given. More...
 
virtual bool lineShown () const =0
 Returns true if a line is shown for this shape, false otherwise. More...
 
virtual void setLineShown (bool line=true)=0
 Sets whether a line is shown for this shape or not. More...
 
virtual PlotLinePtr line () const =0
 Returns a copy of the line used for this shape. More...
 
virtual void setLine (const PlotLine &line)=0
 Sets this shape's line to the given. More...
 
virtual bool areaFilled () const =0
 Returns true if this shape has an area fill, false otherwise. More...
 
virtual void setAreaFilled (bool area=true)=0
 Sets whether or not this shape has an area fill. More...
 
virtual PlotAreaFillPtr areaFill () const =0
 Returns a copy of the area fill for this shape. More...
 
virtual void setAreaFill (const PlotAreaFill &fill)=0
 Sets this shape's area fill to the given. More...
 
virtual void setLine (const PlotLinePtr l)
 IMPLEMENTED METHODS //. More...
 
virtual void setLine (const casacore::String &color, PlotLine::Style style=PlotLine::SOLID, double width=1.0)
 
virtual void setAreaFill (const PlotAreaFillPtr f)
 Convenience methods for setting the area fill. More...
 
virtual void setAreaFill (const casacore::String &color, PlotAreaFill::Pattern pattern=PlotAreaFill::FILL)
 
- Public Member Functions inherited from casa::PlotItem
 PlotItem ()
 Constructor. More...
 
virtual ~PlotItem ()
 Destructor. More...
 
virtual PlotCanvascanvas () const =0
 Returns the canvas this item is currently attached to, or NULL for none. More...
 
virtual casacore::String title () const =0
 Returns a human-readable title for identification. More...
 
virtual void setTitle (const casacore::String &newTitle)=0
 Sets this items's title to the given. More...
 
virtual bool isValid () const =0
 Returns true if this item is valid, false otherwise. More...
 
virtual bool isQWidget () const =0
 Returns whether this item can be directly casted to a QWidget or not. More...
 
virtual PlotAxis xAxis () const =0
 Returns the item's axes. More...
 
virtual PlotAxis yAxis () const =0
 
virtual void setXAxis (PlotAxis x)=0
 Sets the item's axes. More...
 
virtual void setYAxis (PlotAxis y)=0
 
virtual void setAxes (PlotAxis x, PlotAxis y)
 Sets both the item's axes at once. More...
 
virtual unsigned int drawSegments (unsigned int segmentThreshold) const
 Returns the number of draw segments for this item, using the given segment threshold. More...
 

Detailed Description

Specialization of PlotShape for an arc.

An arc has a start coordinate, width, height, start angle, span angle, and orientation. Getting/setting coordinates MUST be in the order: [start, widthHeight]. The other attributes must be set manually.

Definition at line 276 of file PlotShape.h.

Constructor & Destructor Documentation

casa::PlotShapeArc::PlotShapeArc ( )
inline

Constructor.

Definition at line 279 of file PlotShape.h.

virtual casa::PlotShapeArc::~PlotShapeArc ( )
inlinevirtual

Destructor.

Definition at line 282 of file PlotShape.h.

Member Function Documentation

virtual int casa::PlotShapeArc::orientation ( ) const
pure virtual

Returns the orientation.

virtual void casa::PlotShapeArc::setOrientation ( int  o)
pure virtual

Sets the orientation.

virtual void casa::PlotShapeArc::setSpanAngle ( int  spanAngle)
pure virtual

Sets the span angle.

virtual void casa::PlotShapeArc::setStartAngle ( int  startAngle)
pure virtual

Sets the start angle.

virtual void casa::PlotShapeArc::setStartCoordinate ( const PlotCoordinate &  coord)
pure virtual

Sets the start coordinate to the given.

virtual void casa::PlotShapeArc::setWidthHeight ( double  width,
double  height 
)
inlinevirtual

Sets the width and height to the given.

Definition at line 295 of file PlotShape.h.

virtual void casa::PlotShapeArc::setWidthHeight ( const PlotCoordinate &  widthHeight)
pure virtual

Sets the width and height as a PlotCoordinate.

virtual int casa::PlotShapeArc::spanAngle ( ) const
pure virtual

Returns the span angle.

virtual int casa::PlotShapeArc::startAngle ( ) const
pure virtual

Returns the start angle.

virtual PlotCoordinate casa::PlotShapeArc::startCoordinate ( ) const
pure virtual

Returns the start coordinate.

virtual PlotCoordinate casa::PlotShapeArc::widthHeight ( ) const
pure virtual

Returns the width and height as a PlotCoordinate.


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