COPASI API  4.40.278
CCellDesignerImporter.cpp File Reference
#include <algorithm>
#include <assert.h>
#include <ctype.h>
#include <limits>
#include <cmath>
#include <sstream>
#include <string>
#include <stdlib.h>
#include <sbml/Compartment.h>
#include <sbml/Model.h>
#include <sbml/SBase.h>
#include <sbml/SBMLDocument.h>
#include <sbml/Species.h>
#include <sbml/xml/XMLNode.h>
#include <sbml/xml/XMLNamespaces.h>
#include <sbml/xml/XMLAttributes.h>
#include <sbml/packages/layout/sbml/CompartmentGlyph.h>
#include <sbml/packages/layout/sbml/CubicBezier.h>
#include <sbml/packages/layout/sbml/Curve.h>
#include <sbml/packages/layout/sbml/GraphicalObject.h>
#include <sbml/packages/layout/sbml/Layout.h>
#include <sbml/packages/layout/sbml/LineSegment.h>
#include <sbml/packages/layout/sbml/ReactionGlyph.h>
#include <sbml/packages/layout/sbml/SpeciesGlyph.h>
#include <sbml/packages/layout/sbml/SpeciesReferenceGlyph.h>
#include <sbml/packages/layout/sbml/SpeciesReferenceRole.h>
#include <sbml/packages/layout/sbml/TextGlyph.h>
#include <sbml/packages/layout/extension/LayoutModelPlugin.h>
#include <sbml/packages/render/sbml/ColorDefinition.h>
#include <sbml/packages/render/sbml/Ellipse.h>
#include <sbml/packages/render/sbml/RenderGroup.h>
#include <sbml/packages/render/sbml/LocalRenderInformation.h>
#include <sbml/packages/render/sbml/LocalStyle.h>
#include <sbml/packages/render/sbml/Polygon.h>
#include <sbml/packages/render/sbml/Rectangle.h>
#include <sbml/packages/render/sbml/RelAbsVector.h>
#include <sbml/packages/render/sbml/RenderCurve.h>
#include <sbml/packages/render/sbml/RenderPoint.h>
#include <sbml/packages/render/extension/RenderLayoutPlugin.h>
#include "CCellDesignerImporter.h"
#include "SBMLUtils.h"
#include <copasi/utilities/CCopasiMessage.h>

Macros

#define COULD_NOT_CREATE(result)
 
#define FAIL_WITH_ERROR(result, message)
 
#define FAIL_WITH_ERROR_AND_RETURN(result, message)
 
#define USE_LAYOUT   1
 
#define USE_RENDER   1
 

Functions

double getAngleFrom (const std::vector< ProteinModification > &modifications, const std::string &id)
 
Point getCenter (const BoundingBox &bounds)
 
SPECIES_MODIFICATION_TYPE getTypeFrom (const std::vector< SpeciesModification > &modifications, const std::string &id)
 

Macro Definition Documentation

◆ COULD_NOT_CREATE

#define COULD_NOT_CREATE (   result)
Value:
{\
FAIL_WITH_ERROR(result, "could not create element");\
}\

◆ FAIL_WITH_ERROR

#define FAIL_WITH_ERROR (   result,
  message 
)
Value:
{\
std::stringstream str;\
str << "CellDesigner Importer: " << "line: " << __LINE__ << " " << message;\
result = false;\
CCopasiMessage(CCopasiMessage::WARNING_FILTERED, str.str().c_str());\
}\
@ WARNING_FILTERED
Definition: CCopasiMessage.h:115

◆ FAIL_WITH_ERROR_AND_RETURN

#define FAIL_WITH_ERROR_AND_RETURN (   result,
  message 
)
Value:
{\
FAIL_WITH_ERROR(result, message);\
return result;\
}\

◆ USE_LAYOUT

#define USE_LAYOUT   1

◆ USE_RENDER

#define USE_RENDER   1

Function Documentation

◆ getAngleFrom()

double getAngleFrom ( const std::vector< ProteinModification > &  modifications,
const std::string &  id 
)

◆ getCenter()

Point getCenter ( const BoundingBox &  bounds)

◆ getTypeFrom()

SPECIES_MODIFICATION_TYPE getTypeFrom ( const std::vector< SpeciesModification > &  modifications,
const std::string &  id 
)