Skip to content

Commit

Permalink
Simulation Experiment view: upgraded our code to support libSEDML 2.0…
Browse files Browse the repository at this point in the history
….5 (L1V4) (opencor#2053).

Still using annotations for features that are in L1V4, but not in L1V3.
  • Loading branch information
agarny committed Apr 3, 2019
1 parent 2cb1490 commit 7743a8b
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
//==============================================================================

#include "libsedmlbegin.h"
#include "sedml/SedAlgorithm.h"
#include "sedml/SedCurve.h"
#include "sedml/SedDocument.h"
#include "sedml/SedOneStep.h"
#include "sedml/SedPlot2D.h"
#include "sedml/SedRepeatedTask.h"
#include "sedml/SedTask.h"
#include "sedml/SedSimulation.h"
#include "sedml/SedUniformTimeCourse.h"
#include "sedml/SedVectorRange.h"
Expand Down Expand Up @@ -2861,7 +2862,7 @@ bool SimulationExperimentViewSimulationWidget::furtherInitialize()
}
}

libsbml::XMLNode *annotation = sedmlAlgorithm->getAnnotation();
const libsbml::XMLNode *annotation = sedmlAlgorithm->getAnnotation();

if (annotation) {
for (uint i = 0, iMax = annotation->getNumChildren(); i < iMax; ++i) {
Expand Down Expand Up @@ -3168,7 +3169,7 @@ bool SimulationExperimentViewSimulationWidget::furtherInitialize()
graphPanel->removeAllGraphs();

for (uint j = 0, jMax = sedmlPlot2d->getNumCurves(); j < jMax; ++j) {
libsedml::SedCurve *sedmlCurve = sedmlPlot2d->getCurve(j);
libsedml::SedCurve *sedmlCurve = reinterpret_cast<libsedml::SedCurve *>(sedmlPlot2d->getCurve(j));

libsedml::SedVariable *xVariable = sedmlDocument->getDataGenerator(sedmlCurve->getXDataReference())->getVariable(0);
libsedml::SedVariable *yVariable = sedmlDocument->getDataGenerator(sedmlCurve->getYDataReference())->getVariable(0);
Expand Down

0 comments on commit 7743a8b

Please # to comment.