COPASI API
4.16.103
|
#include <CListOfLayouts.h>
Public Member Functions | |
void | addGlobalRenderInformation (CLGlobalRenderInformation *pRenderInfo) |
void | addLayout (CLayout *layout, const std::map< std::string, std::string > &m) |
CListOfLayouts (const std::string &name="ListOfLayouts", const CCopasiContainer *pParent=NULL) | |
void | exportToSBML (ListOf *lol, std::map< const CCopasiObject *, SBase * > &copasimodelmap, const std::map< std::string, const SBase * > &idMap, unsigned int level, unsigned int version) const |
const std::string & | getKey () |
const CCopasiVector < CLGlobalRenderInformation > & | getListOfGlobalRenderInformationObjects () const |
CCopasiVector < CLGlobalRenderInformation > & | getListOfGlobalRenderInformationObjects () |
CLGlobalRenderInformation * | getRenderInformation (size_t index) |
const CLGlobalRenderInformation * | getRenderInformation (size_t index) const |
~CListOfLayouts () | |
![]() | |
virtual bool | add (const CType &src) |
virtual bool | add (CType *src, bool adopt=false) |
iterator | begin () |
const_iterator | begin () const |
CCopasiVector (const std::string &name="NoName", const CCopasiContainer *pParent=NULL, const unsigned C_INT32 &flag=CCopasiObject::Vector) | |
CCopasiVector (const CCopasiVector< CType > &src, const CCopasiContainer *pParent=NULL) | |
virtual void | cleanup () |
virtual void | clear () |
void | deepCopy (const CCopasiVector< CType > &source) |
iterator | end () |
const_iterator | end () const |
virtual size_t | getIndex (const CCopasiObject *pObject) const |
virtual const CObjectInterface * | getObject (const CCopasiObjectName &name) const |
CCopasiVector< CType > & | operator= (const CCopasiVector< CType > &rhs) |
CCopasiVector< CType > & | operator= (const std::vector< CType * > &rhs) |
const value_type & | operator[] (const size_t &index) const |
value_type & | operator[] (const size_t &index) |
virtual void | remove (const size_t &index) |
virtual bool | remove (CCopasiObject *pObject) |
virtual void | resize (const size_t &newSize) |
virtual size_t | size () const |
virtual void | swap (const size_t &indexFrom, const size_t &indexTo) |
virtual | ~CCopasiVector () |
![]() | |
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 objectMap & | getObjects () const |
virtual std::string | getUnits () const |
virtual const CCopasiObject * | getValueObject () const |
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 |
virtual const std::string & | getKey () 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 () |
Private Attributes | |
std::string | mKey |
CCopasiVector < CLGlobalRenderInformation > | mvGlobalRenderInformationObjects |
Additional Inherited Members | |
![]() | |
typedef std::vector< CType * > ::const_iterator | const_iterator |
typedef std::vector< CType * > ::iterator | iterator |
typedef std::vector< CType * > ::value_type | value_type |
![]() | |
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 std::vector< Refresh * > | buildUpdateSequence (const DataObjectSet &objects, const DataObjectSet &uptoDateObjects, const DataObjectSet &context=DataObjectSet()) |
static void | setRenameHandler (CRenameHandler *rh) |
![]() | |
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 } |
![]() | |
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) | |
![]() | |
objectMap | mObjects |
![]() | |
static CRenameHandler * | smpRenameHandler = NULL |
this class stores a list of layouts. It should also keep the maps that translate from sbml IDs to COPASI keys
Definition at line 29 of file CListOfLayouts.h.
CListOfLayouts::CListOfLayouts | ( | const std::string & | name = "ListOfLayouts" , |
const CCopasiContainer * | pParent = NULL |
||
) |
Definition at line 57 of file CListOfLayouts.cpp.
CListOfLayouts::~CListOfLayouts | ( | ) |
Definition at line 64 of file CListOfLayouts.cpp.
References CCopasiRootContainer::getKeyFactory(), mKey, and CKeyFactory::remove().
void CListOfLayouts::addGlobalRenderInformation | ( | CLGlobalRenderInformation * | pRenderInfo | ) |
add local render information to layout. The layout takes ownership of the object.
Definition at line 213 of file CListOfLayouts.cpp.
References CCopasiVector< T >::add(), and mvGlobalRenderInformationObjects.
Referenced by test000097::addGlobalRenderInformation(), SBMLDocumentLoader::readListOfLayouts(), and CCopasiXMLParser::GlobalRenderInformationElement::start().
Add a layout to the list. At the moment the map is just ignored. Later it should be stored somewhere
Definition at line 74 of file CListOfLayouts.cpp.
References CCopasiVector< CLayout >::add().
Referenced by test000097::createModel(), DataModelGUI::importCellDesigner(), SBMLDocumentLoader::readListOfLayouts(), and CQLayoutsWidget::slotBtnNewClicked().
void CListOfLayouts::exportToSBML | ( | ListOf * | lol, |
std::map< const CCopasiObject *, SBase * > & | copasimodelmap, | ||
const std::map< std::string, const SBase * > & | idMap, | ||
unsigned int | level, | ||
unsigned int | version | ||
) | const |
This method writes the information of the copasi layout object into the corresponding sbml object. copasimodelmap maps the copasi model objects to libsbml objects. At the moment we don“t assume layout objects are in the copasimodelmap. idSet should contain all sbml IDs that are used in the currently exported model (including the layouts, but not the objects inside the layout).
Definition at line 82 of file CListOfLayouts.cpp.
References CLayout::exportToSBML(), getKey(), LAYOUT_CREATE_NS, mvGlobalRenderInformationObjects, pdelete, CCopasiVector< T >::size(), and CCopasiVector< CLayout >::size().
Referenced by CSBMLExporter::exportModelToString().
const std::string & CListOfLayouts::getKey | ( | ) |
|
inline |
Definition at line 63 of file CListOfLayouts.h.
References mvGlobalRenderInformationObjects.
Referenced by CQNewMainWindow::addGlobalRenderInfoItemsToList(), test000097::addGlobalRenderInformation(), CQLayoutScene::initializeResolver(), SBMLDocumentLoader::readListOfLayouts(), CCopasiXML::saveLayoutList(), CQNewMainWindow::slotRenderInfoChanged(), CQLayoutView::slotRenderInformationChanged(), CCopasiXMLParser::GlobalRenderInformationElement::start(), CQGLLayoutPainter::update(), updateRenderInformationList(), and CQNewMainWindow::updateRenderInformationList().
|
inline |
Definition at line 66 of file CListOfLayouts.h.
References mvGlobalRenderInformationObjects.
CLGlobalRenderInformation * CListOfLayouts::getRenderInformation | ( | size_t | index | ) |
Returns a pointer to the global render information object with the given index. If the index is invalid, NULL is returned.
Definition at line 225 of file CListOfLayouts.cpp.
References mvGlobalRenderInformationObjects, and CCopasiVector< T >::size().
Referenced by CQNewMainWindow::addGlobalRenderInfoItemsToList(), CQNewMainWindow::slotRenderInfoChanged(), and CQNewMainWindow::updateRenderInformationList().
const CLGlobalRenderInformation * CListOfLayouts::getRenderInformation | ( | size_t | index | ) | const |
Returns a const pointer to the global render information object with the given index. If the index is invalid, NULL is returned.
Definition at line 239 of file CListOfLayouts.cpp.
References mvGlobalRenderInformationObjects, and CCopasiVector< T >::size().
|
private |
Definition at line 32 of file CListOfLayouts.h.
Referenced by getKey(), and ~CListOfLayouts().
|
private |
Definition at line 34 of file CListOfLayouts.h.
Referenced by addGlobalRenderInformation(), exportToSBML(), getListOfGlobalRenderInformationObjects(), and getRenderInformation().