COPASI API
4.16.103
|
#include <CLLineEnding.h>
Public Member Functions | |
CLLineEnding (CCopasiContainer *pParent=NULL) | |
CLLineEnding (const CLLineEnding &source, CCopasiContainer *pParent=NULL) | |
CLLineEnding (const LineEnding &source, CCopasiContainer *pParent=NULL) | |
CLBoundingBox * | getBoundingBox () |
const CLBoundingBox * | getBoundingBox () const |
const CLGroup * | getGroup () const |
CLGroup * | getGroup () |
const std::string & | getId () const |
bool | getIsEnabledRotationalMapping () const |
const std::string & | getKey () const |
void | setBoundingBox (const CLBoundingBox *box) |
void | setEnableRotationalMapping (bool enable) |
void | setGroup (const CLGroup *group) |
void | setId (const std::string &id) |
LineEnding * | toSBML (unsigned int level, unsigned int version) const |
![]() | |
virtual void | addSBMLAttributes (GraphicalPrimitive2D *pPrimitive) const |
CLGraphicalPrimitive2D () | |
CLGraphicalPrimitive2D (const GraphicalPrimitive2D &source) | |
const std::string & | getFillColor () const |
FILL_RULE | getFillRule () const |
bool | isSetFill () const |
bool | isSetFillRule () const |
void | setFillColor (const std::string &color) |
void | setFillRule (FILL_RULE rule) |
![]() | |
virtual void | addSBMLAttributes (GraphicalPrimitive1D *pPrimitive) const |
CLGraphicalPrimitive1D () | |
CLGraphicalPrimitive1D (const GraphicalPrimitive1D &source) | |
const std::vector< unsigned int > & | getDashArray () const |
const std::string & | getStroke () const |
double | getStrokeWidth () const |
bool | isSetDashArray () const |
bool | isSetStroke () const |
bool | isSetStrokeWidth () const |
void | parseDashArray (const std::string &s) |
void | setDashArray (const std::vector< unsigned int > &array) |
void | setStroke (const std::string &key) |
void | setStrokeWidth (double width) |
![]() | |
CLTransformation2D () | |
CLTransformation2D (const double m[6]) | |
CLTransformation2D (const Transformation2D &source) | |
std::string | get2DTransformationString () const |
const double * | getMatrix2D () const |
virtual void | parseTransformation (const std::string &transformationString) |
void | setMatrix (const double m[12]) |
void | setMatrix2D (const double m[6]) |
![]() | |
CLTransformation () | |
CLTransformation (const double matrix[12]) | |
std::string | get3DTransformationString () const |
virtual const double * | getMatrix () const |
bool | is2DTransformation () const |
bool | isIdentityMatrix () const |
bool | isSetMatrix () const |
void | setMatrix (const double m[12]) |
![]() | |
CLBase () | |
CLBase (const CLBase &b) | |
CLBase (const SBase &) | |
const std::string & | getTag () const |
bool | hasTag () const |
virtual void | moveBy (const CLPoint &) |
void | setTag (const std::string &tag) |
virtual | ~CLBase () |
![]() | |
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 CObjectInterface * | getObject (const CCopasiObjectName &cn) const |
virtual const objectMap & | getObjects () const |
virtual std::string | getUnits () const |
virtual const CCopasiObject * | getValueObject () const |
virtual bool | remove (CCopasiObject *pObject) |
virtual | ~CCopasiContainer () |
![]() | |
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 DataObjectSet & | getDirectDependencies (const DataObjectSet &context=DataObjectSet()) const |
CCopasiContainer * | getObjectAncestor (const std::string &type) const |
CCopasiDataModel * | getObjectDataModel () |
const CCopasiDataModel * | getObjectDataModel () const |
virtual std::string | getObjectDisplayName (bool regular=true, bool richtext=false) const |
const std::string & | getObjectName () const |
CCopasiContainer * | getObjectParent () const |
const std::string & | getObjectType () const |
virtual const CObjectInterface::ObjectSet & | getPrerequisites () const |
virtual Refresh * | getRefresh () const |
UpdateMethod * | getUpdateMethod () const |
virtual void * | getValuePointer () 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 |
virtual void | print (std::ostream *ostream) 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 () |
![]() | |
CObjectInterface () | |
virtual | ~CObjectInterface () |
Protected Attributes | |
CLBoundingBox | mBoundingBox |
bool | mEnableRotationalMapping |
std::string | mId |
std::string | mKey |
CLGroup * | mpGroup |
![]() | |
std::string | mFill |
FILL_RULE | mFillRule |
![]() | |
std::string | mStroke |
std::vector< unsigned int > | mStrokeDashArray |
double | mStrokeWidth |
![]() | |
double | mMatrix2D [6] |
![]() | |
double | mMatrix [12] |
![]() | |
std::string | mTag |
![]() | |
objectMap | mObjects |
Private Member Functions | |
CLLineEnding & | operator= (const CLLineEnding &source) |
Additional Inherited Members | |
![]() | |
enum | FILL_RULE { UNSET, NONZERO, EVENODD, INHERIT } |
![]() | |
typedef std::multimap < std::string, CCopasiObject * > | objectMap |
![]() | |
typedef std::set< const CCopasiObject * > | DataObjectSet |
typedef std::vector< Refresh * > | DataUpdateSequence |
![]() | |
typedef std::set< const CObjectInterface * > | ObjectSet |
typedef std::vector < CObjectInterface * > | UpdateSequence |
![]() | |
static const double * | getIdentityMatrix2D () |
![]() | |
static const double * | getIdentityMatrix () |
![]() | |
static std::vector< Refresh * > | buildUpdateSequence (const DataObjectSet &objects, const DataObjectSet &uptoDateObjects, const DataObjectSet &context=DataObjectSet()) |
static void | setRenameHandler (CRenameHandler *rh) |
![]() | |
static const double | IDENTITY2D [6] = {1.0, 0.0, 0.0, 1.0, 0.0, 0.0} |
![]() | |
static const double | IDENTITY3D [12] = {1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0} |
![]() | |
static const std::vector < CCopasiContainer * > | EmptyList |
![]() | |
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 } |
![]() | |
virtual void | addSBMLAttributes (Transformation2D *pTransformation) const |
void | updateMatrix2D () |
void | updateMatrix3D () |
![]() | |
template<class CType > | |
CCopasiObject * | addMatrixReference (const std::string &name, CType &reference, const unsigned C_INT32 &flag=0) |
template<class CType > | |
CCopasiObject * | addObjectReference (const std::string &name, CType &reference, const unsigned C_INT32 &flag=0) |
template<class CType > | |
CCopasiObject * | addVectorReference (const std::string &name, CType &reference, const unsigned C_INT32 &flag=0) |
void | initObjects () |
![]() | |
CCopasiObject () | |
CCopasiObject (const std::string &name, const CCopasiContainer *pParent=NULL, const std::string &type="CN", const unsigned C_INT32 &flag=0) | |
![]() | |
static CRenameHandler * | smpRenameHandler = NULL |
Definition at line 26 of file CLLineEnding.h.
CLLineEnding::CLLineEnding | ( | CCopasiContainer * | pParent = NULL | ) |
Constructor.
Definition at line 22 of file CLLineEnding.cpp.
References CKeyFactory::add(), CCopasiRootContainer::getKeyFactory(), and mKey.
CLLineEnding::CLLineEnding | ( | const CLLineEnding & | source, |
CCopasiContainer * | pParent = NULL |
||
) |
Copy Constructor.
Definition at line 36 of file CLLineEnding.cpp.
References CKeyFactory::add(), CCopasiRootContainer::getKeyFactory(), mKey, and mpGroup.
CLLineEnding::CLLineEnding | ( | const LineEnding & | source, |
CCopasiContainer * | pParent = NULL |
||
) |
Constructor to generate object from the corresponding SBML object.
Definition at line 56 of file CLLineEnding.cpp.
References CKeyFactory::add(), CCopasiRootContainer::getKeyFactory(), and mKey.
CLBoundingBox * CLLineEnding::getBoundingBox | ( | ) |
Returns the bounding box.
Definition at line 95 of file CLLineEnding.cpp.
References mBoundingBox.
Referenced by addLineEndingToItem(), CLLayoutRenderer::map_arrow_head(), CCopasiXML::saveLineEnding(), CCopasiXMLParser::BoundingBoxElement::start(), and CLLayoutRenderer::update_textures_and_colors().
const CLBoundingBox * CLLineEnding::getBoundingBox | ( | ) | const |
const CLGroup * CLLineEnding::getGroup | ( | ) | const |
Returns the group object.
Definition at line 135 of file CLLineEnding.cpp.
References mpGroup.
Referenced by addLineEndingToItem(), fillItemFromRenderCurve(), CLLayoutRenderer::map_arrow_head(), CCopasiXML::saveLineEnding(), CCopasiXMLParser::GroupElement::start(), and CLLayoutRenderer::update_textures_and_colors().
CLGroup * CLLineEnding::getGroup | ( | ) |
const std::string & CLLineEnding::getId | ( | ) | const |
Returns the id of the object.
Definition at line 151 of file CLLineEnding.cpp.
References mId.
Referenced by CLRenderResolver::fill_base_maps(), CLRenderFlattener::flatten(), and CCopasiXML::saveLineEnding().
bool CLLineEnding::getIsEnabledRotationalMapping | ( | ) | const |
Returns whether rotational mapping is enabled or not.
Definition at line 79 of file CLLineEnding.cpp.
References mEnableRotationalMapping.
Referenced by applyRotationalMapping(), CLLayoutRenderer::map_arrow_head(), and CCopasiXML::saveLineEnding().
|
virtual |
Returns the key string for the line ending.
Reimplemented from CCopasiObject.
Definition at line 143 of file CLLineEnding.cpp.
References mKey.
|
private |
void CLLineEnding::setBoundingBox | ( | const CLBoundingBox * | box | ) |
void CLLineEnding::setEnableRotationalMapping | ( | bool | enable | ) |
Sets whether rotational mapping is to be done or not.
Definition at line 71 of file CLLineEnding.cpp.
References mEnableRotationalMapping.
Referenced by CCopasiXMLParser::LineEndingElement::start().
Sets the group.
Definition at line 111 of file CLLineEnding.cpp.
References mpGroup.
Referenced by CCopasiXMLParser::GroupElement::start().
void CLLineEnding::setId | ( | const std::string & | id | ) |
Sets the id of the object.
Definition at line 159 of file CLLineEnding.cpp.
References mId.
Referenced by CCopasiXMLParser::LineEndingElement::start().
LineEnding * CLLineEnding::toSBML | ( | unsigned int | level, |
unsigned int | version | ||
) | const |
Converts this object to the corresponding SBML object.
Definition at line 167 of file CLLineEnding.cpp.
References CLGraphicalPrimitive2D::addSBMLAttributes(), CLBoundingBox::getDimensions(), CLDimensions::getHeight(), CLBoundingBox::getPosition(), CLDimensions::getWidth(), CLPoint::getX(), CLPoint::getY(), mBoundingBox, mEnableRotationalMapping, mId, mpGroup, and CLGroup::toSBML().
Referenced by CLRenderInformationBase::addSBMLAttributes().
|
protected |
Definition at line 34 of file CLLineEnding.h.
Referenced by getBoundingBox(), setBoundingBox(), and toSBML().
|
protected |
Definition at line 33 of file CLLineEnding.h.
Referenced by getIsEnabledRotationalMapping(), setEnableRotationalMapping(), and toSBML().
|
protected |
The line ending needs an id in addition to the key. The id corresponds to the id in the SBML render extension and it does not have to be globally unique. As a matter of fact, it is sometimes needed that line ending of different render information have the same id.
Definition at line 48 of file CLLineEnding.h.
|
protected |
key string for the object.
Definition at line 40 of file CLLineEnding.h.
Referenced by CLLineEnding(), and getKey().
|
protected |
Definition at line 35 of file CLLineEnding.h.
Referenced by CLLineEnding(), getGroup(), setGroup(), and toSBML().