130 if(!data.null())
return ppoint_t(data->xAt(i), data->yAt(i));
142 virtual PlotPointDataPtr
pointData()
const = 0;
186 sym->setSize(width, height);
199 sym->setLine(color, style, width);
204 sym->setAreaFill(fill);
212 sym->setAreaFill(color,
pattern);
237 return !data.null() && data->maskedAt(index);
244 virtual PlotMaskedPointDataPtr
maskedData()
const = 0;
274 double width = 1.0) {
338 sym->setSize(width, height);
351 sym->setLine(color, style, width);
356 sym->setAreaFill(fill);
364 sym->setAreaFill(color,
pattern);
387 virtual PlotErrorDataPtr
errorData()
const = 0;
411 double width = 1.0) {
413 line->setColor(color);
414 line->setStyle(style);
415 line->setWidth(width);
420 line->setColor(color);
425 line->setStyle(style);
430 line->setWidth(width);
491 if(!data.null())
return ppoint_t(data->xAt(i), data->yAt(i));
503 virtual PlotPointDataPtr
pointData()
const = 0;
531 fill->setColor(color);
555 virtual double valueAt(
double x,
double y)
const {
557 if(!data.null())
return data->valueAt(x, y);
565 virtual PlotRasterDataPtr
rasterData()
const = 0;
568 virtual void setXRange(
double from,
double to) = 0;
571 virtual void setYRange(
double from,
double to) = 0;
574 virtual PlotRasterData::Format
dataFormat()
const = 0;
virtual ~MaskedScatterPlot()
virtual PlotMaskedPointDataPtr maskedData() const =0
ABSTRACT METHODS //.
virtual void setLinesShown(bool linesShown=true)=0
Sets whether or not lines are shown.
Bool null() const
Check to see if this CountedPtr is un-initialized, null.
virtual void setSymbolAreaFill(const PlotAreaFill &fill)
virtual void setMaskedSymbol(char s)
virtual void setLinesStep(bool linesStep=true)=0
virtual void setAreaFill(const PlotAreaFill &areaFill)=0
Sets the area fill used for the bars to the given.
virtual void setMaskedLinesShown(bool linesShown=true)=0
Sets whether or not lines are shown for masked points.
virtual unsigned int errorCapSize() const =0
Returns the "cap" size of the error bar.
virtual void setErrorLineStyle(PlotLine::Style style)
virtual void setLineStyle(PlotLine::Style style)
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 PlotErrorDataPtr errorData() const =0
ABSTRACT METHODS //.
virtual void setSymbol(PlotSymbol::Symbol s)
virtual PlotLinePtr line() const =0
Returns a copy of the line used for this plot.
virtual void setErrorLine(const casacore::String &color, PlotLine::Style style=PlotLine::SOLID, double width=1.0)
A Plot basically consists of data and customization information.
virtual void setYRange(double from, double to)=0
Sets the y range.
PlotDataPtr data() const
Overrides Plot::data().
virtual unsigned int drawCount() const
Implements PlotItem::drawCount().
virtual PlotLinePtr maskedLine() const =0
Returns a copy of the line used for masked points.
virtual void setMaskedLine(const PlotLinePtr line)
Convenience methods for setting line for masked points.
virtual void setSymbol(const PlotSymbolPtr symbol)
IMPLEMENTED METHODS //.
virtual void setAreaFilled(bool fill=true)=0
Sets whether the bars have an area fill.
virtual PlotDataPtr data() const
Overrides Plot::data().
virtual void setErrorLine(const PlotLinePtr line)
Convenience methods for setting error line.
virtual void setLine(const casacore::String &color, PlotLine::Style style=PlotLine::SOLID, double width=1.0)
PlotDataPtr data() const
Overrides Plot::data().
virtual void setErrorLineWidth(double width)
virtual void setAreaFill(const casacore::String &color, PlotAreaFill::Pattern pattern=PlotAreaFill::FILL)
virtual void setMaskedSymbolAreaFill(const PlotAreaFill &fill)
virtual void setSymbolLine(const PlotLine &line)
virtual PlotPointDataPtr pointData() const =0
ABSTRACT METHODS //.
virtual void setMaskedSymbolAreaFill(const casacore::String &color, PlotAreaFill::Pattern pattern=PlotAreaFill::FILL)
Abstract class for area fill.
ColoredPlot()
Constructor.
virtual void setMaskedSymbolAreaFill(const PlotAreaFillPtr fill)
virtual ~ColoredPlot()
Destructor.
Pattern
Pattern enum, similar in spirit to http://doc.trolltech.com/4.3/qt.html#BrushStyle-enum.
Plot used to show raster (image-like) data.
An color plot is a scatter plot with differentiated colors for points in different bins...
virtual void setErrorLineShown(bool show=true)=0
Sets whether the error bar line is shown.
virtual PlotPointDataPtr pointData() const
Overrides ScatterPlot::pointData().
virtual void setMaskedSymbol(const PlotSymbol &symbol)=0
Sets the symbols for masked points to the given.
An error plot is a scatter plot with error bars drawn.
virtual void setErrorLineColor(const casacore::String &color)
void show(const variant &v)
virtual void setMaskedLineColor(const casacore::String &color)
virtual void setDataOrigin(PlotRasterData::Origin o)=0
Sets the data origin.
virtual void setAreaFill(const PlotAreaFillPtr areaFill)
IMPLEMENTED METHODS //.
TableExprNode pattern(const TableExprNode &node)
virtual bool maskedLinesStep() const =0
Get/set connect masked points in step rather than line.
virtual PlotPointDataPtr pointData() const
Overrides ScatterPlot::pointData().
virtual void setErrorCapSize(unsigned int capSize)=0
Sets the error bar cap size in pixels.
virtual bool symbolsShown() const =0
Returns true if symbols are shown, false otherwise.
virtual void setSymbol(const PlotSymbol &symbol)=0
Sets the plot symbols to the given symbol.
virtual bool maskedSymbolsShown() const =0
Returns true if symbols are shown for masked points, false otherwise.
virtual bool maskedLinesShown() const =0
Returns true if this plot has lines shown for masked points, false otherwise.
virtual PlotPointDataPtr pointData() const
Overrides ScatterPlot::pointData().
virtual void setSymbolLine(const casacore::String &color, PlotLine::Style style=PlotLine::SOLID, double width=1.0)
Scatter plot abstract class.
Referenced counted pointer for constant data.
virtual void setSymbolAreaFill(const casacore::String &color, PlotAreaFill::Pattern pattern=PlotAreaFill::FILL)
virtual void setLineColor(const casacore::String &color)
Subclass of ScatterPlot that adds masking functionality.
virtual PlotLinePtr errorLine() const =0
Returns the line used to draw the error bars.
virtual PlotAreaFillPtr areaFill() const =0
Returns a copy of the area fill used for the bar interiors.
virtual void setMaskedLine(const PlotLine &line)=0
Sets the lines for masked points to the given.
Abstract class for a line.
virtual void setColorForBin(unsigned int bin, const PlotColorPtr color)=0
Sets the color to use for the bin at the given index.
virtual bool errorLineShown() const =0
Returns whether the error bar line is shown or not.
Origin
casacore::Data for raster plots, which can be thought of as three-dimensional.
virtual void setErrorLine(const PlotLine &line)=0
Sets the line used to draw the error bars.
virtual void setMaskedLineWidth(double width)
Abstract class for a symbol.
virtual std::vector< double > contourLines() const =0
Returns the contour line levels, if any.
virtual void setMaskedSymbolSize(double width, double height)
virtual PlotBinnedDataPtr binnedColorData() const =0
ABSTRACT METHODS //.
virtual double valueAt(double x, double y) const
Returns the data at the given point.
virtual void setMaskedSymbolLine(const PlotLine &line)
PlotItem is the superclass of any object that is meant to be placed on the canvas (plots...
virtual PlotSymbolPtr symbol() const =0
Returns a copy of the symbol for this plot.
virtual void setContourLines(const std::vector< double > &lines)=0
Sets the contour line levels.
virtual void setMaskedSymbolsShown(bool symbolsShown=true)=0
Sets whether symbols are shown or not for masked points.
INHERITANCE_POINTER2(PlotLayoutSingle, PlotLayoutSinglePtr, PlotCanvasLayout, PlotCanvasLayoutPtr) INHERITANCE_POINTER2(PlotLayoutGrid
virtual void setSymbol(char s)
virtual void setMaskedSymbol(const PlotSymbolPtr symbol)
Convenience methods for setting symbol for masked points.
std::pair< double, double > ppoint_t
Typedef for a point, which is two doubles (x and y).
virtual void setSymbolAreaFill(const PlotAreaFillPtr fill)
virtual void setMaskedLineStyle(PlotLine::Style style)
virtual PlotRasterData::Format dataFormat() const =0
Returns the data format.
casacore::CountedPtr< PlotItem > PlotItemPtr
virtual void setMaskedSymbolLine(const PlotLinePtr line)
virtual void setSymbolsShown(bool symbolsShown=true)=0
Sets whether symbols are shown or not.
virtual PlotColorPtr colorForBin(unsigned int bin) const =0
Returns the color to use for the bin at the given index.
virtual bool linesShown() const =0
It's likely that any plot subclass (scatter, bar, function, etc.) will have lines of some sort...
virtual PlotSymbolPtr maskedSymbol() const =0
Returns a copy of the symbol for masked points.
virtual void setMaskedLine(const casacore::String &color, PlotLine::Style style=PlotLine::SOLID, double width=1.0)
virtual void setMaskedSymbol(PlotSymbol::Symbol s)
virtual void setMaskedSymbolLine(const casacore::String &color, PlotLine::Style style=PlotLine::SOLID, double width=1.0)
virtual bool linesStep() const =0
Get/set to connect points in step rather than line.
virtual bool maskedAt(unsigned int index) const
Returns whether the data at the given index is masked or not.
virtual void setSymbolLine(const PlotLinePtr line)
virtual PlotDataPtr data() const =0
ABSTRACT METHODS //.
virtual void clearData()=0
String: the storage and methods of handling collections of characters.
virtual PlotPointDataPtr pointData() const =0
ABSTRACT METHODS //.
virtual PlotRasterData::Origin dataOrigin() const =0
Returns the data origin.
virtual ppoint_t pointAt(unsigned int i) const
Returns the data value at the given index.
virtual void dataChanged()=0
Should be called whenever the underlying PlotData has changed, to let the plot and its attached canva...
virtual void setMaskedLinesStep(bool linesStep=true)=0
virtual void setLine(const PlotLinePtr line)
IMPLEMENTED METHODS //.
virtual PlotRasterDataPtr rasterData() const =0
ABSTRACT METHODS //.
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the color(i.e.,"000000"for black) and
INHERITANCE_POINTER(PlotFlagAllTool, PlotFlagAllToolPtr, PlotMouseTool, PlotMouseToolPtr, PlotTool, PlotToolPtr) TOOL NOTIFICATION CLASSESInterface for objects that want to be notified when the selection tool changes.*/class PlotSelectToolNotifier
PlotItemPtr ColoredPlotPtr
virtual void setLineWidth(double width)
virtual void setXRange(double from, double to)=0
Sets the x range.
virtual void setSymbolSize(double width, double height)
virtual bool areaIsFilled() const =0
Returns whether or not the bars have an area fill or not.
virtual void setLine(const PlotLine &line)=0
Sets the plot lines to the given line.
virtual void setDataFormat(PlotRasterData::Format f)=0
Sets the data format.