casa
5.7.0-16
|
Subclass of ScatterPlot that adds masking functionality. More...
#include <Plot.h>
Public Member Functions | |
MaskedScatterPlot () | |
virtual | ~MaskedScatterPlot () |
virtual PlotPointDataPtr | pointData () const |
Overrides ScatterPlot::pointData(). More... | |
virtual bool | maskedAt (unsigned int index) const |
Returns whether the data at the given index is masked or not. More... | |
virtual PlotMaskedPointDataPtr | maskedData () const =0 |
ABSTRACT METHODS //. More... | |
virtual void | clearData ()=0 |
virtual bool | maskedLinesShown () const =0 |
Returns true if this plot has lines shown for masked points, false otherwise. More... | |
virtual void | setMaskedLinesShown (bool linesShown=true)=0 |
Sets whether or not lines are shown for masked points. More... | |
virtual PlotLinePtr | maskedLine () const =0 |
Returns a copy of the line used for masked points. More... | |
virtual void | setMaskedLine (const PlotLine &line)=0 |
Sets the lines for masked points to the given. More... | |
virtual void | setMaskedLine (const PlotLinePtr line) |
Convenience methods for setting line for masked points. More... | |
virtual void | setMaskedLine (const casacore::String &color, PlotLine::Style style=PlotLine::SOLID, double width=1.0) |
virtual void | setMaskedLineColor (const casacore::String &color) |
virtual void | setMaskedLineStyle (PlotLine::Style style) |
virtual void | setMaskedLineWidth (double width) |
virtual bool | maskedLinesStep () const =0 |
Get/set connect masked points in step rather than line. More... | |
virtual void | setMaskedLinesStep (bool linesStep=true)=0 |
virtual bool | maskedSymbolsShown () const =0 |
Returns true if symbols are shown for masked points, false otherwise. More... | |
virtual void | setMaskedSymbolsShown (bool symbolsShown=true)=0 |
Sets whether symbols are shown or not for masked points. More... | |
virtual PlotSymbolPtr | maskedSymbol () const =0 |
Returns a copy of the symbol for masked points. More... | |
virtual void | setMaskedSymbol (const PlotSymbol &symbol)=0 |
Sets the symbols for masked points to the given. More... | |
virtual void | setMaskedSymbol (const PlotSymbolPtr symbol) |
Convenience methods for setting symbol for masked points. More... | |
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 casacore::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 casacore::String &color, PlotAreaFill::Pattern pattern=PlotAreaFill::FILL) |
Public Member Functions inherited from casa::ScatterPlot | |
ScatterPlot () | |
virtual | ~ScatterPlot () |
virtual PlotDataPtr | data () const |
Overrides Plot::data(). More... | |
virtual ppoint_t | pointAt (unsigned int i) const |
Returns the data value at the given index. More... | |
virtual unsigned int | drawCount () const |
Implements PlotItem::drawCount(). More... | |
virtual bool | linesStep () const =0 |
Get/set to connect points in step rather than line. More... | |
virtual void | setLinesStep (bool linesStep=true)=0 |
virtual bool | symbolsShown () const =0 |
Returns true if symbols are shown, false otherwise. More... | |
virtual void | setSymbolsShown (bool symbolsShown=true)=0 |
Sets whether symbols are shown or not. More... | |
virtual PlotSymbolPtr | symbol () const =0 |
Returns a copy of the symbol for this plot. More... | |
virtual void | setSymbol (const PlotSymbol &symbol)=0 |
Sets the plot symbols to the given symbol. More... | |
virtual void | setSymbol (const PlotSymbolPtr symbol) |
IMPLEMENTED METHODS //. More... | |
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 casacore::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 casacore::String &color, PlotAreaFill::Pattern pattern=PlotAreaFill::FILL) |
Public Member Functions inherited from casa::Plot | |
Plot () | |
virtual | ~Plot () |
virtual void | dataChanged ()=0 |
Should be called whenever the underlying PlotData has changed, to let the plot and its attached canvas know that the plot needs to be redrawn. More... | |
virtual bool | linesShown () const =0 |
It's likely that any plot subclass (scatter, bar, function, etc.) will have lines of some sort, so it's safe to have in the base class. More... | |
virtual void | setLinesShown (bool linesShown=true)=0 |
Sets whether or not lines are shown. More... | |
virtual PlotLinePtr | line () const =0 |
Returns a copy of the line used for this plot. More... | |
virtual void | setLine (const PlotLine &line)=0 |
Sets the plot lines to the given line. More... | |
virtual void | setLine (const PlotLinePtr line) |
IMPLEMENTED METHODS //. More... | |
virtual void | setLine (const casacore::String &color, PlotLine::Style style=PlotLine::SOLID, double width=1.0) |
virtual void | setLineColor (const casacore::String &color) |
virtual void | setLineStyle (PlotLine::Style style) |
virtual void | setLineWidth (double width) |
Public Member Functions inherited from casa::PlotItem | |
PlotItem () | |
Constructor. More... | |
virtual | ~PlotItem () |
Destructor. More... | |
virtual PlotCanvas * | canvas () 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... | |
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).
|
inlinevirtual |
|
pure virtual |
|
inlinevirtual |
Returns whether the data at the given index is masked or not.
Just a thin layer over the PlotMaskedPointData functionality.
Definition at line 235 of file Plot.h.
References casa::ScatterPlot::data(), and maskedData().
|
pure virtual |
ABSTRACT METHODS //.
Returns the masked data used for this plot.
Referenced by maskedAt(), and pointData().
|
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().
|
pure virtual |
Returns true if this plot has lines shown for masked points, false otherwise.
|
pure virtual |
Get/set connect masked points in step rather than line.
|
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().
|
pure virtual |
Returns true if symbols are shown for masked points, false otherwise.
|
inlinevirtual |
Overrides ScatterPlot::pointData().
Implements casa::ScatterPlot.
Definition at line 231 of file Plot.h.
References maskedData().
|
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().
|
inlinevirtual |
Convenience methods for setting line for masked points.
Definition at line 268 of file Plot.h.
References casacore::CountedPtr< T >::null(), setMaskedLine(), and setMaskedLinesShown().
|
inlinevirtual |
Definition at line 272 of file Plot.h.
References maskedLine(), and setMaskedLine().
|
inlinevirtual |
Definition at line 281 of file Plot.h.
References maskedLine(), and setMaskedLine().
|
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().
|
pure virtual |
|
inlinevirtual |
Definition at line 286 of file Plot.h.
References maskedLine(), and setMaskedLine().
|
inlinevirtual |
Definition at line 291 of file Plot.h.
References maskedLine(), and setMaskedLine().
|
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().
|
inlinevirtual |
Convenience methods for setting symbol for masked points.
Definition at line 322 of file Plot.h.
References casacore::CountedPtr< T >::null(), setMaskedSymbol(), and setMaskedSymbolsShown().
|
inlinevirtual |
Definition at line 326 of file Plot.h.
References maskedSymbol(), and setMaskedSymbol().
|
inlinevirtual |
Definition at line 331 of file Plot.h.
References maskedSymbol(), and setMaskedSymbol().
|
inlinevirtual |
Definition at line 354 of file Plot.h.
References maskedSymbol(), and setMaskedSymbol().
Referenced by setMaskedSymbolAreaFill().
|
inlinevirtual |
Definition at line 359 of file Plot.h.
References casacore::CountedPtr< T >::null(), and setMaskedSymbolAreaFill().
|
inlinevirtual |
Definition at line 361 of file Plot.h.
References maskedSymbol(), casacore::pattern(), and setMaskedSymbol().
|
inlinevirtual |
Definition at line 341 of file Plot.h.
References maskedSymbol(), and setMaskedSymbol().
Referenced by setMaskedSymbolLine().
|
inlinevirtual |
Definition at line 346 of file Plot.h.
References casacore::CountedPtr< T >::null(), and setMaskedSymbolLine().
|
inlinevirtual |
Definition at line 348 of file Plot.h.
References maskedSymbol(), and setMaskedSymbol().
|
inlinevirtual |
Definition at line 336 of file Plot.h.
References maskedSymbol(), and setMaskedSymbol().
|
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().