COPASI API
4.16.103
|
#include <CLReactionGlyph.h>
Public Member Functions | |
void | addReferenceGlyph (CLReferenceGlyph *glyph) |
void | addSubglyph (CLGraphicalObject *glyph) |
CLGeneralGlyph (const std::string &name="GeneralGlyph", const CCopasiContainer *pParent=NULL) | |
CLGeneralGlyph (const CLGeneralGlyph &src, const CCopasiContainer *pParent=NULL) | |
CLGeneralGlyph (const GraphicalObject &sbml, const std::map< std::string, std::string > &modelmap, std::map< std::string, std::string > &layoutmap, const CCopasiContainer *pParent=NULL) | |
virtual CLGraphicalObject * | clone () const |
virtual void | exportToSBML (GraphicalObject *g, const std::map< const CCopasiObject *, SBase * > &copasimodelmap, std::map< std::string, const SBase * > &sbmlIDs, std::map< const CLBase *, const SBase * > &layoutmap) const |
const CCopasiVector < CLReferenceGlyph > & | getListOfReferenceGlyphs () const |
CCopasiVector< CLReferenceGlyph > & | getListOfReferenceGlyphs () |
const CCopasiVector < CLGraphicalObject > & | getListOfSubglyphs () const |
CCopasiVector < CLGraphicalObject > & | getListOfSubglyphs () |
virtual void | moveBy (const CLPoint &p) |
CLGeneralGlyph & | operator= (const CLGeneralGlyph &rhs) |
void | print (std::ostream *ostream) const |
![]() | |
CLGlyphWithCurve (const std::string &name="ReferenceGlyph", const CCopasiContainer *pParent=NULL) | |
CLGlyphWithCurve (const CLGlyphWithCurve &src, const CCopasiContainer *pParent=NULL) | |
CLGlyphWithCurve (const GraphicalObject &sbml, const std::map< std::string, std::string > &modelmap, std::map< std::string, std::string > &layoutmap, const CCopasiContainer *pParent=NULL) | |
const CLCurve & | getCurve () const |
CLCurve & | getCurve () |
CLGlyphWithCurve & | operator= (const CLGlyphWithCurve &rhs) |
void | setCurve (const CLCurve &c) |
![]() | |
CLGraphicalObject (const std::string &name="GraphicalObject", const CCopasiContainer *pParent=NULL) | |
CLGraphicalObject (const CLGraphicalObject &src, const CCopasiContainer *pParent=NULL) | |
CLGraphicalObject (const GraphicalObject &sbml, std::map< std::string, std::string > &layoutmap, const CCopasiContainer *pParent=NULL) | |
virtual void | exportToSBML (GraphicalObject *sbmlobject, const std::map< const CCopasiObject *, SBase * > &copasimodelmap, std::map< std::string, const SBase * > &sbmlIDs) const |
const CLBoundingBox & | getBoundingBox () const |
CLBoundingBox & | getBoundingBox () |
const CLDimensions & | getDimensions () const |
const C_FLOAT64 & | getHeight () const |
virtual const std::string & | getKey () const |
CCopasiObject * | 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 () | |
![]() | |
CLBase () | |
CLBase (const CLBase &b) | |
CLBase (const SBase &) | |
const std::string & | getTag () const |
bool | hasTag () const |
void | setTag (const std::string &tag) |
virtual | ~CLBase () |
![]() | |
virtual bool | add (CCopasiObject *pObject, const bool &adopt=true) |
CCopasiContainer (const std::string &name, const CCopasiContainer *pParent=NULL, const std::string &type="CN", const unsigned C_INT32 &flag=CCopasiObject::Container) | |
CCopasiContainer (const CCopasiContainer &src, const CCopasiContainer *pParent=NULL) | |
virtual std::string | getChildObjectUnits (const CCopasiObject *pObject) const |
virtual const CObjectInterface * | getObject (const CCopasiObjectName &cn) const |
virtual const objectMap & | getObjects () const |
virtual std::string | getUnits () const |
virtual const CCopasiObject * | getValueObject () const |
virtual bool | remove (CCopasiObject *pObject) |
virtual | ~CCopasiContainer () |
![]() | |
void | addDirectDependency (const CCopasiObject *pObject) |
CCopasiObject (const CCopasiObject &src, const CCopasiContainer *pParent=NULL) | |
void | clearDirectDependencies () |
void | clearRefresh () |
bool | dependsOn (DataObjectSet candidates, const DataObjectSet &context=DataObjectSet()) const |
void | getAllDependencies (DataObjectSet &dependencies, const DataObjectSet &context) const |
virtual CCopasiObjectName | getCN () const |
virtual const DataObjectSet & | getDirectDependencies (const DataObjectSet &context=DataObjectSet()) const |
CCopasiContainer * | getObjectAncestor (const std::string &type) const |
CCopasiDataModel * | getObjectDataModel () |
const CCopasiDataModel * | getObjectDataModel () const |
virtual std::string | getObjectDisplayName (bool regular=true, bool richtext=false) const |
const std::string & | getObjectName () const |
CCopasiContainer * | getObjectParent () const |
const std::string & | getObjectType () const |
virtual const CObjectInterface::ObjectSet & | getPrerequisites () const |
virtual Refresh * | getRefresh () const |
UpdateMethod * | getUpdateMethod () const |
virtual void * | getValuePointer () const |
bool | hasCircularDependencies (DataObjectSet &candidates, DataObjectSet &verified, const DataObjectSet &context) const |
bool | hasUpdateMethod () const |
bool | isArray () const |
bool | isContainer () const |
bool | isDataModel () const |
bool | isMatrix () const |
bool | isNameVector () const |
bool | isNonUniqueName () const |
virtual bool | isPrerequisiteForContext (const CObjectInterface *pObject, const CMath::SimulationContextFlag &context, const CObjectInterface::ObjectSet &changedObjects) const |
bool | isReference () const |
bool | isRoot () const |
bool | isSeparator () const |
bool | isStaticString () const |
bool | isValueBool () const |
bool | isValueDbl () const |
bool | isValueInt () const |
bool | isValueInt64 () const |
bool | isValueString () const |
bool | isVector () const |
virtual bool | mustBeDeleted (const DataObjectSet &deletedObjects) const |
void | removeDirectDependency (const CCopasiObject *pObject) |
void | setDirectDependencies (const DataObjectSet &directDependencies) |
bool | setObjectName (const std::string &name) |
virtual bool | setObjectParent (const CCopasiContainer *pParent) |
void | setObjectValue (const C_FLOAT64 &value) |
void | setObjectValue (const C_INT32 &value) |
void | setObjectValue (const bool &value) |
template<class CType > | |
void | setRefresh (CType *pType, void(CType::*method)(void)) |
template<class CType > | |
void | setUpdateMethod (CType *pType, void(CType::*method)(const C_FLOAT64 &)) |
template<class CType > | |
void | setUpdateMethod (CType *pType, void(CType::*method)(const C_INT32 &)) |
template<class CType > | |
void | setUpdateMethod (CType *pType, void(CType::*method)(const bool &)) |
virtual | ~CCopasiObject () |
![]() | |
CObjectInterface () | |
virtual | ~CObjectInterface () |
Protected Attributes | |
CCopasiVector< CLReferenceGlyph > | mvReferences |
CCopasiVector< CLGraphicalObject > | mvSubglyphs |
![]() | |
CLCurve | mCurve |
![]() | |
CLBoundingBox | mBBox |
std::string | mKey |
std::string | mModelObjectKey |
std::string | mObjectRole |
![]() | |
std::string | mTag |
![]() | |
objectMap | mObjects |
Friends | |
std::ostream & | operator<< (std::ostream &os, const CLGeneralGlyph &g) |
Additional Inherited Members | |
![]() | |
typedef std::multimap < std::string, CCopasiObject * > | objectMap |
![]() | |
typedef std::set< const CCopasiObject * > | DataObjectSet |
typedef std::vector< Refresh * > | DataUpdateSequence |
![]() | |
typedef std::set< const CObjectInterface * > | ObjectSet |
typedef std::vector < CObjectInterface * > | UpdateSequence |
![]() | |
static std::vector< Refresh * > | buildUpdateSequence (const DataObjectSet &objects, const DataObjectSet &uptoDateObjects, const DataObjectSet &context=DataObjectSet()) |
static void | setRenameHandler (CRenameHandler *rh) |
![]() | |
static const std::vector < CCopasiContainer * > | EmptyList |
![]() | |
enum | Flag { Container = 0x1, Vector = 0x2, Matrix = 0x4, NameVector = 0x8, Reference = 0x10, ValueBool = 0x20, ValueInt = 0x40, ValueInt64 = 0x80, ValueDbl = 0x100, NonUniqueName = 0x200, StaticString = 0x400, ValueString = 0x800, Separator = 0x1000, ModelEntity = 0x2000, Array = 0x4000, DataModel = 0x8000, Root = 0x10000, Gui = 0x20000 } |
![]() | |
template<class CType > | |
CCopasiObject * | addMatrixReference (const std::string &name, CType &reference, const unsigned C_INT32 &flag=0) |
template<class CType > | |
CCopasiObject * | addObjectReference (const std::string &name, CType &reference, const unsigned C_INT32 &flag=0) |
template<class CType > | |
CCopasiObject * | addVectorReference (const std::string &name, CType &reference, const unsigned C_INT32 &flag=0) |
void | initObjects () |
![]() | |
CCopasiObject () | |
CCopasiObject (const std::string &name, const CCopasiContainer *pParent=NULL, const std::string &type="CN", const unsigned C_INT32 &flag=0) | |
![]() | |
static CRenameHandler * | smpRenameHandler = NULL |
general glyph
Definition at line 235 of file CLReactionGlyph.h.
CLGeneralGlyph::CLGeneralGlyph | ( | const std::string & | name = "GeneralGlyph" , |
const CCopasiContainer * | pParent = NULL |
||
) |
Definition at line 384 of file CLReactionGlyph.cpp.
Referenced by CLGeneralGlyph(), and clone().
CLGeneralGlyph::CLGeneralGlyph | ( | const CLGeneralGlyph & | src, |
const CCopasiContainer * | pParent = NULL |
||
) |
Definition at line 391 of file CLReactionGlyph.cpp.
References addSubglyph(), mvSubglyphs, and CCopasiVector< T >::size().
CLGeneralGlyph::CLGeneralGlyph | ( | const GraphicalObject & | sbml, |
const std::map< std::string, std::string > & | modelmap, | ||
std::map< std::string, std::string > & | layoutmap, | ||
const CCopasiContainer * | pParent = NULL |
||
) |
constructor from libsbml object
Definition at line 404 of file CLReactionGlyph.cpp.
References addReferenceGlyph(), addSubglyph(), C_INT32, CLGeneralGlyph(), and CLGraphicalObject::setModelObjectKey().
void CLGeneralGlyph::addReferenceGlyph | ( | CLReferenceGlyph * | glyph | ) |
add Glyph to general glyph. The general glyph takes ownership of the glyph.
Definition at line 497 of file CLReactionGlyph.cpp.
References CCopasiVector< T >::add(), and mvReferences.
Referenced by CLGeneralGlyph(), CCopasiSpringLayout::createLayout(), and operator=().
void CLGeneralGlyph::addSubglyph | ( | CLGraphicalObject * | glyph | ) |
add sub glyph to general glyph. The general glyph takes ownership of the glyph.
Definition at line 491 of file CLReactionGlyph.cpp.
References CCopasiVector< T >::add(), and mvSubglyphs.
Referenced by CLGeneralGlyph(), and operator=().
|
inlinevirtual |
Reimplemented from CLGraphicalObject.
Definition at line 291 of file CLReactionGlyph.h.
References CLGeneralGlyph().
|
virtual |
this exports the general glyph to a generic SBML GraphicalObject (throwing away most of the information) This should be removed once libsbml supports general glyphs.
Definition at line 518 of file CLReactionGlyph.cpp.
References CLMetabGlyph::exportToSBML(), CLCompartmentGlyph::exportToSBML(), CLGraphicalObject::exportToSBML(), CLTextGlyph::exportToSBML(), CLCurve::exportToSBML(), exportToSBML(), CLGraphicalObject::getModelObject(), CLGlyphWithCurve::mCurve, mvReferences, mvSubglyphs, and CCopasiVector< T >::size().
Referenced by CLayout::exportToSBML(), and exportToSBML().
|
inline |
Definition at line 267 of file CLReactionGlyph.h.
References mvReferences.
Referenced by CLayout::calculateBoundingBox(), CLayout::CLayout(), CQConnectionGraphicsItem::CQConnectionGraphicsItem(), CLayout::exportToSBML(), CCopasiSpringLayout::finalizeState(), CLLayoutRenderer::getObjectsAt(), CLLayoutRenderer::getObjectsInBoundingBox(), and CCopasiSpringLayout::getPotential().
|
inline |
Definition at line 270 of file CLReactionGlyph.h.
References mvReferences.
|
inline |
Definition at line 273 of file CLReactionGlyph.h.
References mvSubglyphs.
Referenced by CQLayoutScene::addGlyph(), CLayout::CLayout(), and CLLayoutRenderer::getObjectsInBoundingBox().
|
inline |
Definition at line 276 of file CLReactionGlyph.h.
References mvSubglyphs.
Reimplemented from CLGlyphWithCurve.
Definition at line 503 of file CLReactionGlyph.cpp.
References CLGlyphWithCurve::moveBy(), mvReferences, mvSubglyphs, and CCopasiVector< T >::size().
CLGeneralGlyph & CLGeneralGlyph::operator= | ( | const CLGeneralGlyph & | rhs | ) |
assignment operator. makes a deep copy
Definition at line 467 of file CLReactionGlyph.cpp.
References addReferenceGlyph(), addSubglyph(), CCopasiVector< T >::clear(), mvReferences, mvSubglyphs, CLGlyphWithCurve::operator=(), and CCopasiVector< T >::size().
|
virtual |
This is the output method for any object. The default implementation provided with CCopasiObject 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.
Definition at line 669 of file CLReactionGlyph.cpp.
|
friend |
insert operator
Definition at line 641 of file CLReactionGlyph.cpp.
|
protected |
Definition at line 238 of file CLReactionGlyph.h.
Referenced by addReferenceGlyph(), exportToSBML(), getListOfReferenceGlyphs(), moveBy(), operator<<(), and operator=().
|
protected |
Definition at line 239 of file CLReactionGlyph.h.
Referenced by addSubglyph(), CLGeneralGlyph(), exportToSBML(), getListOfSubglyphs(), moveBy(), operator<<(), and operator=().