COPASI API  4.16.103
Macros | Functions
CLReactionGlyph.cpp File Reference
#include <sbml/packages/layout/sbml/ReactionGlyph.h>
#include <sbml/packages/layout/sbml/SpeciesReferenceGlyph.h>
#include "copasi.h"
#include "CLReactionGlyph.h"
#include "report/CKeyFactory.h"
#include "copasi/report/CCopasiRootContainer.h"
Include dependency graph for CLReactionGlyph.cpp:

Go to the source code of this file.

Macros

#define USE_LAYOUT   1
 

Functions

std::ostream & operator<< (std::ostream &os, const CLGlyphWithCurve &g)
 
std::ostream & operator<< (std::ostream &os, const CLReferenceGlyph &g)
 
std::ostream & operator<< (std::ostream &os, const CLMetabReferenceGlyph &g)
 
std::ostream & operator<< (std::ostream &os, const CLGeneralGlyph &g)
 
std::ostream & operator<< (std::ostream &os, const CLReactionGlyph &g)
 

Macro Definition Documentation

#define USE_LAYOUT   1

Definition at line 17 of file CLReactionGlyph.cpp.

Function Documentation

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

insert operator

Definition at line 94 of file CLReactionGlyph.cpp.

References CLGlyphWithCurve::mCurve.

95 {
96  //TODO: bounding box?
97  os << g.mCurve;
98 
99  return os;
100 }
std::ostream& operator<< ( std::ostream &  os,
const CLReferenceGlyph g 
)

insert operator

Definition at line 210 of file CLReactionGlyph.cpp.

References CLGraphicalObject::getModelObjectDisplayName(), CLReferenceGlyph::getTargetGlyph(), and CLGlyphWithCurve::mCurve.

211 {
212  os << " ReferenceGlyph: " << dynamic_cast<const CLGraphicalObject&>(g);
213 
214  const CLGraphicalObject* tmp = g.getTargetGlyph();
215 
216  if (tmp)
217  os << " refers to a Glyph that refers to "
218  << tmp->getModelObjectDisplayName() << std::endl;
219 
220  os << g.mCurve; //TODO refer to base class?
221 
222  return os;
223 }
std::string getModelObjectDisplayName(bool regular=true, bool richtext=false) const
CLGraphicalObject * getTargetGlyph() const
std::ostream& operator<< ( std::ostream &  os,
const CLMetabReferenceGlyph g 
)

insert operator

Definition at line 362 of file CLReactionGlyph.cpp.

References CLMetabReferenceGlyph::getMetabGlyph(), CLGraphicalObject::getModelObjectDisplayName(), CLMetabReferenceGlyph::getRole(), and CLGlyphWithCurve::mCurve.

363 {
364  os << " MetabReferenceGlyph: " << dynamic_cast<const CLGraphicalObject&>(g);
365 
366  os << " Role: " << CLMetabReferenceGlyph::RoleName[g.getRole()] << "\n";
367 
368  const CLMetabGlyph* tmp = g.getMetabGlyph();
369 
370  if (tmp)
371  os << " refers to a MetabGlyph that refers to "
372  << tmp->getModelObjectDisplayName() << std::endl;
373 
374  os << g.mCurve;
375 
376  return os;
377 }
std::string getModelObjectDisplayName(bool regular=true, bool richtext=false) const
static const std::string RoleName[]
CLMetabGlyph * getMetabGlyph() const
std::ostream& operator<< ( std::ostream &  os,
const CLGeneralGlyph g 
)

insert operator

Definition at line 641 of file CLReactionGlyph.cpp.

References CLGlyphWithCurve::mCurve, CLGeneralGlyph::mvReferences, CLGeneralGlyph::mvSubglyphs, and CCopasiVector< T >::size().

642 {
643  os << "GeneralGlyph: " << dynamic_cast<const CLGraphicalObject&>(g);
644  os << g.mCurve;
645 
646  size_t i, imax = g.mvReferences.size();
647 
648  if (imax)
649  {
650  os << " List of reference glyphs: \n";
651 
652  for (i = 0; i < imax; ++i)
653  os << *g.mvReferences[i];
654  }
655 
656  imax = g.mvSubglyphs.size();
657 
658  if (imax)
659  {
660  os << " List of reference glyphs: \n";
661 
662  for (i = 0; i < imax; ++i)
663  os << *g.mvSubglyphs[i];
664  }
665 
666  return os;
667 }
virtual size_t size() const
CCopasiVector< CLReferenceGlyph > mvReferences
CCopasiVector< CLGraphicalObject > mvSubglyphs
std::ostream& operator<< ( std::ostream &  os,
const CLReactionGlyph g 
)

insert operator

Definition at line 824 of file CLReactionGlyph.cpp.

References CLGlyphWithCurve::mCurve, CLReactionGlyph::mvMetabReferences, and CCopasiVector< T >::size().

825 {
826  os << "ReactionGlyph: " << dynamic_cast<const CLGraphicalObject&>(g);
827  os << g.mCurve;
828 
829  size_t i, imax = g.mvMetabReferences.size();
830 
831  if (imax)
832  {
833  os << " List of metab reference glyphs: \n";
834 
835  for (i = 0; i < imax; ++i)
836  os << *g.mvMetabReferences[i];
837  }
838 
839  return os;
840 }
virtual size_t size() const
CCopasiVector< CLMetabReferenceGlyph > mvMetabReferences