copasi API  0.1
Public Member Functions | Friends
CLTextGlyph Class Reference

#include <CLGlyphs.h>

Inheritance diagram for CLTextGlyph:
CLGraphicalObject CLBase CCopasiContainer CCopasiObject CLabel

List of all members.

Public Member Functions

 CLTextGlyph (const std::string &name="TextGlyph", const CCopasiContainer *pParent=NULL)
 CLTextGlyph (const CLTextGlyph &src, const CCopasiContainer *pParent=NULL)
 CLTextGlyph (const TextGlyph &sbml, const std::map< std::string, std::string > &modelmap, std::map< std::string, std::string > &layoutmap, const CCopasiContainer *pParent=NULL)
CLTextGlyphoperator= (const CLTextGlyph &rhs)
std::string getText () const
void setText (const std::string &t)
void clearText ()
bool isTextSet () const
const std::string & getGraphicalObjectKey () const
CLGraphicalObjectgetGraphicalObject () const
void setGraphicalObjectKey (const std::string &k)
virtual void exportToSBML (TextGlyph *g, const std::map< CCopasiObject *, SBase * > &copasimodelmap, std::map< std::string, const SBase * > &sbmlIDs) const
void exportReferenceToSBML (TextGlyph *g, const std::map< const CLBase *, const SBase * > &layoutmap) const
void print (std::ostream *ostream) const

Friends

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

Detailed Description

Graphical representation of a Label


Constructor & Destructor Documentation

CLTextGlyph::CLTextGlyph ( const std::string &  name = "TextGlyph",
const CCopasiContainer pParent = NULL 
)
CLTextGlyph::CLTextGlyph ( const CLTextGlyph src,
const CCopasiContainer pParent = NULL 
)
CLTextGlyph::CLTextGlyph ( const TextGlyph &  sbml,
const std::map< std::string, std::string > &  modelmap,
std::map< std::string, std::string > &  layoutmap,
const CCopasiContainer pParent = NULL 
)

constructor from libsbml object


Member Function Documentation

void CLTextGlyph::clearText ( )
void CLTextGlyph::exportReferenceToSBML ( TextGlyph *  g,
const std::map< const CLBase *, const SBase * > &  layoutmap 
) const

handle the reference to another graphical object for sbml export. This should only be called after all other graphical objects are in the layout map.

void CLTextGlyph::exportToSBML ( TextGlyph *  g,
const std::map< 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. The reference to other graphical objects cannot be done in this method since when this method is called not necessarily all other graphical objects have been created.

CLGraphicalObject * CLTextGlyph::getGraphicalObject ( ) const
const std::string& CLTextGlyph::getGraphicalObjectKey ( ) const [inline]
std::string CLTextGlyph::getText ( ) const
bool CLTextGlyph::isTextSet ( ) const [inline]
CLTextGlyph & CLTextGlyph::operator= ( const CLTextGlyph rhs)

assignment operator.

void CLTextGlyph::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 CLGraphicalObject.

void CLTextGlyph::setGraphicalObjectKey ( const std::string &  k)
void CLTextGlyph::setText ( const std::string &  t)

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CLTextGlyph g 
) [friend]

insert operator


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines