COPASI API
4.16.103
|
#include <CQLayoutScene.h>
Public Slots | |
void | recreate () |
Signals | |
void | recreateNeeded () |
Public Member Functions | |
CQLayoutScene (CLayout *layout, CCopasiDataModel *model=NULL, CLRenderInformationBase *renderInformation=NULL) | |
const CLayout * | getCurrentLayout () const |
CLayout * | getCurrentLayout () |
const CLRenderInformationBase * | getCurrentRenderInfo () const |
QGraphicsItem * | getItemFor (const std::string &cn) |
const CLRenderResolver * | getResolver () const |
void | saveToFile (const std::string &fileName, const std::string &fileType="pdf") |
void | setLayout (CLayout *layout, CCopasiDataModel *model=NULL, CLRenderInformationBase *renderInformation=NULL) |
void | setRenderInformation (CCopasiDataModel *model, CLRenderInformationBase *renderInformation) |
void | setResolver (CLRenderResolver *resolver) |
void | updatePosition (const QString &key, const QPointF &newPos) |
virtual | ~CQLayoutScene () |
Protected Member Functions | |
void | initializeResolver (CCopasiDataModel *model, CLRenderInformationBase *renderInformation) |
Private Member Functions | |
void | addGlyph (const CLGraphicalObject *go) |
void | fillFromLayout (const CLayout *layout) |
Private Attributes | |
std::map< std::string, QGraphicsItem * > | mItems |
CLayout * | mpLayout |
CLRenderInformationBase * | mpRender |
QSharedPointer< CLRenderResolver > | mpResolver |
Definition at line 22 of file CQLayoutScene.h.
CQLayoutScene::CQLayoutScene | ( | CLayout * | layout, |
CCopasiDataModel * | model = NULL , |
||
CLRenderInformationBase * | renderInformation = NULL |
||
) |
Definition at line 37 of file CQLayoutScene.cpp.
References initializeResolver(), recreate(), and recreateNeeded().
|
virtual |
Definition at line 137 of file CQLayoutScene.cpp.
|
private |
Definition at line 147 of file CQLayoutScene.cpp.
References CCopasiVector< T >::begin(), COPASI_OBJECT_CN, CCopasiVector< T >::end(), CCopasiObject::getCN(), CLGlyphWithCurve::getCurve(), CLGeneralGlyph::getListOfSubglyphs(), CLGraphicalObject::getModelObject(), CLCurve::getNumCurveSegments(), mItems, and mpResolver.
Referenced by fillFromLayout().
Definition at line 203 of file CQLayoutScene.cpp.
References addGlyph(), CCopasiVector< T >::begin(), CCopasiVector< T >::end(), CLRenderInformationBase::getBackgroundColor(), CLayout::getListOfCompartmentGlyphs(), CLayout::getListOfGeneralGlyphs(), CLayout::getListOfMetaboliteGlyphs(), CLayout::getListOfReactionGlyphs(), CLayout::getListOfTextGlyphs(), mItems, mpRender, mpResolver, and CQRenderConverter::setBackground().
Referenced by recreate().
const CLayout * CQLayoutScene::getCurrentLayout | ( | ) | const |
Definition at line 58 of file CQLayoutScene.cpp.
References mpLayout.
Referenced by CQAnimationWindow::setScene(), CQAnimationWindow::slotAutoLayout(), CQLayoutView::slotLayoutChanged(), CQAnimationWindow::slotLayoutStateChanged(), CQAnimationWindow::slotRandomizeLayout(), and CQLayoutView::slotRenderInformationChanged().
CLayout * CQLayoutScene::getCurrentLayout | ( | ) |
const CLRenderInformationBase * CQLayoutScene::getCurrentRenderInfo | ( | ) | const |
QGraphicsItem * CQLayoutScene::getItemFor | ( | const std::string & | cn | ) |
Definition at line 198 of file CQLayoutScene.cpp.
References mItems.
Referenced by CQEffectDescription::applyToScene(), and CQEffectDescription::removeFromScene().
const CLRenderResolver * CQLayoutScene::getResolver | ( | ) | const |
Definition at line 132 of file CQLayoutScene.cpp.
References mpResolver.
|
protected |
Definition at line 99 of file CQLayoutScene.cpp.
References getDefaultStyle(), CListOfLayouts::getListOfGlobalRenderInformationObjects(), CCopasiDataModel::getListOfLayouts(), CLayout::getListOfLocalRenderInformationObjects(), mpLayout, mpRender, mpResolver, and CCopasiVector< T >::size().
Referenced by CQLayoutScene(), and setRenderInformation().
|
slot |
Definition at line 141 of file CQLayoutScene.cpp.
References fillFromLayout(), and mpLayout.
Referenced by CQLayoutScene(), Arguments::handleCommandLine(), CQAnimationWindow::setScene(), CQLayoutView::slotLayoutChanged(), CQAnimationWindow::slotLayoutStateChanged(), and CQLayoutView::slotRenderInformationChanged().
|
signal |
Referenced by CQLayoutScene(), and updatePosition().
void CQLayoutScene::saveToFile | ( | const std::string & | fileName, |
const std::string & | fileType = "pdf" |
||
) |
Definition at line 73 of file CQLayoutScene.cpp.
Referenced by Arguments::handleCommandLine(), and CQLayoutView::slotSaveToFile().
void CQLayoutScene::setLayout | ( | CLayout * | layout, |
CCopasiDataModel * | model = NULL , |
||
CLRenderInformationBase * | renderInformation = NULL |
||
) |
Definition at line 47 of file CQLayoutScene.cpp.
References mpLayout, and setRenderInformation().
Referenced by CQLayoutView::slotLayoutChanged().
void CQLayoutScene::setRenderInformation | ( | CCopasiDataModel * | model, |
CLRenderInformationBase * | renderInformation | ||
) |
Definition at line 53 of file CQLayoutScene.cpp.
References initializeResolver().
Referenced by setLayout(), and CQLayoutView::slotRenderInformationChanged().
void CQLayoutScene::setResolver | ( | CLRenderResolver * | resolver | ) |
Definition at line 127 of file CQLayoutScene.cpp.
References mpResolver.
void CQLayoutScene::updatePosition | ( | const QString & | key, |
const QPointF & | newPos | ||
) |
Definition at line 335 of file CQLayoutScene.cpp.
References CCopasiSpringLayout::finalizeState(), CKeyFactory::get(), CCopasiRootContainer::getKeyFactory(), moveObject(), mpLayout, and recreateNeeded().
Referenced by CQStyledGraphicsItem::mouseReleaseEvent(), and CQConnectionGraphicsItem::mouseReleaseEvent().
|
private |
Definition at line 52 of file CQLayoutScene.h.
Referenced by addGlyph(), fillFromLayout(), and getItemFor().
|
private |
Definition at line 48 of file CQLayoutScene.h.
Referenced by getCurrentLayout(), initializeResolver(), recreate(), setLayout(), and updatePosition().
|
private |
Definition at line 49 of file CQLayoutScene.h.
Referenced by fillFromLayout(), getCurrentRenderInfo(), and initializeResolver().
|
private |
Definition at line 50 of file CQLayoutScene.h.
Referenced by addGlyph(), fillFromLayout(), getResolver(), initializeResolver(), and setResolver().