copasi API  0.1
Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
PlotSubwidget Class Reference

#include <PlotSubwidget.h>

Inheritance diagram for PlotSubwidget:
CopasiWidget

List of all members.

Public Member Functions

 PlotSubwidget (QWidget *parent=0, const char *name=0, Qt::WFlags fl=0)
 ~PlotSubwidget ()
virtual bool update (ListViews::ObjectType objectType, ListViews::Action action, const std::string &key)
virtual bool leave ()
void createHistograms (std::vector< const CCopasiObject * >objects, const C_FLOAT64 &incr)

Protected Slots

void addCurveSlot ()
void addHistoSlot ()
void removeCurve ()
void commitPlot ()
void deletePlot ()
void addPlot ()
void resetPlot ()

Protected Member Functions

virtual bool enterProtected ()
bool loadFromPlotSpec (const CPlotSpecification *)
bool saveToPlotSpec ()
void addCurveTab (const std::string &title, const CPlotDataChannelSpec &x, const CPlotDataChannelSpec &y)
void addHisto1DTab (const std::string &title, const CPlotDataChannelSpec &x, const C_FLOAT64 &incr)
void addCurve2D ()
void addHisto1D ()

Protected Attributes

CPlotItem::Type mType

Constructor & Destructor Documentation

PlotSubwidget::PlotSubwidget ( QWidget *  parent = 0,
const char *  name = 0,
Qt::WFlags  fl = 0 
)
PlotSubwidget::~PlotSubwidget ( )

Member Function Documentation

void PlotSubwidget::addCurve2D ( ) [protected]

this specifically handles the creation of a 2d curve. It is called when the corresponding button is pressed and the plot is actually 2D. The dialogs for choosing objects for the axes is called from here and one or several curve descriptions are generated.

void PlotSubwidget::addCurveSlot ( ) [protected, slot]

slots that are connected to the buttons for adding curves/histograms

void PlotSubwidget::addCurveTab ( const std::string &  title,
const CPlotDataChannelSpec x,
const CPlotDataChannelSpec y 
) [protected]

creates curve widget and adds it to the tab bar

void PlotSubwidget::addHisto1D ( ) [protected]

this specifically handles the creation of a histogram. It is called when the corresponding button is pressed and the plot is actually 2D. An empty histogram description is generated.

void PlotSubwidget::addHisto1DTab ( const std::string &  title,
const CPlotDataChannelSpec x,
const C_FLOAT64 &  incr 
) [protected]

creates histogram widget and adds it to the tab bar

void PlotSubwidget::addHistoSlot ( ) [protected, slot]
void PlotSubwidget::addPlot ( ) [protected, slot]

create a new plot definition

void PlotSubwidget::commitPlot ( ) [protected, slot]
void PlotSubwidget::createHistograms ( std::vector< const CCopasiObject * >  objects,
const C_FLOAT64 &  incr 
)

creates tabs for histograms from a list of objects. objects[0] is skipped, so objects.size()-1 histogram descriptions are generated. incr is used for all of them. This method is called from HistoWidget, so that when the user chooses several objects from the object selection widget several histograms can be generated accordingly.

void PlotSubwidget::deletePlot ( ) [protected, slot]

deletes the current plot spec.

bool PlotSubwidget::enterProtected ( ) [protected, virtual]

Reimplemented from CopasiWidget.

bool PlotSubwidget::leave ( ) [virtual]

Reimplemented from CopasiWidget.

bool PlotSubwidget::loadFromPlotSpec ( const CPlotSpecification pspec) [protected]
void PlotSubwidget::removeCurve ( ) [protected, slot]

deletes the current tab

void PlotSubwidget::resetPlot ( ) [protected, slot]

cancels changes to the plot definition

bool PlotSubwidget::saveToPlotSpec ( ) [protected]
bool PlotSubwidget::update ( ListViews::ObjectType  objectType,
ListViews::Action  action,
const std::string &  key 
) [virtual]

Reimplemented from CopasiWidget.


Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines