COPASI API  4.40.278
CLGeneralGlyph Class Reference

#include <CLReactionGlyph.h>

Inheritance diagram for CLGeneralGlyph:
[legend]

Public Member Functions

void addReferenceGlyph (CLReferenceGlyph *glyph)
 
void addSubglyph (CLGraphicalObject *glyph)
 
virtual bool applyData (const CData &data, CUndoData::CChangeSet &changes)
 
 CLGeneralGlyph (const CLGeneralGlyph &src, const CDataContainer *pParent)
 
 CLGeneralGlyph (const GraphicalObject &sbml, const std::map< std::string, std::string > &modelmap, std::map< std::string, std::string > &layoutmap, const CDataContainer *pParent=NO_PARENT)
 
 CLGeneralGlyph (const std::string &name="GeneralGlyph", const CDataContainer *pParent=NO_PARENT)
 
virtual CLGraphicalObjectclone () const
 
virtual void exportToSBML (GraphicalObject *g, const std::map< const CDataObject *, SBase * > &copasimodelmap, std::map< std::string, const SBase * > &sbmlIDs, std::map< const CLBase *, const SBase * > &layoutmap) const
 
CDataVector< CLReferenceGlyph > & getListOfReferenceGlyphs ()
 
const CDataVector< CLReferenceGlyph > & getListOfReferenceGlyphs () const
 
CDataVector< CLGraphicalObject > & getListOfSubglyphs ()
 
const CDataVector< CLGraphicalObject > & getListOfSubglyphs () const
 
virtual void moveBy (const CLPoint &p)
 
CLGeneralGlyphoperator= (const CLGeneralGlyph &rhs)
 
void print (std::ostream *ostream) const
 
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)
 
CLCurvegetCurve ()
 
const CLCurvegetCurve () const
 
