casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
casa::RasterPlot Class Referenceabstract

Plot used to show raster (image-like) data. More...

#include <Plot.h>

Inheritance diagram for casa::RasterPlot:
casa::Plot casa::PlotItem

Public Member Functions

 RasterPlot ()
virtual ~RasterPlot ()
PlotDataPtr data () const
 Overrides Plot::data(). More...
virtual double valueAt (double x, double y) const
 Returns the data at the given point. More...
virtual PlotRasterDataPtr rasterData () const =0
virtual void setXRange (double from, double to)=0
 Sets the x range. More...
virtual void setYRange (double from, double to)=0
 Sets the y range. More...
virtual PlotRasterData::Format dataFormat () const =0
 Returns the data format. More...
virtual void setDataFormat (PlotRasterData::Format f)=0
 Sets the data format. More...
virtual PlotRasterData::Origin dataOrigin () const =0
 Returns the data origin. More...
virtual void setDataOrigin (PlotRasterData::Origin o)=0
 Sets the data origin. More...
virtual std::vector< double > contourLines () const =0
 Returns the contour line levels, if any. More...
virtual void setContourLines (const std::vector< double > &lines)=0
 Sets the contour line levels. More...
- 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)
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 PlotCanvascanvas () 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 drawCount () const =0
 Returns the "draw count" for this item, which subjectively means how many indexed draw operations this item needs to make. More...
virtual unsigned int drawSegments (unsigned int segmentThreshold) const
 Returns the number of draw segments for this item, using the given segment threshold. More...

Detailed Description

Plot used to show raster (image-like) data.

Expected to use PlotRasterData. The line methods in Plot are used for contour lines (if any). A RasterPlot can either use the data values directly as colors, or automatically pick colors based on a range of values and a colorbar. (See PlotRasterData.)

Definition at line 543 of file Plot.h.

Constructor & Destructor Documentation

casa::RasterPlot::RasterPlot ( )

Definition at line 545 of file Plot.h.

virtual casa::RasterPlot::~RasterPlot ( )

Definition at line 547 of file Plot.h.

Member Function Documentation

virtual std::vector<double> casa::RasterPlot::contourLines ( ) const
pure virtual

Returns the contour line levels, if any.

PlotDataPtr casa::RasterPlot::data ( ) const

Overrides Plot::data().

Implements casa::Plot.

Definition at line 551 of file Plot.h.

References rasterData().

Referenced by valueAt().

virtual PlotRasterData::Format casa::RasterPlot::dataFormat ( ) const
pure virtual

Returns the data format.

See PlotRasterData.

virtual PlotRasterData::Origin casa::RasterPlot::dataOrigin ( ) const
pure virtual

Returns the data origin.

See PlotRasterData.

virtual PlotRasterDataPtr casa::RasterPlot::rasterData ( ) const
pure virtual


Returns the data used.

Referenced by data(), and valueAt().

virtual void casa::RasterPlot::setContourLines ( const std::vector< double > &  lines)
pure virtual

Sets the contour line levels.

virtual void casa::RasterPlot::setDataFormat ( PlotRasterData::Format  f)
pure virtual

Sets the data format.

See PlotRasterData.

virtual void casa::RasterPlot::setDataOrigin ( PlotRasterData::Origin  o)
pure virtual

Sets the data origin.

See PlotRasterData.

virtual void casa::RasterPlot::setXRange ( double  from,
double  to 
pure virtual

Sets the x range.

virtual void casa::RasterPlot::setYRange ( double  from,
double  to 
pure virtual

Sets the y range.

virtual double casa::RasterPlot::valueAt ( double  x,
double  y 
) const

Returns the data at the given point.

Just a thin layer over data functionality.

Definition at line 555 of file Plot.h.

References data(), and rasterData().

The documentation for this class was generated from the following file: