CERN Accelerating science

This website is no longer maintained. Its content may be obsolete. Please visit http://home.cern/ for current CERN information.

Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

AIDA::IPlotter Class Reference

#include <IPlotter.h>

List of all members.

Public Methods

virtual ~IPlotter ()
 Destructor. More...

virtual IPlotterRegioncreateRegion (double x=0, double y=0, double w=1.0, double h=1.0)=0
virtual bool createRegions (int columns=1, int rows=1, int index=0)=0
virtual IPlotterRegioncurrentRegion () const=0
virtual int currentRegionNumber () const=0
virtual int numberOfRegions () const=0
virtual bool setCurrentRegionNumber (int index)=0
virtual IPlotterRegionnext ()=0
virtual IPlotterRegionregion (int index) const=0
virtual void destroyRegions ()=0
virtual void clearRegions ()=0
virtual bool setParameter (const std::string &parameter, const std::string &options="")=0
virtual std::string parameterValue (const std::string &parameter) const=0
virtual std::vector<std::string> availableParameterOptions (const std::string &parameter) const=0
virtual std::vector<std::string> availableParameters () const=0
virtual bool show ()=0
virtual bool refresh ()=0
virtual bool hide ()=0
virtual bool interact ()=0
virtual bool writeToFile (const std::string &filename, const std::string &type="")=0
virtual void setTitle (const std::string &title)=0
virtual ITitleStyletitleStyle ()=0
virtual void setTitleStyle (const ITitleStyle &style)=0


Detailed Description

User level interface to plotter.

This IPlotter interface assumes the handling of multiple plotting regions. Then the IPlotter should be seen as a "page" managing multiple drawing region. It assumes that a "current" region mechanism is used.

The keyword "region" is borrowed from the OpenInventor terminology (viewing region).

See also the IPlotterRegion for more comments.

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

Definition at line 40 of file IPlotter.h.


Constructor & Destructor Documentation

AIDA::IPlotter::~IPlotter ( ) [inline, virtual]
 

Definition at line 44 of file IPlotter.h.


Member Function Documentation

std::vector< std::string > AIDA::IPlotter::availableParameterOptions<std::string> ( const std::string & parameter ) const [pure virtual]
 

std::vector< std::string > AIDA::IPlotter::availableParameters<std::string> ( ) const [pure virtual]
 

void AIDA::IPlotter::clearRegions ( ) [pure virtual]
 

Clear all regions. It does not reset the number and position of regions. This can be done through a destroyRegions.

IPlotterRegion * AIDA::IPlotter::createRegion ( double x = 0,
double y = 0,
double w = 1.0,
double h = 1.0 ) [pure virtual]
 

Create a new region.

Parameters:
x, y, w, h   Position and size in normal coordinates that is to say between 0 and 1. Then a region with (x=0,y=0,w=1,h=1) maps the full page. "x" goes left to right. "y" bottom to top.
Returns:
The newly created region. Return null in case not failure. Note that the plotter manages the regions ; user does not have to delete a region object directly.

bool AIDA::IPlotter::createRegions ( int columns = 1,
int rows = 1,
int index = 0 ) [pure virtual]
 

Create a grid of regions. By default the current region is the top left one (with index 0). Region are indexed from zero, with increasing order left to right, top to bottom.

Parameters:
index   Set the current region.

IPlotterRegion & AIDA::IPlotter::currentRegion ( ) const [pure virtual]
 

Returns:
The current region.

int AIDA::IPlotter::currentRegionNumber ( ) const [pure virtual]
 

Returns:
The current region index.

void AIDA::IPlotter::destroyRegions ( ) [pure virtual]
 

Destroy regions.

bool AIDA::IPlotter::hide ( ) [pure virtual]
 

Unmap the plotter on the screen.

bool AIDA::IPlotter::interact ( ) [pure virtual]
 

Give control to the plotter GUI. The plotter must be able to return from this function from a user action in its GUI.

IPlotterRegion & AIDA::IPlotter::next ( ) [pure virtual]
 

Set current region to be the "next" one. If exceeding the number of regions, the current region index return to 0.

Returns:
The new current region.

int AIDA::IPlotter::numberOfRegions ( ) const [pure virtual]
 

Returns:
The number of regions.

std::string AIDA::IPlotter::parameterValue ( const std::string & parameter ) const [pure virtual]
 

Get value of a parameter.

Parameters:
paramName   Name of the parameter.
Returns:
the value.

bool AIDA::IPlotter::refresh ( ) [pure virtual]
 

Refresh the screen window(s). Used when a plotted data analysis object received new data.

IPlotterRegion * AIDA::IPlotter::region ( int index ) const [pure virtual]
 

Returns:
A region, knowing its index.

bool AIDA::IPlotter::setCurrentRegionNumber ( int index ) [pure virtual]
 

Set current region by giving its index [0,n-1]

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

void AIDA::IPlotter::setTitle ( const std::string & title ) [pure virtual]
 

Set the global title of the plotter (page).

void AIDA::IPlotter::setTitleStyle ( const ITitleStyle & style ) [pure virtual]
 

bool AIDA::IPlotter::show ( ) [pure virtual]
 

Map the plotter on the screen.

ITitleStyle & AIDA::IPlotter::titleStyle ( ) [pure virtual]
 

Get/set title style.

bool AIDA::IPlotter::writeToFile ( const std::string & filename,
const std::string & type = "" ) [pure virtual]
 

Produce an output file.

Parameters:
type   A string to describe the type of the output : "PS" or "PostScript" for PostScript, "JPEG" for JPEG. If nothing is given, the type is guessed from the given file name suffix (.ps for PostScript, .jpg for JPEG, etc...).


The documentation for this class was generated from the following file:
Generated at Tue Feb 18 15:48:24 2003 for AIDA_Interfaces by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001