casa
$Rev:20696$
|
Subclass of ScatterPlot that adds masking functionality. More...
#include <Plot.h>
Public Member Functions | |
MaskedScatterPlot () | |
virtual | ~MaskedScatterPlot () |
virtual PlotPointDataPtr | pointData () const |
Overrides ScatterPlot::pointData(). | |
virtual bool | maskedAt (unsigned int index) const |
Returns whether the data at the given index is masked or not. | |
virtual PlotMaskedPointDataPtr | maskedData () const =0 |
ABSTRACT METHODS //. | |
virtual bool | maskedLinesShown () const =0 |
Returns true if this plot has lines shown for masked points, false otherwise. | |
virtual void | setMaskedLinesShown (bool linesShown=true)=0 |
Sets whether or not lines are shown for masked points. | |
virtual PlotLinePtr | maskedLine () const =0 |
Returns a copy of the line used for masked points. | |
virtual void | setMaskedLine (const PlotLine &line)=0 |
Sets the lines for masked points to the given. | |
virtual void | setMaskedLine (const PlotLinePtr line) |
Convenience methods for setting line for masked points. | |
virtual void | setMaskedLine (const String &color, PlotLine::Style style=PlotLine::SOLID, double width=1.0) |
virtual void | setMaskedLineColor (const String &color) |
virtual void | setMaskedLineStyle (PlotLine::Style style) |
virtual void | setMaskedLineWidth (double width) |
virtual bool | maskedSymbolsShown () const =0 |
Returns true if symbols are shown for masked points, false otherwise. | |
virtual void | setMaskedSymbolsShown (bool symbolsShown=true)=0 |
Sets whether symbols are shown or not for masked points. | |
virtual PlotSymbolPtr | maskedSymbol () const =0 |
Returns a copy of the symbol for masked points. | |
virtual void | setMaskedSymbol (const PlotSymbol &symbol)=0 |
Sets the symbols for masked points to the given. | |
virtual void | setMaskedSymbol (const PlotSymbolPtr symbol) |
Convenience methods for setting symbol for masked points. | |
virtual void | setMaskedSymbol (PlotSymbol::Symbol s) |
virtual void | setMaskedSymbol (char s) |
virtual void | setMaskedSymbolSize (double width, double height) |
virtual void | setMaskedSymbolLine (const PlotLine &line) |
virtual void | setMaskedSymbolLine (const PlotLinePtr line) |
virtual void | setMaskedSymbolLine (const String &color, PlotLine::Style style=PlotLine::SOLID, double width=1.0) |
virtual void | setMaskedSymbolAreaFill (const PlotAreaFill &fill) |
virtual void | setMaskedSymbolAreaFill (const PlotAreaFillPtr fill) |
virtual void | setMaskedSymbolAreaFill (const String &color, PlotAreaFill::Pattern pattern=PlotAreaFill::FILL) |
Subclass of ScatterPlot that adds masking functionality.
The ScatterPlot customization methods (lines, symbols, etc.) are expected to apply only to unmasked data, while additional methods are provided in MaskedScatterPlot to customize the masked data (which is not shown by default).
casa::MaskedScatterPlot::MaskedScatterPlot | ( | ) | [inline] |
virtual casa::MaskedScatterPlot::~MaskedScatterPlot | ( | ) | [inline, virtual] |
virtual bool casa::MaskedScatterPlot::maskedAt | ( | unsigned int | index | ) | const [inline, virtual] |
Returns whether the data at the given index is masked or not.
Just a thin layer over the PlotMaskedPointData functionality.
Definition at line 233 of file Plot.h.
References casa::ScatterPlot::data(), and maskedData().
virtual PlotMaskedPointDataPtr casa::MaskedScatterPlot::maskedData | ( | ) | const [pure virtual] |
ABSTRACT METHODS //.
Returns the masked data used for this plot.
Referenced by maskedAt(), and pointData().
virtual PlotLinePtr casa::MaskedScatterPlot::maskedLine | ( | ) | const [pure virtual] |
Returns a copy of the line used for masked points.
Note: if lines are not shown, then this behavior is undefined. The last shown line can be returned, or a line with style NOLINE, or a null pointer, or....
Referenced by setMaskedLine(), setMaskedLineColor(), setMaskedLineStyle(), and setMaskedLineWidth().
virtual bool casa::MaskedScatterPlot::maskedLinesShown | ( | ) | const [pure virtual] |
Returns true if this plot has lines shown for masked points, false otherwise.
virtual PlotSymbolPtr casa::MaskedScatterPlot::maskedSymbol | ( | ) | const [pure virtual] |
Returns a copy of the symbol for masked points.
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 setMaskedSymbol(), setMaskedSymbolAreaFill(), setMaskedSymbolLine(), and setMaskedSymbolSize().
virtual bool casa::MaskedScatterPlot::maskedSymbolsShown | ( | ) | const [pure virtual] |
Returns true if symbols are shown for masked points, false otherwise.
virtual PlotPointDataPtr casa::MaskedScatterPlot::pointData | ( | ) | const [inline, virtual] |
Overrides ScatterPlot::pointData().
Implements casa::ScatterPlot.
Definition at line 229 of file Plot.h.
References maskedData().
virtual void casa::MaskedScatterPlot::setMaskedLine | ( | const PlotLine & | line | ) | [pure virtual] |
Sets the lines for masked points to the given.
Implies setMaskedLinesShown(true) unless the given line's style is set to NOLINE.
Referenced by setMaskedLine(), setMaskedLineColor(), setMaskedLineStyle(), and setMaskedLineWidth().
virtual void casa::MaskedScatterPlot::setMaskedLine | ( | const PlotLinePtr | line | ) | [inline, virtual] |
Convenience methods for setting line for masked points.
Definition at line 265 of file Plot.h.
References casa::SimpleCountedConstPtr< t >::null(), setMaskedLine(), and setMaskedLinesShown().
virtual void casa::MaskedScatterPlot::setMaskedLine | ( | const String & | color, |
PlotLine::Style | style = PlotLine::SOLID , |
||
double | width = 1.0 |
||
) | [inline, virtual] |
Definition at line 269 of file Plot.h.
References maskedLine(), casa::PlotLine::setColor(), setMaskedLine(), casa::PlotLine::setStyle(), and casa::PlotLine::setWidth().
virtual void casa::MaskedScatterPlot::setMaskedLineColor | ( | const String & | color | ) | [inline, virtual] |
Definition at line 278 of file Plot.h.
References maskedLine(), casa::PlotLine::setColor(), and setMaskedLine().
virtual void casa::MaskedScatterPlot::setMaskedLinesShown | ( | bool | linesShown = true | ) | [pure virtual] |
Sets whether or not lines are shown for masked points.
If linesShown is true, the implementation can decide whether to choose the line style shown, or just use the last set PlotLine.
Referenced by setMaskedLine().
virtual void casa::MaskedScatterPlot::setMaskedLineStyle | ( | PlotLine::Style | style | ) | [inline, virtual] |
Definition at line 283 of file Plot.h.
References maskedLine(), setMaskedLine(), and casa::PlotLine::setStyle().
virtual void casa::MaskedScatterPlot::setMaskedLineWidth | ( | double | width | ) | [inline, virtual] |
Definition at line 288 of file Plot.h.
References maskedLine(), setMaskedLine(), and casa::PlotLine::setWidth().
virtual void casa::MaskedScatterPlot::setMaskedSymbol | ( | const PlotSymbol & | symbol | ) | [pure virtual] |
Sets the symbols for masked points to the given.
Implies setMaskedSymbolsShown(true) unless the symbol's style is set to NOSYMBOL.
Referenced by setMaskedSymbol(), setMaskedSymbolAreaFill(), setMaskedSymbolLine(), and setMaskedSymbolSize().
virtual void casa::MaskedScatterPlot::setMaskedSymbol | ( | const PlotSymbolPtr | symbol | ) | [inline, virtual] |
Convenience methods for setting symbol for masked points.
Definition at line 315 of file Plot.h.
References casa::SimpleCountedConstPtr< t >::null(), setMaskedSymbol(), and setMaskedSymbolsShown().
virtual void casa::MaskedScatterPlot::setMaskedSymbol | ( | PlotSymbol::Symbol | s | ) | [inline, virtual] |
Definition at line 319 of file Plot.h.
References maskedSymbol(), setMaskedSymbol(), and casa::PlotSymbol::setSymbol().
virtual void casa::MaskedScatterPlot::setMaskedSymbol | ( | char | s | ) | [inline, virtual] |
Definition at line 324 of file Plot.h.
References maskedSymbol(), setMaskedSymbol(), and casa::PlotSymbol::setSymbol().
virtual void casa::MaskedScatterPlot::setMaskedSymbolAreaFill | ( | const PlotAreaFill & | fill | ) | [inline, virtual] |
Definition at line 347 of file Plot.h.
References maskedSymbol(), casa::PlotSymbol::setAreaFill(), and setMaskedSymbol().
Referenced by setMaskedSymbolAreaFill().
virtual void casa::MaskedScatterPlot::setMaskedSymbolAreaFill | ( | const PlotAreaFillPtr | fill | ) | [inline, virtual] |
Definition at line 352 of file Plot.h.
References casa::SimpleCountedConstPtr< t >::null(), and setMaskedSymbolAreaFill().
virtual void casa::MaskedScatterPlot::setMaskedSymbolAreaFill | ( | const String & | color, |
PlotAreaFill::Pattern | pattern = PlotAreaFill::FILL |
||
) | [inline, virtual] |
Definition at line 354 of file Plot.h.
References maskedSymbol(), casa::pattern(), casa::PlotSymbol::setAreaFill(), and setMaskedSymbol().
virtual void casa::MaskedScatterPlot::setMaskedSymbolLine | ( | const PlotLine & | line | ) | [inline, virtual] |
Definition at line 334 of file Plot.h.
References maskedSymbol(), casa::PlotSymbol::setLine(), and setMaskedSymbol().
Referenced by setMaskedSymbolLine().
virtual void casa::MaskedScatterPlot::setMaskedSymbolLine | ( | const PlotLinePtr | line | ) | [inline, virtual] |
Definition at line 339 of file Plot.h.
References casa::SimpleCountedConstPtr< t >::null(), and setMaskedSymbolLine().
virtual void casa::MaskedScatterPlot::setMaskedSymbolLine | ( | const String & | color, |
PlotLine::Style | style = PlotLine::SOLID , |
||
double | width = 1.0 |
||
) | [inline, virtual] |
Definition at line 341 of file Plot.h.
References maskedSymbol(), casa::PlotSymbol::setLine(), and setMaskedSymbol().
virtual void casa::MaskedScatterPlot::setMaskedSymbolSize | ( | double | width, |
double | height | ||
) | [inline, virtual] |
Definition at line 329 of file Plot.h.
References maskedSymbol(), setMaskedSymbol(), and casa::PlotSymbol::setSize().
virtual void casa::MaskedScatterPlot::setMaskedSymbolsShown | ( | bool | symbolsShown = true | ) | [pure virtual] |
Sets whether symbols are shown or not for masked points.
If symbolsShown is true, the implementation can decide whether to choose the symbol shown, or just use the last set PlotSymbol.
Referenced by setMaskedSymbol().