COPASI API  4.16.103
Public Member Functions | Protected Attributes | Friends | List of all members
CLGraphicalObject Class Reference

#include <CLGraphicalObject.h>

Inheritance diagram for CLGraphicalObject:
Inheritance graph
[legend]
Collaboration diagram for CLGraphicalObject:
Collaboration graph
[legend]

Public Member Functions

 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 CLGraphicalObjectclone () const
 
virtual void exportToSBML (GraphicalObject *sbmlobject, const std::map< const CCopasiObject *, SBase * > &copasimodelmap, std::map< std::string, const SBase * > &sbmlIDs) const
 
const CLBoundingBoxgetBoundingBox () const
 
CLBoundingBoxgetBoundingBox ()
 
const CLDimensionsgetDimensions () const
 
const C_FLOAT64getHeight () const
 
virtual const std::string & getKey () const
 
CCopasiObjectgetModelObject () 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
 
virtual void moveBy (const CLPoint &p)
 
CLGraphicalObjectoperator= (const CLGraphicalObject &rhs)
 
void print (std::ostream *ostream) const
 
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 CCopasiContainer
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 CObjectInterfacegetObject (const CCopasiObjectName &cn) const
 
virtual const objectMapgetObjects () const
 
virtual std::string getUnits () const
 
virtual const CCopasiObjectgetValueObject () const
 
virtual bool remove (CCopasiObject *pObject)
 
virtual ~CCopasiContainer ()
 
- Public Member Functions inherited from CCopasiObject
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 DataObjectSetgetDirectDependencies (const DataObjectSet &context=DataObjectSet()) const
 
CCopasiContainergetObjectAncestor (const std::string &type) const
 
CCopasiDataModelgetObjectDataModel ()
 
const CCopasiDataModelgetObjectDataModel () const
 
virtual std::string getObjectDisplayName (bool regular=true, bool richtext=false) const
 
const std::string & getObjectName () const
 
CCopasiContainergetObjectParent () const
 
const std::string & getObjectType () const
 
virtual const
CObjectInterface::ObjectSet
getPrerequisites () const
 
virtual RefreshgetRefresh () const
 
UpdateMethodgetUpdateMethod () const
 
virtual voidgetValuePointer () 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 ()
 
- Public Member Functions inherited from CObjectInterface
 CObjectInterface ()
 
virtual ~CObjectInterface ()
 

Protected Attributes

CLBoundingBox mBBox
 
std::string mKey
 
std::string mModelObjectKey
 
std::string mObjectRole
 
- Protected Attributes inherited from CLBase
std::string mTag
 
- Protected Attributes inherited from CCopasiContainer
objectMap mObjects
 

Friends

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

Additional Inherited Members

- Public Types inherited from CCopasiContainer
typedef std::multimap
< std::string, CCopasiObject * > 
objectMap
 
- Public Types inherited from CCopasiObject
typedef std::set< const
CCopasiObject * > 
DataObjectSet
 
typedef std::vector< Refresh * > DataUpdateSequence
 
- Public Types inherited from CObjectInterface
typedef std::set< const
CObjectInterface * > 
ObjectSet
 
typedef std::vector
< CObjectInterface * > 
UpdateSequence
 
- Static Public Member Functions inherited from CCopasiObject
static std::vector< Refresh * > buildUpdateSequence (const DataObjectSet &objects, const DataObjectSet &uptoDateObjects, const DataObjectSet &context=DataObjectSet())
 
static void setRenameHandler (CRenameHandler *rh)
 
- Static Public Attributes inherited from CCopasiContainer
static const std::vector
< CCopasiContainer * > 
EmptyList
 
- Protected Types inherited from CCopasiObject
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
}
 
- Protected Member Functions inherited from CCopasiContainer
template<class CType >
CCopasiObjectaddMatrixReference (const std::string &name, CType &reference, const unsigned C_INT32 &flag=0)
 
template<class CType >
CCopasiObjectaddObjectReference (const std::string &name, CType &reference, const unsigned C_INT32 &flag=0)
 
template<class CType >
CCopasiObjectaddVectorReference (const std::string &name, CType &reference, const unsigned C_INT32 &flag=0)
 
void initObjects ()
 
- Protected Member Functions inherited from CCopasiObject
 CCopasiObject ()
 
 CCopasiObject (const std::string &name, const CCopasiContainer *pParent=NULL, const std::string &type="CN", const unsigned C_INT32 &flag=0)
 
- Static Protected Attributes inherited from CCopasiObject
static CRenameHandlersmpRenameHandler = NULL
 

Detailed Description

This is the base class for the layout objects in copasi. It is a CCopasiObject. It also has a key (which is used if one layout object refers to another one) It provides the mechanism for refering to a copasi model object by key. This needs to be specialized in the derived classes

Definition at line 33 of file CLGraphicalObject.h.

Constructor & Destructor Documentation

CLGraphicalObject::CLGraphicalObject ( const std::string &  name = "GraphicalObject",
const CCopasiContainer pParent = NULL 
)

Definition at line 27 of file CLGraphicalObject.cpp.

Referenced by clone().

29  : CLBase(),
30  CCopasiContainer(name, pParent, "LayoutElement"),
31  mKey(CCopasiRootContainer::getKeyFactory()->add("Layout", this)),
32  mModelObjectKey(""),
33  mObjectRole(""),
34  mBBox()
35 {};
std::string mModelObjectKey
CLBase()
Definition: CLBase.h:36
std::string mObjectRole
CLBoundingBox mBBox
static CKeyFactory * getKeyFactory()
virtual bool add(CCopasiObject *pObject, const bool &adopt=true)
CLGraphicalObject::CLGraphicalObject ( const CLGraphicalObject src,
const CCopasiContainer pParent = NULL 
)

Definition at line 37 of file CLGraphicalObject.cpp.

39  : CLBase(src),
40  CCopasiContainer(src, pParent),
41  mKey(CCopasiRootContainer::getKeyFactory()->add("Layout", this)),
44  mBBox(src.mBBox)
45 {};
std::string mModelObjectKey
CLBase()
Definition: CLBase.h:36
std::string mObjectRole
CLBoundingBox mBBox
static CKeyFactory * getKeyFactory()
virtual bool add(CCopasiObject *pObject, const bool &adopt=true)
CLGraphicalObject::CLGraphicalObject ( const GraphicalObject &  sbml,
std::map< std::string, std::string > &  layoutmap,
const CCopasiContainer pParent = NULL 
)

constructor from libsbml object

Definition at line 47 of file CLGraphicalObject.cpp.

References mKey, and mObjectRole.

50  : CLBase(sbml),
51  CCopasiContainer(sbml.getId(), pParent, "LayoutElement"),
52  mKey(CCopasiRootContainer::getKeyFactory()->add("Layout", this)),
53  mModelObjectKey(""),
54  mBBox(*sbml.getBoundingBox())
55 {
56  RenderGraphicalObjectPlugin* rgoPlugin = (RenderGraphicalObjectPlugin*) sbml.getPlugin("render");
57 
58  if (rgoPlugin != NULL)
59  mObjectRole = rgoPlugin->getObjectRole();
60 
61  //add the copasi key to the map
62  layoutmap[sbml.getId()] = mKey;
63 };
std::string mModelObjectKey
CLBase()
Definition: CLBase.h:36
std::string mObjectRole
CLBoundingBox mBBox
std::string add(const std::string &prefix, CCopasiObject *pObject)
static CKeyFactory * getKeyFactory()
CLGraphicalObject::~CLGraphicalObject ( )

Definition at line 65 of file CLGraphicalObject.cpp.

References CCopasiRootContainer::getKeyFactory(), mKey, and CKeyFactory::remove().

66 {
68 }
bool remove(const std::string &key)
static CKeyFactory * getKeyFactory()

Member Function Documentation

virtual CLGraphicalObject* CLGraphicalObject::clone ( ) const
inlinevirtual

Reimplemented in CLReactionGlyph, CLGeneralGlyph, CLMetabReferenceGlyph, CLTextGlyph, CLReferenceGlyph, CLCompartmentGlyph, and CLMetabGlyph.

Definition at line 82 of file CLGraphicalObject.h.

References CLGraphicalObject().

82 {return new CLGraphicalObject(*this, NULL);};
CLGraphicalObject(const std::string &name="GraphicalObject", const CCopasiContainer *pParent=NULL)
void CLGraphicalObject::exportToSBML ( GraphicalObject *  sbmlobject,
const std::map< const CCopasiObject *, SBase * > &  copasimodelmap,
std::map< std::string, const SBase * > &  sbmlIDs 
) const
virtual

This method writes the information of the copasi layout object into the corresponding sbml object

Definition at line 133 of file CLGraphicalObject.cpp.

References CSBMLExporter::createUniqueId(), CLBoundingBox::getSBMLBoundingBox(), mBBox, and mObjectRole.

Referenced by CLMetabGlyph::exportToSBML(), CLCompartmentGlyph::exportToSBML(), CLTextGlyph::exportToSBML(), CLMetabReferenceGlyph::exportToSBML(), CLGeneralGlyph::exportToSBML(), and CLReactionGlyph::exportToSBML().

136 {
137  if (!sbmlobject) return;
138 
139  //Name and ID
140  std::string id = CSBMLExporter::createUniqueId(sbmlIDs, "layout_glyph", true);
141  sbmlobject->setId(id);
142  sbmlIDs.insert(std::pair<const std::string, const SBase*>(id, sbmlobject));
143 
144  //Bounding box
145  BoundingBox tmpbox = mBBox.getSBMLBoundingBox();
146  sbmlobject->setBoundingBox(&tmpbox);
147 
148  if (this->mObjectRole.find_first_not_of(" \t\r\n") != std::string::npos)
149  {
150  RenderGraphicalObjectPlugin* rgoPlugin = (RenderGraphicalObjectPlugin*) sbmlobject->getPlugin("render");
151 
152  if (rgoPlugin != NULL)
153  rgoPlugin->setObjectRole(this->mObjectRole);
154  }
155 }
static const std::string createUniqueId(const std::map< std::string, const SBase * > &idMap, const std::string &prefix, bool addIndexForFirst, const std::string &separator="_")
std::string mObjectRole
CLBoundingBox mBBox
BoundingBox getSBMLBoundingBox() const
Definition: CLBase.cpp:60
const CLBoundingBox& CLGraphicalObject::getBoundingBox ( ) const
inline
CLBoundingBox& CLGraphicalObject::getBoundingBox ( )
inline

Definition at line 87 of file CLGraphicalObject.h.

References mBBox.

87 {return mBBox;};
CLBoundingBox mBBox
const CLDimensions& CLGraphicalObject::getDimensions ( ) const
inline

Definition at line 99 of file CLGraphicalObject.h.

References CLBoundingBox::getDimensions(), and mBBox.

Referenced by randomlyPlaceGlyphInCompartmentGlyph(), and randomlyPlaceGlyphInDimensions().

99 {return mBBox.getDimensions();};
const CLDimensions & getDimensions() const
Definition: CLBase.h:266
CLBoundingBox mBBox
const C_FLOAT64& CLGraphicalObject::getHeight ( ) const
inline
virtual const std::string& CLGraphicalObject::getKey ( ) const
inlinevirtual
CCopasiObject * CLGraphicalObject::getModelObject ( ) const

Definition at line 89 of file CLGraphicalObject.cpp.

References CKeyFactory::get(), CCopasiRootContainer::getKeyFactory(), hasValidModelReference(), and mModelObjectKey.

Referenced by CQLayoutScene::addGlyph(), CCopasiSpringLayout::createLayout(), CLLayoutRenderer::draw_layout(), CLMetabGlyph::exportToSBML(), CLCompartmentGlyph::exportToSBML(), CLTextGlyph::exportToSBML(), CLGeneralGlyph::exportToSBML(), CLReactionGlyph::exportToSBML(), getModelObjectDisplayName(), getModelObjectName(), moveObject(), and CCopasiSpringLayout::randomize().

90 {
91  CCopasiObject* pObject = NULL;
92 
93  // as an additional safeguard, we check
94  // if the object is in the same datamodel
95  // This is not foolproof, but should work in most cases.
96  if (this->hasValidModelReference())
97  {
99  }
100 
101  return pObject;
102 }
std::string mModelObjectKey
CCopasiObject * get(const std::string &key)
static CKeyFactory * getKeyFactory()
bool hasValidModelReference() const
std::string CLGraphicalObject::getModelObjectDisplayName ( bool  regular = true,
bool  richtext = false 
) const

if the graphical object refers to a model object this method will return the display name of that object.

Definition at line 119 of file CLGraphicalObject.cpp.

References getModelObject(), and CCopasiObject::getObjectName().

Referenced by CLTextGlyph::getText(), and operator<<().

120 {
121  CCopasiObject * tmp = getModelObject();
122 
123  if (tmp)
124  {
125  return tmp->getObjectName();
126  }
127  else
128  {
129  return "";
130  }
131 }
const std::string & getObjectName() const
CCopasiObject * getModelObject() const
const std::string& CLGraphicalObject::getModelObjectKey ( ) const
inline
std::string CLGraphicalObject::getModelObjectName ( ) const

if the graphical object refers to a model object this method will return the name of that object.

Definition at line 109 of file CLGraphicalObject.cpp.

References getModelObject(), and CCopasiObject::getObjectName().

110 {
111  CCopasiObject * tmp = getModelObject();
112 
113  if (tmp)
114  return tmp->getObjectName();
115  else
116  return "";
117 }
const std::string & getObjectName() const
CCopasiObject * getModelObject() const
const std::string & CLGraphicalObject::getObjectRole ( ) const

Method to read the object role of an object.

Definition at line 182 of file CLGraphicalObject.cpp.

References mObjectRole.

Referenced by CLRenderResolver::resolveStyle(), CCopasiXML::saveLayoutList(), and CLLayoutRenderer::setDeduceSpeciesReferenceRoles().

183 {
184  return this->mObjectRole;
185 }
std::string mObjectRole
const CLPoint& CLGraphicalObject::getPosition ( ) const
inline
const C_FLOAT64& CLGraphicalObject::getWidth ( ) const
inline
const C_FLOAT64& CLGraphicalObject::getX ( ) const
inline
const C_FLOAT64& CLGraphicalObject::getY ( ) const
inline
bool CLGraphicalObject::hasValidModelReference ( ) const

This method is used for the export of several layout elements. Layout elements can reference model elements, but when a referenced model element is deleted, the layout is not infomred about this yet, so we end up with dangling references. If the key belongs to an object in the same datamodel, true is returned, else false is returned.

This method is used for the export of several layout elements. Layout elements can reference model elements, but when a referenced model element is deleted, the layout is not infomred about this yet, so we end up with dnagling references. In order to not write these dangling references to file, we check if the reference belongs to a valid object in the same datamodel. If not, we issue a warning. This warning is only issued once during a save process.

If the key belongs to an object in the same datamodel, true is returned, else false is returned.

Definition at line 198 of file CLGraphicalObject.cpp.

References CKeyFactory::get(), CCopasiRootContainer::getKeyFactory(), CCopasiObject::getObjectParent(), and mModelObjectKey.

Referenced by getModelObject(), and CCopasiXML::saveLayoutList().

199 {
200  bool result = false;
201  // check if the object for this key actually exists
202  // TODO This is only a workaround because it is theoretically
203  // TODO possible that the key no longer belongs to the same object it
204  // TODO originally did.
206 
207  if (pObj != NULL)
208  {
209  // check if the object actually belongs to the same
210  // model as the text glyph
211  const CCopasiDataModel* pDM1 = NULL;
212  const CCopasiDataModel* pDM2 = NULL;
213  const CCopasiContainer* pParent = pObj->getObjectParent();
214 
215  while (pParent != NULL)
216  {
217  pDM1 = dynamic_cast<const CCopasiDataModel*>(pParent);
218 
219  if (pDM1 != NULL)
220  {
221  break;
222  }
223 
224  pParent = pParent->getObjectParent();
225  }
226 
227  pParent = this->getObjectParent();
228 
229  while (pParent != NULL)
230  {
231  pDM2 = dynamic_cast<const CCopasiDataModel*>(pParent);
232 
233  if (pDM2 != NULL)
234  {
235  break;
236  }
237 
238  pParent = pParent->getObjectParent();
239  }
240 
241  //assert(pDM2 != NULL);
242  if (pDM1 != NULL && pDM2 == NULL)
243  {
244  // if we have been able to resolve the model reference, but
245  // don't have a datamodel parent, that is good enough
246  return true;
247  }
248 
249  if (pDM1 != NULL && pDM1 == pDM2)
250  {
251  result = true;
252  }
253  }
254 
255  return result;
256 }
std::string mModelObjectKey
CCopasiObject * get(const std::string &key)
static CKeyFactory * getKeyFactory()
CCopasiContainer * getObjectParent() const
void CLGraphicalObject::moveBy ( const CLPoint p)
virtual

Reimplemented from CLBase.

Reimplemented in CLReactionGlyph, CLGeneralGlyph, and CLGlyphWithCurve.

Definition at line 104 of file CLGraphicalObject.cpp.

References mBBox, and CLBoundingBox::moveBy().

Referenced by CLGlyphWithCurve::moveBy(), CLayout::moveBy(), and moveObject().

105 {
106  mBBox.moveBy(p);
107 }
virtual void moveBy(const CLPoint &p)
Definition: CLBase.h:275
CLBoundingBox mBBox
CLGraphicalObject & CLGraphicalObject::operator= ( const CLGraphicalObject rhs)

The assignment operator does not copy the key.

Definition at line 70 of file CLGraphicalObject.cpp.

References CCopasiObject::getObjectName(), mBBox, mModelObjectKey, mObjectRole, and CCopasiObject::setObjectName().

Referenced by CLMetabGlyph::operator=(), CLGlyphWithCurve::operator=(), CLCompartmentGlyph::operator=(), and CLTextGlyph::operator=().

71 {
72  if (this == &rhs) return * this; //do nothing if lhs and rhs are the same
73 
74  CLBase::operator=(rhs);
75 
76  //warning: in this place we should call the assignment operator of
77  //CCopasiContainer (which does not exist).
78  //We handle this explicitly instead.
80  //object flag cannot be accessed, it is private.
81 
83  this->mObjectRole = rhs.mObjectRole;
84  mBBox = rhs.mBBox;
85 
86  return *this;
87 }
std::string mModelObjectKey
const std::string & getObjectName() const
std::string mObjectRole
CLBoundingBox mBBox
bool setObjectName(const std::string &name)
void CLGraphicalObject::print ( std::ostream *  ostream) const
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.

Parameters
std::ostream* ostream

Reimplemented from CCopasiObject.

Reimplemented in CLReactionGlyph, CLGeneralGlyph, CLMetabReferenceGlyph, CLReferenceGlyph, and CLGlyphWithCurve.

Definition at line 168 of file CLGraphicalObject.cpp.

169 {*ostream << *this;}
void CLGraphicalObject::setBoundingBox ( const CLBoundingBox bb)
inline

Definition at line 88 of file CLGraphicalObject.h.

References mBBox.

Referenced by test000097::createModel().

88 {mBBox = bb;};
CLBoundingBox mBBox
void CLGraphicalObject::setDimensions ( const CLDimensions d)
inline

Definition at line 100 of file CLGraphicalObject.h.

References mBBox, and CLBoundingBox::setDimensions().

Referenced by CCopasiSpringLayout::createLayout().

100 {mBBox.setDimensions(d);};
void setDimensions(const CLDimensions &d)
Definition: CLBase.h:273
CLBoundingBox mBBox
void CLGraphicalObject::setHeight ( const C_FLOAT64 h)
inline
void CLGraphicalObject::setModelObjectKey ( const std::string &  k)
inline
void CLGraphicalObject::setObjectRole ( const std::string &  role)
void CLGraphicalObject::setPosition ( const CLPoint p)
inline
void CLGraphicalObject::setWidth ( const C_FLOAT64 w)
inline
void CLGraphicalObject::setX ( const C_FLOAT64 x)
inline
void CLGraphicalObject::setY ( const C_FLOAT64 y)
inline

Friends And Related Function Documentation

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

insert operator

Definition at line 157 of file CLGraphicalObject.cpp.

158 {
159  os << "GraphicalObject \"" << g.getObjectName() << "\" " << g.mBBox << std::endl;
160  std::string tmp = g.getModelObjectDisplayName();
161 
162  if (tmp != "")
163  os << " refers to " << tmp << std::endl;
164 
165  return os;
166 }
std::string getModelObjectDisplayName(bool regular=true, bool richtext=false) const
const std::string & getObjectName() const
CLBoundingBox mBBox

Member Data Documentation

CLBoundingBox CLGraphicalObject::mBBox
protected
std::string CLGraphicalObject::mKey
protected

The key of the layout object itself

Definition at line 40 of file CLGraphicalObject.h.

Referenced by CLGraphicalObject(), getKey(), and ~CLGraphicalObject().

std::string CLGraphicalObject::mModelObjectKey
protected

The key of an object of the COPASI model. This is not used in this base class. It is provided as a service for the derived classes

Definition at line 47 of file CLGraphicalObject.h.

Referenced by getModelObject(), getModelObjectKey(), CLabel::getText(), hasValidModelReference(), operator=(), and setModelObjectKey().

std::string CLGraphicalObject::mObjectRole
protected

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