COPASI API
4.16.103
|
#include <plotwindow.h>
Public Member Functions | |
virtual bool | compile (std::vector< CCopasiContainer * > listOfContainer, const CCopasiDataModel *pDataModel) |
virtual void | finish () |
virtual const std::set< const CCopasiObject * > & | getObjects () const |
CopasiPlot * | getPlot () const |
virtual QMenu * | getWindowMenu () const |
bool | initFromSpec (const CPlotSpecification *ptrSpec) |
virtual void | output (const Activity &activity) |
PlotWindow (COutputHandlerPlot *pHandler, const CPlotSpecification *ptrSpec, CopasiUI3Window *pMainWindow) | |
virtual void | saveToFile (const QString &fileName) const |
virtual void | separate (const Activity &activity) |
virtual | ~PlotWindow () |
![]() | |
void | addToMainWindow (CopasiUI3Window *window=NULL) |
CWindowInterface (QWidget *parent=NULL, Qt::WindowFlags flags=NULL) | |
void | removeFromMainWindow (CopasiUI3Window *window=NULL) |
virtual | ~CWindowInterface () |
![]() | |
virtual void | close () |
COutputInterface () | |
COutputInterface (const COutputInterface &src) | |
virtual | ~COutputInterface () |
Protected Member Functions | |
virtual void | closeEvent (QCloseEvent *closeEvent) |
Private Slots | |
void | printAsImage () |
void | printPlot () |
void | slotCloseWindow () |
void | slotDeselectAll () |
void | slotSaveData () |
Save data into a file. More... | |
void | slotSelectAll () |
void | slotZoomOut () |
Zoom out. More... | |
void | toggleLogX (bool) |
void | toggleLogY (bool) |
Private Member Functions | |
void | createActions () |
void | createMenus () |
void | createToolBar () |
Private Attributes | |
bool | initializing |
QAction * | mpaCloseWindow |
QAction * | mpaHideAll |
QAction * | mpaPrint |
QAction * | mpaSaveData |
QAction * | mpaSaveImage |
QAction * | mpaShowAll |
QAction * | mpaToggleLogX |
QAction * | mpaToggleLogY |
QAction * | mpaZoomOut |
COutputHandlerPlot * | mpHandler |
CopasiUI3Window * | mpMainWindow |
CopasiPlot * | mpPlot |
QMenu * | mpWindowMenu |
Additional Inherited Members | |
![]() | |
enum | Activity { BEFORE = 0x01, DURING = 0x02, AFTER = 0x04 } |
![]() | |
std::set< const CCopasiObject * > | mObjects |
Definition at line 34 of file plotwindow.h.
PlotWindow::PlotWindow | ( | COutputHandlerPlot * | pHandler, |
const CPlotSpecification * | ptrSpec, | ||
CopasiUI3Window * | pMainWindow | ||
) |
Definition at line 57 of file plotwindow.cpp.
References CWindowInterface::addToMainWindow(), CQIconResource::copasi, createActions(), createMenus(), createToolBar(), CPlotItem::getTitle(), CQIconResource::icon(), initializing, CPlotSpecification::isLogX(), CPlotSpecification::isLogY(), mpaToggleLogX, mpaToggleLogY, mpMainWindow, and mpPlot.
|
virtual |
Definition at line 417 of file plotwindow.cpp.
References mpHandler, mpMainWindow, CWindowInterface::removeFromMainWindow(), and COutputHandlerPlot::removeInterface().
|
protectedvirtual |
Definition at line 472 of file plotwindow.cpp.
References mpHandler, mpMainWindow, COutputHandlerPlot::removeInterface(), and CopasiUI3Window::removeWindow().
|
virtual |
compile the object list from name vector
std::vector< | CCopasiContainer * > listOfContainer |
const | CCopasiDataModel* pDataModel |
Reimplemented from COutputInterface.
Definition at line 426 of file plotwindow.cpp.
References CopasiPlot::compile(), COutputInterface::mObjects, and mpPlot.
|
private |
Definition at line 123 of file plotwindow.cpp.
References mpaCloseWindow, mpaHideAll, mpaPrint, mpaSaveData, mpaSaveImage, mpaShowAll, mpaToggleLogX, mpaToggleLogY, mpaZoomOut, printAsImage(), printPlot(), slotCloseWindow(), slotDeselectAll(), slotSaveData(), slotSelectAll(), slotZoomOut(), toggleLogX(), and toggleLogY().
Referenced by PlotWindow().
|
private |
Definition at line 97 of file plotwindow.cpp.
References mpaCloseWindow, mpaHideAll, mpaPrint, mpaSaveData, mpaSaveImage, mpaShowAll, mpaToggleLogX, mpaToggleLogY, mpaZoomOut, and mpWindowMenu.
Referenced by PlotWindow().
|
private |
Definition at line 171 of file plotwindow.cpp.
References mpaCloseWindow, mpaHideAll, mpaPrint, mpaSaveData, mpaSaveImage, mpaShowAll, mpaToggleLogX, mpaToggleLogY, and mpaZoomOut.
Referenced by PlotWindow().
|
virtual |
Finish the output
Reimplemented from COutputInterface.
Definition at line 444 of file plotwindow.cpp.
References CopasiPlot::finish(), and mpPlot.
|
virtual |
Retrieve the list of objects handled by the interface
Reimplemented from COutputInterface.
Definition at line 447 of file plotwindow.cpp.
References COutputInterface::getObjects(), COutputInterface::mObjects, and mpPlot.
CopasiPlot * PlotWindow::getPlot | ( | ) | const |
Definition at line 478 of file plotwindow.cpp.
References mpPlot.
|
virtual |
Implements CWindowInterface.
Definition at line 118 of file plotwindow.cpp.
References mpWindowMenu.
bool PlotWindow::initFromSpec | ( | const CPlotSpecification * | ptrSpec | ) |
Definition at line 199 of file plotwindow.cpp.
References CPlotItem::getTitle(), CopasiPlot::initFromSpec(), initializing, CPlotSpecification::isLogX(), CPlotSpecification::isLogY(), mpaToggleLogX, mpaToggleLogY, and mpPlot.
Perform an output event for the current activity
const | Activity & activity |
Reimplemented from COutputInterface.
Definition at line 438 of file plotwindow.cpp.
References mpPlot, and CopasiPlot::output().
|
privateslot |
Definition at line 311 of file plotwindow.cpp.
References C_INT32, checkSelection(), CopasiFileDialog::getSaveFileName(), and saveToFile().
Referenced by createActions().
|
privateslot |
Definition at line 349 of file plotwindow.cpp.
References mpPlot.
Referenced by createActions().
|
virtual |
Saves the current plot to the given filename.
This implementation supports PDF, SVG and PNG
Reimplemented from CWindowInterface.
Definition at line 274 of file plotwindow.cpp.
References mpPlot.
Referenced by printAsImage().
Introduce an additional separator into the output
const | Activity & activity |
Reimplemented from COutputInterface.
Definition at line 441 of file plotwindow.cpp.
References mpPlot, and CopasiPlot::separate().
|
privateslot |
Definition at line 467 of file plotwindow.cpp.
Referenced by createActions().
|
privateslot |
Hide all curves.
Definition at line 461 of file plotwindow.cpp.
References mpPlot, and CopasiPlot::setCurvesVisibility().
Referenced by createActions().
|
privateslot |
Save data into a file.
Definition at line 371 of file plotwindow.cpp.
References C_INT32, checkSelection(), CQMessageBox::critical(), FROM_UTF8, CopasiFileDialog::getSaveFileName(), mpPlot, CopasiPlot::saveData(), and TO_UTF8.
Referenced by createActions().
|
privateslot |
Show all curves.
Definition at line 455 of file plotwindow.cpp.
References mpPlot, and CopasiPlot::setCurvesVisibility().
Referenced by createActions().
|
privateslot |
Zoom out.
Definition at line 409 of file plotwindow.cpp.
References mpPlot, and CopasiPlot::mpZoomer.
Referenced by createActions().
|
privateslot |
Definition at line 216 of file plotwindow.cpp.
References initializing, mpPlot, and CopasiPlot::replot().
Referenced by createActions().
|
privateslot |
Definition at line 236 of file plotwindow.cpp.
References initializing, mpPlot, and CopasiPlot::replot().
Referenced by createActions().
|
private |
Definition at line 56 of file plotwindow.h.
Referenced by initFromSpec(), PlotWindow(), toggleLogX(), and toggleLogY().
|
private |
Definition at line 46 of file plotwindow.h.
Referenced by createActions(), createMenus(), and createToolBar().
|
private |
Definition at line 48 of file plotwindow.h.
Referenced by createActions(), createMenus(), and createToolBar().
|
private |
Definition at line 49 of file plotwindow.h.
Referenced by createActions(), createMenus(), and createToolBar().
|
private |
Definition at line 51 of file plotwindow.h.
Referenced by createActions(), createMenus(), and createToolBar().
|
private |
Definition at line 50 of file plotwindow.h.
Referenced by createActions(), createMenus(), and createToolBar().
|
private |
Definition at line 47 of file plotwindow.h.
Referenced by createActions(), createMenus(), and createToolBar().
|
private |
Definition at line 53 of file plotwindow.h.
Referenced by createActions(), createMenus(), createToolBar(), initFromSpec(), and PlotWindow().
|
private |
Definition at line 54 of file plotwindow.h.
Referenced by createActions(), createMenus(), createToolBar(), initFromSpec(), and PlotWindow().
|
private |
Definition at line 52 of file plotwindow.h.
Referenced by createActions(), createMenus(), and createToolBar().
|
private |
Definition at line 42 of file plotwindow.h.
Referenced by closeEvent(), and ~PlotWindow().
|
private |
Definition at line 43 of file plotwindow.h.
Referenced by closeEvent(), PlotWindow(), and ~PlotWindow().
|
private |
Definition at line 41 of file plotwindow.h.
Referenced by compile(), finish(), getObjects(), getPlot(), initFromSpec(), output(), PlotWindow(), printPlot(), saveToFile(), separate(), slotDeselectAll(), slotSaveData(), slotSelectAll(), slotZoomOut(), toggleLogX(), and toggleLogY().
|
private |
Definition at line 44 of file plotwindow.h.
Referenced by createMenus(), and getWindowMenu().