COPASI API  4.16.103
CCompartmentGraphNode.cpp
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/layoutUI/CCompartmentGraphNode.cpp,v $
3 // $Revision: 1.1 $
4 // $Name: $
5 // $Author: gauges $
6 // $Date: 2008/09/15 15:03:13 $
7 // End CVS Header
8 // Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual
9 // Properties, Inc., EML Research, gGmbH, University of Heidelberg,
10 // and The University of Manchester.
11 // All rights reserved.
12 
13 #include "CCompartmentGraphNode.h"
14 
16  const CCopasiContainer * pParent)
17  : CLCompartmentGlyph(name, pParent)
18 {
19  mOrigNodeKey = "";
20  mObjectKey = "";
21 }
22 
24  const CCopasiContainer * pParent)
25  : CLCompartmentGlyph(src, pParent)
26 {
27  mOrigNodeKey = src.getKey();
29 }
30 
32  const CCopasiContainer * pParent)
33  : CLCompartmentGlyph(src, pParent)
34 {
36  mObjectKey = src.mObjectKey;
37 }
38 
39 std::ostream & operator<<(std::ostream &os, const CCompartmentGraphNode & gn)
40 {
41  os << "node key: " << gn.mOrigNodeKey << std::endl;
42  os << "object key: " << gn.mObjectKey << std::endl;
43  os << "bounding box: " << gn.mBBox << std::endl;
44  return os;
45 }
virtual const std::string & getKey() const
std::ostream & operator<<(std::ostream &os, const CCompartmentGraphNode &gn)
CLBoundingBox mBBox
const std::string & getModelObjectKey() const
CCompartmentGraphNode(const CCompartmentGraphNode &src, const CCopasiContainer *pParent=NULL)