Scatter plot abstract class. More...
#include <Plot.h>
Public Member Functions | |
ScatterPlot () | |
virtual | ~ScatterPlot () |
virtual 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 | symbolsShown () const =0 |
Returns true if symbols are shown, false otherwise. | |
virtual void | setSymbolsShown (bool symbolsShown=true)=0 |
Sets whether symbols are shown or not. | |
virtual PlotSymbolPtr | symbol () const =0 |
Returns a copy of the symbol for this plot. | |
virtual void | setSymbol (const PlotSymbol &symbol)=0 |
Sets the plot symbols to the given symbol. | |
virtual void | setSymbol (const PlotSymbolPtr symbol) |
IMPLEMENTED METHODS //. | |
virtual void | setSymbol (PlotSymbol::Symbol s) |
virtual void | setSymbol (char s) |
virtual void | setSymbolSize (double width, double height) |
virtual void | setSymbolLine (const PlotLine &line) |
virtual void | setSymbolLine (const PlotLinePtr line) |
virtual void | setSymbolLine (const String &color, PlotLine::Style style=PlotLine::SOLID, double width=1.0) |
virtual void | setSymbolAreaFill (const PlotAreaFill &fill) |
virtual void | setSymbolAreaFill (const PlotAreaFillPtr fill) |
virtual void | setSymbolAreaFill (const String &color, PlotAreaFill::Pattern pattern=PlotAreaFill::FILL) |
Scatter plot abstract class.
In addition to the abstract methods in Plot, a scatter plot subclass should also have symbol customization for the points. A scatter plot is expected to consist of PlotPointData.
Definition at line 116 of file Plot.h.
virtual casa::ScatterPlot::~ScatterPlot | ( | ) | [inline, virtual] |
virtual PlotDataPtr casa::ScatterPlot::data | ( | ) | const [inline, virtual] |
Overrides Plot::data().
Implements casa::Plot.
Definition at line 124 of file Plot.h.
References pointData().
Referenced by casa::MaskedScatterPlot::maskedAt(), and pointAt().
virtual unsigned int casa::ScatterPlot::drawCount | ( | ) | const [inline, virtual] |
Implements PlotItem::drawCount().
Provides default implementation that returns the number of plotted points.
Implements casa::PlotItem.
Definition at line 136 of file Plot.h.
References pointData().
virtual ppoint_t casa::ScatterPlot::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 128 of file Plot.h.
References data(), and pointData().
virtual PlotPointDataPtr casa::ScatterPlot::pointData | ( | ) | const [pure virtual] |
ABSTRACT METHODS //.
Returns the point data used for this plot.
Implemented in casa::MaskedScatterPlot, casa::ErrorPlot, and casa::ColoredPlot.
Referenced by data(), drawCount(), and pointAt().
virtual void casa::ScatterPlot::setSymbol | ( | char | s | ) | [inline, virtual] |
Definition at line 175 of file Plot.h.
References setSymbol(), and symbol().
virtual void casa::ScatterPlot::setSymbol | ( | PlotSymbol::Symbol | s | ) | [inline, virtual] |
Definition at line 170 of file Plot.h.
References setSymbol(), and symbol().
virtual void casa::ScatterPlot::setSymbol | ( | const PlotSymbolPtr | symbol | ) | [inline, virtual] |
IMPLEMENTED METHODS //.
Convenience methods for setting symbol.
Definition at line 166 of file Plot.h.
References setSymbol(), and setSymbolsShown().
virtual void casa::ScatterPlot::setSymbol | ( | const PlotSymbol & | symbol | ) | [pure virtual] |
Sets the plot symbols to the given symbol.
Implies setSymbolsShown(true) unless the symbol's style is set to NOSYMBOL.
Referenced by setSymbol(), setSymbolAreaFill(), setSymbolLine(), and setSymbolSize().
virtual void casa::ScatterPlot::setSymbolAreaFill | ( | const String & | color, | |
PlotAreaFill::Pattern | pattern = PlotAreaFill::FILL | |||
) | [inline, virtual] |
Definition at line 205 of file Plot.h.
References casacore::pattern(), setSymbol(), and symbol().
virtual void casa::ScatterPlot::setSymbolAreaFill | ( | const PlotAreaFillPtr | fill | ) | [inline, virtual] |
Definition at line 203 of file Plot.h.
References setSymbolAreaFill().
virtual void casa::ScatterPlot::setSymbolAreaFill | ( | const PlotAreaFill & | fill | ) | [inline, virtual] |
Definition at line 198 of file Plot.h.
References setSymbol(), and symbol().
Referenced by setSymbolAreaFill().
virtual void casa::ScatterPlot::setSymbolLine | ( | const String & | color, | |
PlotLine::Style | style = PlotLine::SOLID , |
|||
double | width = 1.0 | |||
) | [inline, virtual] |
Definition at line 192 of file Plot.h.
References setSymbol(), and symbol().
virtual void casa::ScatterPlot::setSymbolLine | ( | const PlotLinePtr | line | ) | [inline, virtual] |
Definition at line 190 of file Plot.h.
References setSymbolLine().
virtual void casa::ScatterPlot::setSymbolLine | ( | const PlotLine & | line | ) | [inline, virtual] |
Definition at line 185 of file Plot.h.
References setSymbol(), and symbol().
Referenced by setSymbolLine().
virtual void casa::ScatterPlot::setSymbolSize | ( | double | width, | |
double | height | |||
) | [inline, virtual] |
Definition at line 180 of file Plot.h.
References setSymbol(), and symbol().
virtual void casa::ScatterPlot::setSymbolsShown | ( | bool | symbolsShown = true |
) | [pure virtual] |
Sets whether symbols are shown or not.
If symbolsShown is true, the implementation can decide whether to choose the symbol shown, or just use the last set PlotSymbol.
Referenced by setSymbol().
virtual PlotSymbolPtr casa::ScatterPlot::symbol | ( | ) | const [pure virtual] |
Returns a copy of the symbol for this plot.
Note: if symbols are not shown, then this behavior is undefined. The last shown symbol can be returned, or a symbol with style NOSYMBOL, or a null pointer, or...\.
Referenced by setSymbol(), setSymbolAreaFill(), setSymbolLine(), and setSymbolSize().
virtual bool casa::ScatterPlot::symbolsShown | ( | ) | const [pure virtual] |
Returns true if symbols are shown, false otherwise.