casa
$Rev:20696$
|
Bar plot abstract class. More...
#include <Plot.h>
Public Member Functions | |
BarPlot () | |
virtual | ~BarPlot () |
PlotDataPtr | data () const |
Overrides Plot::data(). | |
virtual ppoint_t | pointAt (unsigned int i) const |
Returns the data value at the given index. | |
virtual unsigned int | drawCount () const |
Implements PlotItem::drawCount(). | |
virtual PlotPointDataPtr | pointData () const =0 |
ABSTRACT METHODS //. | |
virtual bool | areaIsFilled () const =0 |
Returns whether or not the bars have an area fill or not. | |
virtual void | setAreaFilled (bool fill=true)=0 |
Sets whether the bars have an area fill. | |
virtual PlotAreaFillPtr | areaFill () const =0 |
Returns a copy of the area fill used for the bar interiors. | |
virtual void | setAreaFill (const PlotAreaFill &areaFill)=0 |
Sets the area fill used for the bars to the given. | |
virtual void | setAreaFill (const PlotAreaFillPtr areaFill) |
IMPLEMENTED METHODS //. | |
virtual void | setAreaFill (const String &color, PlotAreaFill::Pattern pattern=PlotAreaFill::FILL) |
Bar plot abstract class.
It is expected to take data in the form of PlotPointData. The line methods in Plot are used for the bar outlines.
casa::BarPlot::BarPlot | ( | ) | [inline] |
virtual casa::BarPlot::~BarPlot | ( | ) | [inline, virtual] |
virtual PlotAreaFillPtr casa::BarPlot::areaFill | ( | ) | const [pure virtual] |
Returns a copy of the area fill used for the bar interiors.
Referenced by setAreaFill().
virtual bool casa::BarPlot::areaIsFilled | ( | ) | const [pure virtual] |
Returns whether or not the bars have an area fill or not.
PlotDataPtr casa::BarPlot::data | ( | ) | const [inline, virtual] |
Overrides Plot::data().
Implements casa::Plot.
Definition at line 478 of file Plot.h.
References pointData().
Referenced by pointAt().
virtual unsigned int casa::BarPlot::drawCount | ( | ) | const [inline, virtual] |
Implements PlotItem::drawCount().
Provides default implementation that returns the number of plotted points.
Implements casa::PlotItem.
Definition at line 490 of file Plot.h.
References pointData().
virtual ppoint_t casa::BarPlot::pointAt | ( | unsigned int | i | ) | const [inline, virtual] |
Returns the data value at the given index.
Just a thin layer over the PlotPointData functionality.
Definition at line 482 of file Plot.h.
References data(), and pointData().
virtual PlotPointDataPtr casa::BarPlot::pointData | ( | ) | const [pure virtual] |
ABSTRACT METHODS //.
Returns the data used for the plot.
Referenced by data(), drawCount(), and pointAt().
virtual void casa::BarPlot::setAreaFill | ( | const PlotAreaFill & | areaFill | ) | [pure virtual] |
Sets the area fill used for the bars to the given.
Referenced by setAreaFill().
virtual void casa::BarPlot::setAreaFill | ( | const PlotAreaFillPtr | areaFill | ) | [inline, virtual] |
IMPLEMENTED METHODS //.
Convenience methods for setting area fill.
Definition at line 517 of file Plot.h.
References casa::SimpleCountedConstPtr< t >::null(), setAreaFill(), and setAreaFilled().
virtual void casa::BarPlot::setAreaFill | ( | const String & | color, |
PlotAreaFill::Pattern | pattern = PlotAreaFill::FILL |
||
) | [inline, virtual] |
Definition at line 521 of file Plot.h.
References areaFill(), casa::pattern(), setAreaFill(), casa::PlotAreaFill::setColor(), and casa::PlotAreaFill::setPattern().
virtual void casa::BarPlot::setAreaFilled | ( | bool | fill = true | ) | [pure virtual] |
Sets whether the bars have an area fill.
If fill is true, the implementation can decide whether to choose the area fill, or just use the last set PlotAreaFill.
Referenced by setAreaFill().