copasi API
0.1
|
#include <CLGlyphs.h>
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) | |
CLTextGlyph & | operator= (const CLTextGlyph &rhs) |
std::string | getText () const |
void | setText (const std::string &t) |
void | clearText () |
bool | isTextSet () const |
const std::string & | getGraphicalObjectKey () const |
CLGraphicalObject * | getGraphicalObject () 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) |
Graphical representation of a Label
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
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.
std::ostream | * ostream |
Reimplemented from CLGraphicalObject.
void CLTextGlyph::setGraphicalObjectKey | ( | const std::string & | k | ) |
void CLTextGlyph::setText | ( | const std::string & | t | ) |
std::ostream& operator<< | ( | std::ostream & | os, |
const CLTextGlyph & | g | ||
) | [friend] |
insert operator