casa::BarPlot Class Reference

#include <Plot.h>

Inheritance diagram for casa::BarPlot:

Inheritance graph
[legend]
Collaboration diagram for casa::BarPlot:

Collaboration graph
[legend]
List of all members.

Detailed Description

Bar plot abstract class.

It is expected to take data in the form of PlotPointData. The line methods in Plot are used for the bar outlines.

Definition at line 470 of file Plot.h.

Public Member Functions

 BarPlot ()
virtual ~BarPlot ()
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 areaIsFilled () const=0
 Returns whether or not the bars have an area fill or not.
virtual void setAreaFilled (bool fill=true)=0
 Sets whether the bars have an area fill.
virtual PlotAreaFillPtr areaFill () const=0
 Returns a copy of the area fill used for the bar interiors.
virtual void setAreaFill (const PlotAreaFill &areaFill)=0
 Sets the area fill used for the bars to the given.
virtual void setAreaFill (const PlotAreaFillPtr areaFill)
 IMPLEMENTED METHODS //.
virtual void setAreaFill (const String &color, PlotAreaFill::Pattern pattern=PlotAreaFill::FILL)


Constructor & Destructor Documentation

casa::BarPlot::BarPlot (  )  [inline]

Definition at line 472 of file Plot.h.

virtual casa::BarPlot::~BarPlot (  )  [inline, virtual]

Definition at line 474 of file Plot.h.


Member Function Documentation

PlotDataPtr casa::BarPlot::data (  )  const [inline, virtual]

Overrides Plot::data().

Implements casa::Plot.

Definition at line 478 of file Plot.h.

References pointData().

Referenced by pointAt().

virtual ppoint_t casa::BarPlot::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 482 of file Plot.h.

References data(), and pointData().

virtual unsigned int casa::BarPlot::drawCount (  )  const [inline, virtual]

Implements PlotItem::drawCount().

Provides default implementation that returns the number of plotted points.

Implements casa::PlotItem.

Definition at line 490 of file Plot.h.

References pointData().

virtual PlotPointDataPtr casa::BarPlot::pointData (  )  const [pure virtual]

ABSTRACT METHODS //.

Returns the data used for the plot.

Referenced by data(), drawCount(), and pointAt().

virtual bool casa::BarPlot::areaIsFilled (  )  const [pure virtual]

Returns whether or not the bars have an area fill or not.

virtual void casa::BarPlot::setAreaFilled ( bool  fill = true  )  [pure virtual]

Sets whether the bars have an area fill.

If fill is true, the implementation can decide whether to choose the area fill, or just use the last set PlotAreaFill.

Referenced by setAreaFill().

virtual PlotAreaFillPtr casa::BarPlot::areaFill (  )  const [pure virtual]

Returns a copy of the area fill used for the bar interiors.

Referenced by setAreaFill().

virtual void casa::BarPlot::setAreaFill ( const PlotAreaFill areaFill  )  [pure virtual]

Sets the area fill used for the bars to the given.

Referenced by setAreaFill().

virtual void casa::BarPlot::setAreaFill ( const PlotAreaFillPtr  areaFill  )  [inline, virtual]

IMPLEMENTED METHODS //.

Convenience methods for setting area fill.

Definition at line 517 of file Plot.h.

References setAreaFill(), and setAreaFilled().

virtual void casa::BarPlot::setAreaFill ( const String &  color,
PlotAreaFill::Pattern  pattern = PlotAreaFill::FILL 
) [inline, virtual]

Definition at line 521 of file Plot.h.

References areaFill(), and setAreaFill().


The documentation for this class was generated from the following file:
Generated on Thu Aug 27 21:28:02 2009 for NRAOCASA by  doxygen 1.5.1