RAIDA  1.9.0
Public Member Functions | List of all members
AIDA::IPlotterRegion Class Referenceabstract

User level interface to a plotter region. More...

#include <IPlotterRegion.h>

Inheritance diagram for AIDA::IPlotterRegion:
AIDA::IPlotterRegionROOT

Public Member Functions

virtual ~IPlotterRegion ()
 Destructor.
 
virtual bool plot (const IBaseHistogram &histogram, const std::string &options="")=0
 Add a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region. More...
 
virtual bool plot (const IBaseHistogram &histogram, const IPlotterStyle &style, const std::string &options="")=0
 
virtual bool plot (const IFunction &function, const std::string &options="")=0
 
virtual bool plot (const IFunction &function, const IPlotterStyle &style, const std::string &options="")=0
 
virtual bool plot (const IDataPointSet &dataPointSet, const std::string &options="")=0
 
virtual bool plot (const IDataPointSet &dataPointSet, const IPlotterStyle &style, const std::string &options="")=0
 
virtual bool remove (const IBaseHistogram &histogram)=0
 Remove a data analysis object in the list of things to plot in the region. More...
 
virtual bool remove (const IFunction &function)=0
 
virtual bool remove (const IDataPointSet &dataPointSet)=0
 
virtual void clear ()=0
 Clear the list of things to plot in the region. More...
 
virtual bool setParameter (const std::string &parameter, const std::string &options="")=0
 Set various plotting paramters for the region. More...
 
virtual std::string parameterValue (const std::string &parameter) const =0
 Get value of a parameter. More...
 
virtual std::vector< std::string > availableParameterOptions (const std::string &parameter) const =0
 
virtual std::vector< std::string > availableParameters () const =0
 
virtual IPlotterStylestyle ()=0
 Get the style of the region.
 
virtual bool setStyle (const IPlotterStyle &style)=0
 Set the style of a region.
 
virtual bool applyStyle (const IPlotterStyle &style)=0
 Set the style of a region and apply it to scene objects.
 
virtual void setTitle (const std::string &title)=0
 Set the title of a region.
 
virtual bool setXLimits (double min=0, double max=0)=0
 Set limit of an axis representation the region area.
 
virtual bool setYLimits (double min=0, double max=0)=0
 
virtual bool setZLimits (double min=0, double max=0)=0
 
virtual IPlotterLayoutlayout ()=0
 To customize axis position,etc... More...
 
virtual bool setLayout (const IPlotterLayout &layout)=0
 
virtual IInfoinfo ()=0
 Return an IInfo object describing the info area.
 

Detailed Description

User level interface to a plotter region.

A region is managed by a plotter. A region must be seen as a scene manager handling a custome "plotting" scene. In general this kind of scene may be in 2D or 3D. In 2D, the scene have "coarse graining parts" like two axis, data representations within the axis. It may have various other parts like a grid, a title, an info area. In 3D, the scene have in general three axis, a different global layout, some data representations within the axis area and also scene parts like title, grid, etc...

To customize all these, some "style" interfaces had been introduced. In general there is one style interface per "scene part" ; then IAxisStyle, IDataStyle, ITitleStyle, IInfoStyle. Oftenly a "scene part" contains text, line, fill area, etc.... For example an "axis" have a line, ticks, text for tick labels, text for the label of the axis, the magnitude, etc... A "coarse graining scene part" style contains various accessor to "atomic" styles like IMarkerStyle, ILineStyle, IFillStyle that permits to build a "customization block" to modify a scene part.

A global style "block", the IPlotterStyle, could be retreived from a plotting region. This global style block have accessors to the various "coarse graining scene parts" of the plotting scene. Through it, we hope to offer a lot of customization in a convenient way...

The keywords "scene" and "part" had been borrowed from the OpenInventor terminology.

Author
The AIDA team (http://aida.freehep.org/)

Member Function Documentation

virtual void AIDA::IPlotterRegion::clear ( )
pure virtual

Clear the list of things to plot in the region.

Clear the corresponding area on screen window(s).

Implemented in AIDA::IPlotterRegionROOT.

virtual IPlotterLayout& AIDA::IPlotterRegion::layout ( )
pure virtual

To customize axis position,etc...

Change object position in the scence.

Implemented in AIDA::IPlotterRegionROOT.

virtual std::string AIDA::IPlotterRegion::parameterValue ( const std::string &  parameter) const
pure virtual

Get value of a parameter.

Parameters
paramNameName of the parameter.
Returns
the value.

Implemented in AIDA::IPlotterRegionROOT.

virtual bool AIDA::IPlotterRegion::plot ( const IBaseHistogram histogram,
const std::string &  options = "" 
)
pure virtual

Add a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region.

Activate the underlying graphic toolkit in order to bring something in the screen window(s) attached to the plotter. It assumes that the plotter had been mapped on the screen with its show method.

Implemented in AIDA::IPlotterRegionROOT.

virtual bool AIDA::IPlotterRegion::remove ( const IBaseHistogram histogram)
pure virtual

Remove a data analysis object in the list of things to plot in the region.

Activate the graphic layer to update the screen window.

Implemented in AIDA::IPlotterRegionROOT.

virtual bool AIDA::IPlotterRegion::setParameter ( const std::string &  parameter,
const std::string &  options = "" 
)
pure virtual

Set various plotting paramters for the region.

Activate the graphic layer and update the screen window(s) if needed.

Implemented in AIDA::IPlotterRegionROOT.


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