casa
$Rev:20696$
|
Abstract class for any shape which contains common functionality. More...
#include <PlotShape.h>
Public Member Functions | |
PlotShape () | |
Constructor. | |
virtual | ~PlotShape () |
Destructor. | |
virtual unsigned int | drawCount () const |
Implements PlotItem::drawCount(). | |
virtual vector< PlotCoordinate > | coordinates () const =0 |
ABSTRACT METHODS //. | |
virtual void | setCoordinates (const vector< PlotCoordinate > &c)=0 |
Sets this shape's coordinates to the given. | |
virtual bool | lineShown () const =0 |
Returns true if a line is shown for this shape, false otherwise. | |
virtual void | setLineShown (bool line=true)=0 |
Sets whether a line is shown for this shape or not. | |
virtual PlotLinePtr | line () const =0 |
Returns a copy of the line used for this shape. | |
virtual void | setLine (const PlotLine &line)=0 |
Sets this shape's line to the given. | |
virtual bool | areaFilled () const =0 |
Returns true if this shape has an area fill, false otherwise. | |
virtual void | setAreaFilled (bool area=true)=0 |
Sets whether or not this shape has an area fill. | |
virtual PlotAreaFillPtr | areaFill () const =0 |
Returns a copy of the area fill for this shape. | |
virtual void | setAreaFill (const PlotAreaFill &fill)=0 |
Sets this shape's area fill to the given. | |
virtual void | setLine (const PlotLinePtr l) |
IMPLEMENTED METHODS //. | |
virtual void | setLine (const String &color, PlotLine::Style style=PlotLine::SOLID, double width=1.0) |
virtual void | setAreaFill (const PlotAreaFillPtr f) |
Convenience methods for setting the area fill. | |
virtual void | setAreaFill (const String &color, PlotAreaFill::Pattern pattern=PlotAreaFill::FILL) |
Abstract class for any shape which contains common functionality.
Definition at line 40 of file PlotShape.h.
casa::PlotShape::PlotShape | ( | ) | [inline] |
Constructor.
Definition at line 43 of file PlotShape.h.
virtual casa::PlotShape::~PlotShape | ( | ) | [inline, virtual] |
Destructor.
Definition at line 46 of file PlotShape.h.
virtual PlotAreaFillPtr casa::PlotShape::areaFill | ( | ) | const [pure virtual] |
Returns a copy of the area fill for this shape.
virtual bool casa::PlotShape::areaFilled | ( | ) | const [pure virtual] |
Returns true if this shape has an area fill, false otherwise.
virtual vector<PlotCoordinate> casa::PlotShape::coordinates | ( | ) | const [pure virtual] |
ABSTRACT METHODS //.
Returns the coordinates for this shape. The number and order depends on the specific shape subclass.
virtual unsigned int casa::PlotShape::drawCount | ( | ) | const [inline, virtual] |
Implements PlotItem::drawCount().
Provides default implementation that returns 1.
Implements casa::PlotItem.
Reimplemented in casa::PlotShapePath, and casa::PlotShapePolygon.
Definition at line 51 of file PlotShape.h.
virtual PlotLinePtr casa::PlotShape::line | ( | ) | const [pure virtual] |
Returns a copy of the line used for this shape.
virtual bool casa::PlotShape::lineShown | ( | ) | const [pure virtual] |
Returns true if a line is shown for this shape, false otherwise.
virtual void casa::PlotShape::setAreaFill | ( | const PlotAreaFill & | fill | ) | [pure virtual] |
Sets this shape's area fill to the given.
virtual void casa::PlotShape::setAreaFill | ( | const PlotAreaFillPtr | f | ) | [inline, virtual] |
Convenience methods for setting the area fill.
Definition at line 110 of file PlotShape.h.
References casa::SimpleCountedConstPtr< t >::null().
virtual void casa::PlotShape::setAreaFill | ( | const String & | color, |
PlotAreaFill::Pattern | pattern = PlotAreaFill::FILL |
||
) | [inline, virtual] |
Definition at line 114 of file PlotShape.h.
References casa::pattern(), casa::PlotAreaFill::setColor(), and casa::PlotAreaFill::setPattern().
virtual void casa::PlotShape::setAreaFilled | ( | bool | area = true | ) | [pure virtual] |
Sets whether or not this shape has an area fill.
virtual void casa::PlotShape::setCoordinates | ( | const vector< PlotCoordinate > & | c | ) | [pure virtual] |
Sets this shape's coordinates to the given.
Must be in the same size and order as that returned by coordinates(). Specific to each shape subclass.
virtual void casa::PlotShape::setLine | ( | const PlotLine & | line | ) | [pure virtual] |
Sets this shape's line to the given.
virtual void casa::PlotShape::setLine | ( | const PlotLinePtr | l | ) | [inline, virtual] |
IMPLEMENTED METHODS //.
Convenience methods for setting the line for this shape.
Definition at line 94 of file PlotShape.h.
References casa::SimpleCountedConstPtr< t >::null().
virtual void casa::PlotShape::setLine | ( | const String & | color, |
PlotLine::Style | style = PlotLine::SOLID , |
||
double | width = 1.0 |
||
) | [inline, virtual] |
Definition at line 98 of file PlotShape.h.
References casa::PlotLine::setColor(), casa::PlotLine::setStyle(), and casa::PlotLine::setWidth().
virtual void casa::PlotShape::setLineShown | ( | bool | line = true | ) | [pure virtual] |
Sets whether a line is shown for this shape or not.