|
COPASI API
4.40.278
|
#include <CLReactionGlyph.h>
Public Types | |
| enum | Role { UNDEFINED , SUBSTRATE , PRODUCT , SIDESUBSTRATE , SIDEPRODUCT , MODIFIER , ACTIVATOR , INHIBITOR } |
Public Types inherited from CDataContainer | |
| typedef CDataObjectMap | objectMap |
Public Types inherited from CDataObject | |
| typedef std::set< const CDataObject * > | DataObjectSet |
| enum | Flag { Container , Vector , Matrix , NameVector , Reference , ValueBool , ValueInt , ValueInt64 , ValueDbl , NonUniqueName , StaticString , ValueString , Separator , DisplayName , ModelEntity , Array , DataModel , Root , Gui , __SIZE } |
Public Types inherited from CObjectInterface | |
| typedef std::vector< const CDataContainer * > | ContainerList |
| typedef std::set< const CObjectInterface * > | ObjectSet |
Public Member Functions | |
| virtual bool | applyData (const CData &data, CUndoData::CChangeSet &changes) |
| CLMetabReferenceGlyph (const CLMetabReferenceGlyph &src, const CDataContainer *pParent) | |
| CLMetabReferenceGlyph (const SpeciesReferenceGlyph &sbml, const std::map< std::string, std::string > &modelmap, std::map< std::string, std::string > &layoutmap, const CDataContainer *pParent=NO_PARENT) | |
| CLMetabReferenceGlyph (const std::string &name="MetabReferenceGlyph", const CDataContainer *pParent=NO_PARENT) | |
| virtual CLGraphicalObject * | clone () const |
| virtual void | exportToSBML (SpeciesReferenceGlyph *g, const std::map< const CDataObject *, SBase * > &copasimodelmap, std::map< std::string, const SBase * > &sbmlIDs, const std::map< const CLBase *, const SBase * > &layoutmap) const |
| Role | getFunctionalRole () const |
| CLMetabGlyph * | getMetabGlyph () const |
| const std::string & | getMetabGlyphKey () const |
| Role | getRole () const |
| const std::string & | getRoleDisplayName () const |
| CLMetabReferenceGlyph & | operator= (const CLMetabReferenceGlyph &rhs) |
| void | print (std::ostream *ostream) const |
| void | setFunctionalRole (Role r) |
| void | setMetabGlyphKey (const std::string &k) |
| void | setRole (Role r) |
| virtual CData | toData () const |
Public Member Functions inherited from CLGlyphWithCurve | |
| CLGlyphWithCurve (const CLGlyphWithCurve &src, const CDataContainer *pParent) | |
| CLGlyphWithCurve (const GraphicalObject &sbml, const std::map< std::string, std::string > &modelmap, std::map< std::string, std::string > &layoutmap, const CDataContainer *pParent=NO_PARENT) | |
| CLGlyphWithCurve (const std::string &name="ReferenceGlyph", const CDataContainer *pParent=NO_PARENT) | |
| CLCurve & | getCurve () |
| const CLCurve & | getCurve () const |
| virtual void | moveBy (const CLPoint &p) |
| CLGlyphWithCurve & | operator= (const CLGlyphWithCurve &rhs) |
| void | setCurve (const CLCurve &c) |
Public Member Functions inherited from CLGraphicalObject | |
| CLGraphicalObject (const CLGraphicalObject &src, const CDataContainer *pParent) | |
| CLGraphicalObject (const GraphicalObject &sbml, std::map< std::string, std::string > &layoutmap, const CDataContainer *pParent=NO_PARENT) | |
| CLGraphicalObject (const std::string &name="GraphicalObject", const CDataContainer *pParent=NO_PARENT) | |
| virtual void | exportToSBML (GraphicalObject *sbmlobject, const std::map< const CDataObject *, SBase * > &copasimodelmap, std::map< std::string, const SBase * > &sbmlIDs) const |
| CLBoundingBox & | getBoundingBox () |
| const CLBoundingBox & | getBoundingBox () const |
| const CLDimensions & | getDimensions () const |
| const C_FLOAT64 & | getHeight () const |
| virtual const std::string & | getKey () const |
| CDataObject * | getModelObject () const |
| std::string | getModelObjectDisplayName (bool regular=true, bool richtext=false) const |
| const std::string & | getModelObjectKey () const |
| std::string | getModelObjectName () const |
| const std::string & | getObjectRole () const |
| const CLPoint & | getPosition () const |
| const C_FLOAT64 & | getWidth () const |
| const C_FLOAT64 & | getX () const |
| const C_FLOAT64 & | getY () const |
| bool | hasValidModelReference () const |
| CLGraphicalObject & | operator= (const CLGraphicalObject &rhs) |
| void | setBoundingBox (const CLBoundingBox &bb) |
| void | setDimensions (const CLDimensions &d) |
| void | setHeight (const C_FLOAT64 &h) |
| void | setModelObjectKey (const std::string &k) |
| void | setObjectRole (const std::string &role) |
| void | setPosition (const CLPoint &p) |
| void | setWidth (const C_FLOAT64 &w) |
| void | setX (const C_FLOAT64 &x) |
| void | setY (const C_FLOAT64 &y) |
| ~CLGraphicalObject () | |
Public Member Functions inherited from CLBase | |
| CLBase () | |
| CLBase (const CLBase &b) | |
| CLBase (const SBase &) | |
| const std::string & | getTag () const |
| bool | hasTag () const |
| void | setTag (const std::string &tag) |
| virtual | ~CLBase () |
Public Member Functions inherited from CDataContainer | |
| virtual bool | add (CDataObject *pObject, const bool &adopt=true) |
| virtual bool | appendDeletedDependentData (CUndoData &undoData) const |
| CDataContainer (const CDataContainer &src, const CDataContainer *pParent) | |
| CDataContainer (const std::string &name, const CDataContainer *pParent=NO_PARENT, const std::string &type="CN", const CFlags< Flag > &flag=CFlags< Flag >::None) | |
| virtual void | createUndoData (CUndoData &undoData, const CUndoData::Type &type, const CData &oldData=CData(), const CCore::Framework &framework=CCore::Framework::ParticleNumbers) const override |
| virtual std::string | getChildObjectUnits (const CDataObject *pObject) const |
| void | getDescendants (CDataObject::DataObjectSet &descendants, const bool &recursive=false) const |
| virtual size_t | getIndex (const CDataObject *pObject) const |
| virtual const CObjectInterface * | getObject (const CCommonName &cn) const override |
| virtual objectMap & | getObjects () |
| virtual const objectMap & | getObjects () const |
| virtual const std::string | getUnits () const override |
| virtual const CDataObject * | getValueObject () const override |
| virtual CUndoObjectInterface * | insert (const CData &data) override |
| void | objectRenamed (CDataObject *pObject, const std::string &oldName) |
| virtual bool | remove (CDataObject *pObject) |
| virtual | ~CDataContainer () |
Public Member Functions inherited from CDataObject | |
| void | addIssue (const CIssue &issue) |
| void | addReference (const CDataContainer *pReference) |
| virtual void | calculateValue () override |
| CDataObject (const CDataObject &src, const CDataContainer *pParent=NULL) | |
| virtual void | destruct () override |
| virtual CCommonName | getCN () const override |
| virtual const CDataObject * | getDataObject () const override |
| CDataContainer * | getObjectAncestor (const std::string &type) const |
| CDataModel * | getObjectDataModel () const |
| virtual std::string | getObjectDisplayName () const override |
| const CObjectInterface * | getObjectFromCN (const CCommonName &cn) const |
| const std::string & | getObjectName () const |
| CDataContainer * | getObjectParent () const |
| const std::string & | getObjectType () const |
| virtual const CObjectInterface::ObjectSet & | getPrerequisites () const override |
| virtual const CValidity & | getValidity () const override |
| virtual void * | getValuePointer () const override |
| bool | hasFlag (const Flag &flag) const |
| virtual bool | isPrerequisiteForContext (const CObjectInterface *pObject, const CCore::SimulationContextFlag &context, const CObjectInterface::ObjectSet &changedObjects) const override |
| bool | prerequisitsContains (const DataObjectSet &objects) const |
| void | removeIssue (const CIssue &issue) |
| void | removeReference (const CDataContainer *pReference) |
| bool | setObjectName (const std::string &name) |
| virtual bool | setObjectParent (const CDataContainer *pParent) |
| void | validityChanged (const CValidity &changedValidity) override |
| void | validityRemoved (const CValidity &changedValidity) |
| virtual | ~CDataObject () |
Public Member Functions inherited from CObjectInterface | |
| CObjectInterface () | |
| CObjectInterface (const CObjectInterface &src) | |
| virtual | ~CObjectInterface () |
Public Member Functions inherited from CUndoObjectInterface | |
| CUndoObjectInterface () | |
| CUndoObjectInterface (const CUndoObjectInterface &src) | |
| bool | generateUuid () |
| const xg::Guid & | getUuid () const |
| bool | setUuid (const std::string &uuid) |
| bool | setUuid (const xg::Guid &uuid) |
| virtual void | updateIndex (const size_t &index, const CUndoObjectInterface *pUndoObject) |
| virtual | ~CUndoObjectInterface () |
Static Public Member Functions | |
| static CLMetabReferenceGlyph * | fromData (const CData &data, CUndoObjectInterface *pParent) |
Static Public Member Functions inherited from CLGraphicalObject | |
| static CLGraphicalObject * | fromData (const CData &data, CUndoObjectInterface *pParent) |
Static Public Member Functions inherited from CDataContainer | |
| static CDataContainer * | fromData (const CData &data, CUndoObjectInterface *pParent) |
Static Public Member Functions inherited from CDataObject | |
| static CDataObject * | fromData (const CData &data, CUndoObjectInterface *pParent) |
| static void | sanitizeObjectName (std::string &name) |
Static Public Member Functions inherited from CObjectInterface | |
| static const CDataObject * | DataObject (const CObjectInterface *pInterface) |
| static CObjectInterface * | GetObjectFromCN (const ContainerList &listOfContainer, const CCommonName &objName) |
Static Public Member Functions inherited from CUndoObjectInterface | |
| template<class CType > | |
| static CType * | fromData (const CData &, CUndoObjectInterface *) |
Static Public Attributes | |
| static const std::string | RoleName [] |
| static const std::string | XMLRole [] |
Static Public Attributes inherited from CDataContainer | |
| static const CObjectInterface::ContainerList | EmptyList |
Protected Member Functions | |
| CLMetabReferenceGlyph (const CLMetabReferenceGlyph &src) | |
Protected Member Functions inherited from CLGlyphWithCurve | |
| CLGlyphWithCurve (const CLGlyphWithCurve &src) | |
Protected Member Functions inherited from CLGraphicalObject | |
| CLGraphicalObject (const CLGraphicalObject &src) | |
Protected Member Functions inherited from CDataContainer | |
| template<class CType > | |
| CDataMatrixReference< CType > * | addMatrixReference (const std::string &name, CType &reference, const CFlags< Flag > &flag=CFlags< Flag >::None) |
| template<class CType > | |
| CDataObjectReference< CType > * | addObjectReference (const std::string &name, CType &reference, const CFlags< Flag > &flag=CFlags< Flag >::None) |
| template<class CType > | |
| CDataVectorReference< CType > * | addVectorReference (const std::string &name, CType &reference, const CFlags< Flag > &flag=CFlags< Flag >::None) |
| CDataContainer (const CDataContainer &src) | |
| void | initObjects () |
Protected Member Functions inherited from CDataObject | |
| CDataObject () | |
| CDataObject (const std::string &name, const CDataContainer *pParent=static_cast< CDataContainer * >((void *) 0), const std::string &type="CN", const CFlags< Flag > &flag=CFlags< Flag >::None) | |
Private Attributes | |
| Role | mFunctionalRole |
| std::string | mMetabGlyphKey |
| Role | mRole |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const CLMetabReferenceGlyph &g) |
Additional Inherited Members | |
Protected Attributes inherited from CLGlyphWithCurve | |
| CLCurve | mCurve |
Protected Attributes inherited from CLGraphicalObject | |
| CLBoundingBox | mBBox |
| std::string | mKey |
| std::string | mModelObjectKey |
| std::string | mObjectRole |
Protected Attributes inherited from CLBase | |
| std::string | mTag |
Protected Attributes inherited from CDataContainer | |
| objectMap | mObjects |
Protected Attributes inherited from CDataObject | |
| ObjectSet | mPrerequisits |
| std::set< CDataContainer * > | mReferences |
Protected Attributes inherited from CObjectInterface | |
| CValidity | mValidity |
Graphical representation of a CChemEqElement. This correspondents to the sbml SpeciesReferenceGlyph. The copasi equivalent is the CChemEqElement, however it has no key, so it cannot be referred to.
|
protected |
Referenced by clone(), and fromData().
| CLMetabReferenceGlyph::CLMetabReferenceGlyph | ( | const std::string & | name = "MetabReferenceGlyph", |
| const CDataContainer * | pParent = NO_PARENT |
||
| ) |
| CLMetabReferenceGlyph::CLMetabReferenceGlyph | ( | const CLMetabReferenceGlyph & | src, |
| const CDataContainer * | pParent | ||
| ) |
| CLMetabReferenceGlyph::CLMetabReferenceGlyph | ( | const SpeciesReferenceGlyph & | sbml, |
| const std::map< std::string, std::string > & | modelmap, | ||
| std::map< std::string, std::string > & | layoutmap, | ||
| const CDataContainer * | pParent = NO_PARENT |
||
| ) |
constructor from libsbml object
References CLGlyphWithCurve::mCurve, mMetabGlyphKey, and CLGraphicalObject::setModelObjectKey().
|
virtual |
Apply the provided data to the object
| const | CData & data |
Reimplemented from CLGraphicalObject.
References fatalError.
|
virtual |
Reimplemented from CLGraphicalObject.
References CLMetabReferenceGlyph().
|
virtual |
This method writes the information of the COPASI layout object into the corresponding SBML object layoutmap contains a map from COPASI layout objects to libsbml layout objects. this is needed for resolving the reference to the metab glyph.
References CLCurve::exportToSBML(), CLGraphicalObject::exportToSBML(), getMetabGlyph(), CLGlyphWithCurve::mCurve, and mRole.
Referenced by CLReactionGlyph::exportToSBML().
|
static |
Static method to create a CDataObject based on the provided data
| const | CData & data |
References CLMetabReferenceGlyph(), CData::getProperty(), NO_PARENT, CData::OBJECT_NAME, and CDataValue::toString().
| CLMetabReferenceGlyph::Role CLMetabReferenceGlyph::getFunctionalRole | ( | ) | const |
References getRole(), mFunctionalRole, and UNDEFINED.
Referenced by CCopasiSpringLayout::finalizeState().
| CLMetabGlyph * CLMetabReferenceGlyph::getMetabGlyph | ( | ) | const |
References CKeyFactory::get(), CRootContainer::getKeyFactory(), and mMetabGlyphKey.
Referenced by exportToSBML(), CCopasiSpringLayout::finalizeState(), CCopasiSpringLayout::potEdge(), and CCopasiSpringLayout::potSecondOrderEdge().
| const std::string & CLMetabReferenceGlyph::getMetabGlyphKey | ( | ) | const |
References mMetabGlyphKey.
Referenced by CLayout::CLayout(), CLayout::exportToDotFile(), CCopasiXML::saveLayoutList(), and CLLayoutRenderer::update_associations().
| CLMetabReferenceGlyph::Role CLMetabReferenceGlyph::getRole | ( | ) | const |
References mRole.
Referenced by CLayout::exportToDotFile(), getFunctionalRole(), CCopasiSpringLayout::potEdge(), CLRenderResolver::resolveStyle(), and CCopasiXML::saveLayoutList().
| const std::string & CLMetabReferenceGlyph::getRoleDisplayName | ( | ) | const |
| CLMetabReferenceGlyph & CLMetabReferenceGlyph::operator= | ( | const CLMetabReferenceGlyph & | rhs | ) |
assignment operator.
References mMetabGlyphKey, mRole, and CLGlyphWithCurve::operator=().
|
virtual |
This is the output method for any object. The default implementation provided with CDataObject uses the ostream operator<< of the object to print the object.To override this default behavior one needs to reimplement the virtual print function.
| std::ostream | * ostream |
Reimplemented from CLGlyphWithCurve.
| void CLMetabReferenceGlyph::setFunctionalRole | ( | CLMetabReferenceGlyph::Role | r | ) |
References mFunctionalRole.
Referenced by CCopasiSpringLayout::createLayout().
| void CLMetabReferenceGlyph::setMetabGlyphKey | ( | const std::string & | k | ) |
| void CLMetabReferenceGlyph::setRole | ( | CLMetabReferenceGlyph::Role | r | ) |
References mRole.
Referenced by CCopasiSpringLayout::createLayout(), CLayoutInitializer::createReactionGlyph(), and MetaboliteReferenceGlyphHandler::processStart().
|
virtual |
Retrieve the data describing the object
Reimplemented from CLGraphicalObject.
References fatalError.
|
friend |
insert operator
|
private |
The role of the metab, logically. This may be used for automatic layout
Referenced by getFunctionalRole(), and setFunctionalRole().
|
private |
Key of a CLMetabGlyph.
Referenced by CLMetabReferenceGlyph(), getMetabGlyph(), getMetabGlyphKey(), operator=(), and setMetabGlyphKey().
|
private |
The role of the metab, as used for rendering, this is also used in SBML
Referenced by exportToSBML(), getRole(), getRoleDisplayName(), operator=(), and setRole().
|
static |
String literals for the GUI to display the role of a metab reference
Referenced by getRoleDisplayName().
|
static |
XML type names of the roles. This is used in the XML importer and exporter
Referenced by MetaboliteReferenceGlyphHandler::processStart(), and CCopasiXML::saveLayoutList().