CLGlyphWithCurveoperator= (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
 
CLBoundingBoxgetBoundingBox ()
 
const CLBoundingBoxgetBoundingBox () const
 
const CLDimensionsgetDimensions () const
 
const C_FLOAT64getHeight () const
 
virtual const std::string & getKey () const
 
CDataObjectgetModelObject () 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 CLPointgetPosition () const
 
const C_FLOAT64getWidth () const
 
const C_FLOAT64getX () const
 
const C_FLOAT64getY () const
 
bool hasValidModelReference () const
 
CLGraphicalObjectoperator= (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 CObjectInterfacegetObject (const CCommonName &cn) const override
 
virtual objectMapgetObjects ()
 
virtual const objectMapgetObjects () const
 
virtual const std::string getUnits () const override
 
virtual const CDataObjectgetValueObject () const override
 
virtual CUndoObjectInterfaceinsert (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 CDataObjectgetDataObject () const override
 
CDataContainergetObjectAncestor (const std::string &type) const
 
CDataModelgetObjectDataModel () const
 
virtual std::string getObjectDisplayName () const override
 
const CObjectInterfacegetObjectFromCN (const CCommonName &cn) const
 
const std::string & getObjectName () const
 
CDataContainergetObjectParent () const
 
const std::string & getObjectType () const
 
virtual const CObjectInterface::ObjectSetgetPrerequisites () const override
 
virtual const CValiditygetValidity () 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 CLGeneralGlyphfromData (const CData &data, CUndoObjectInterface *pParent)
 
- Static Public Member Functions inherited from CLGraphicalObject
static CLGraphicalObjectfromData (const CData &data, CUndoObjectInterface *pParent)
 
- Static Public Member Functions inherited from CDataContainer
static CDataContainerfromData (const CData &data, CUndoObjectInterface *pParent)
 
- Static Public Member Functions inherited from CDataObject
static CDataObjectfromData (const CData &data, CUndoObjectInterface *pParent)
 
static void sanitizeObjectName (std::string &name)
 
- Static Public Member Functions inherited from CObjectInterface
static const CDataObjectDataObject (const CObjectInterface *pInterface)
 
static CObjectInterfaceGetObjectFromCN (const ContainerList &listOfContainer, const CCommonName &objName)
 
- Static Public Member Functions inherited from CUndoObjectInterface
template<class CType >
static CType * fromData (const CData &, CUndoObjectInterface *)
 

Protected Member Functions

 CLGeneralGlyph (const CLGeneralGlyph &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)
 

Protected Attributes

CDataVector< CLReferenceGlyphmvReferences
 
CDataVector< CLGraphicalObjectmvSubglyphs
 
- 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
 

Friends

std::ostream & operator<< (std::ostream &os, const CLGeneralGlyph &g)
 

Additional Inherited Members

- 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
 
- Static Public Attributes inherited from CDataContainer
static const CObjectInterface::ContainerList EmptyList
 

Detailed Description

general glyph

Constructor & Destructor Documentation

◆ CLGeneralGlyph() [1/4]

CLGeneralGlyph::CLGeneralGlyph ( const CLGeneralGlyph src)
protected

Referenced by CLGeneralGlyph(), clone(), and fromData().

◆ CLGeneralGlyph() [2/4]

CLGeneralGlyph::CLGeneralGlyph ( const std::string &  name = "GeneralGlyph",
const CDataContainer pParent = NO_PARENT 
)

◆ CLGeneralGlyph() [3/4]

CLGeneralGlyph::CLGeneralGlyph ( const CLGeneralGlyph src,
const CDataContainer pParent 
)

◆ CLGeneralGlyph() [4/4]

CLGeneralGlyph::CLGeneralGlyph ( const GraphicalObject &  sbml,
const std::map< std::string, std::string > &  modelmap,
std::map< std::string, std::string > &  layoutmap,
const CDataContainer pParent = NO_PARENT 
)

Member Function Documentation

◆ addReferenceGlyph()

void CLGeneralGlyph::addReferenceGlyph ( CLReferenceGlyph glyph)

add Glyph to general glyph. The general glyph takes ownership of the glyph.

References CDataVector< CType >::add(), and mvReferences.

Referenced by CLGeneralGlyph(), CCopasiSpringLayout::createLayout(), and operator=().

◆ addSubglyph()

void CLGeneralGlyph::addSubglyph ( CLGraphicalObject glyph)

add sub glyph to general glyph. The general glyph takes ownership of the glyph.

References CDataVector< CType >::add(), and mvSubglyphs.

Referenced by CLGeneralGlyph(), and operator=().

◆ applyData()

bool CLGeneralGlyph::applyData ( const CData data,
CUndoData::CChangeSet changes 
)
virtual

Apply the provided data to the object

Parameters
constCData & data
Returns
bool success

Reimplemented from CLGraphicalObject.

References fatalError.

◆ clone()

CLGraphicalObject * CLGeneralGlyph::clone ( ) const
virtual

Reimplemented from CLGraphicalObject.

References CLGeneralGlyph().

◆ exportToSBML()

void CLGeneralGlyph::exportToSBML ( GraphicalObject *  g,
const std::map< const CDataObject *, SBase * > &  copasimodelmap,
std::map< std::string, const SBase * > &  sbmlIDs,
std::map< const CLBase *, const SBase * > &  layoutmap 
) const
virtual

◆ fromData()

CLGeneralGlyph * CLGeneralGlyph::fromData ( const CData data,
CUndoObjectInterface pParent 
)
static

Static method to create a CDataObject based on the provided data

Parameters
constCData & data
Returns
CLGeneralGlyph * pDataObject

References CLGeneralGlyph(), CData::getProperty(), NO_PARENT, CData::OBJECT_NAME, and CDataValue::toString().

◆ getListOfReferenceGlyphs() [1/2]

CDataVector< CLReferenceGlyph > & CLGeneralGlyph::getListOfReferenceGlyphs ( )

References mvReferences.

◆ getListOfReferenceGlyphs() [2/2]

◆ getListOfSubglyphs() [1/2]

CDataVector< CLGraphicalObject > & CLGeneralGlyph::getListOfSubglyphs ( )

References mvSubglyphs.

◆ getListOfSubglyphs() [2/2]

const CDataVector< CLGraphicalObject > & CLGeneralGlyph::getListOfSubglyphs ( ) const

◆ moveBy()

void CLGeneralGlyph::moveBy ( const CLPoint p)
virtual

◆ operator=()

◆ print()

void CLGeneralGlyph::print ( std::ostream *  ostream) const
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.

Parameters
std::ostream* ostream

Reimplemented from CLGlyphWithCurve.

◆ toData()

CData CLGeneralGlyph::toData ( ) const
virtual

Retrieve the data describing the object

Returns
CData data

Reimplemented from CLGraphicalObject.

References fatalError.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const CLGeneralGlyph g 
)
friend

insert operator

Member Data Documentation

◆ mvReferences

CDataVector<CLReferenceGlyph> CLGeneralGlyph::mvReferences
protected

◆ mvSubglyphs


The documentation for this class was generated from the following files: