COPASI API  4.16.103
Functions
CQTimeSeriesWidget.cpp File Reference
#include "CQTimeSeriesWidget.h"
#include "CQTimeSeriesDM.h"
#include "CopasiFileDialog.h"
#include "CQMessageBox.h"
#include "qtUtilities.h"
#include "trajectory/CTrajectoryTask.h"
#include "crosssection/CCrossSectionTask.h"
Include dependency graph for CQTimeSeriesWidget.cpp:

Go to the source code of this file.

Functions

const CTimeSeriesgetTimeSeriesFromTask (const CCopasiTask *pTask)
 

Function Documentation

const CTimeSeries* getTimeSeriesFromTask ( const CCopasiTask pTask)

Definition at line 72 of file CQTimeSeriesWidget.cpp.

References CTrajectoryTask::getTimeSeries(), CCrossSectionTask::getTimeSeries(), and pTask.

Referenced by CQTimeSeriesWidget::loadResult().

73 {
74  const CTrajectoryTask *traj = dynamic_cast<const CTrajectoryTask *>(pTask);
75 
76  if (traj != NULL)
77  return &traj->getTimeSeries();
78 
79  const CCrossSectionTask* cross = dynamic_cast<const CCrossSectionTask *>(pTask);
80 
81  if (cross != NULL)
82  return &cross->getTimeSeries();
83 
84  return NULL;
85 }
CTSSATask * pTask
const CTimeSeries & getTimeSeries() const
const CTimeSeries & getTimeSeries() const