#include <SceneBlocItem.hxx>
Public Member Functions | |
SceneBlocItem (QGraphicsScene *scene, SceneItem *parent, QString label, Subject *subject) | |
virtual | ~SceneBlocItem () |
virtual void | arrangeChildNodes () |
Auto-arrange nodes inside a schema using Graphviz C API. More... | |
Public Member Functions inherited from YACS::HMI::SceneComposedNodeItem | |
SceneComposedNodeItem (QGraphicsScene *scene, SceneItem *parent, QString label, Subject *subject) | |
virtual | ~SceneComposedNodeItem () |
virtual QRectF | childrenBoundingRect () const |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
virtual void | update (GuiEvent event, int type, Subject *son) |
virtual void | autoPosNewChild (AbstractSceneItem *item, const std::list< AbstractSceneItem * > alreadySet, bool isNew=false) |
virtual void | popupMenu (QWidget *caller, const QPoint &globalPos) |
virtual std::list < AbstractSceneItem * > | getChildren () |
virtual void | removeChildFromList (AbstractSceneItem *child) |
virtual void | reorganize () |
virtual void | reorganizeShrinkExpand (ShrinkMode theShrinkMode) |
virtual void | shrinkExpandRecursive (bool isExpanding, bool fromHere, ShrinkMode theShrinkMode) |
virtual void | shrinkExpandLink (bool se) |
virtual void | collisionResolv (SceneItem *child, QPointF oldPos) |
virtual void | rebuildLinks () |
virtual void | updateChildItems () |
virtual void | arrangeNodes (bool isRecursive) |
generic method to compute a graph for child nodes. implemented in some derived classes More... | |
virtual void | adjustColors () |
virtual void | setShownState (shownState ss) |
virtual bool | hasExpandedChildren (bool recursively) |
Public Member Functions inherited from YACS::HMI::SceneNodeItem | |
SceneNodeItem (QGraphicsScene *scene, SceneItem *parent, QString label, Subject *subject) | |
virtual | ~SceneNodeItem () |
virtual void | setWidth (qreal width) |
AbstractSceneItem cannot be resized (only ComposedNodeItem can) More... | |
virtual void | setHeight (qreal height) |
AbstractSceneItem cannot be resized (only ComposedNodeItem can) More... | |
virtual void | addHeader () |
virtual SceneHeaderItem * | getHeader () |
virtual void | addProgressItem () |
virtual SceneProgressItem * | getProgressItem () |
virtual qreal | getHeaderBottom () |
virtual void | autoPosNewPort (AbstractSceneItem *item, int nbPorts) |
virtual SceneComposedNodeItem * | getParent () |
virtual void | removeInPortFromList (AbstractSceneItem *inPort) |
virtual void | removeOutPortFromList (AbstractSceneItem *outPort) |
virtual void | setMoving (bool moving) |
virtual void | setTopLeft (QPointF topLeft) |
virtual void | adjustHeader () |
virtual ScenePortItem * | getCtrlInPortItem () |
virtual ScenePortItem * | getCtrlOutPortItem () |
virtual void | updateName () |
virtual void | showOutScopeLinks () |
virtual void | updateLinks () |
bool | isExpanded () |
void | setExpanded (bool e) |
void | setExpandedPos (QPointF epos) |
qreal | getExpandedX () |
qreal | getExpandedY () |
void | setExpandedWH () |
void | setExpandedWH (qreal w, qreal h) |
qreal | getExpandedWidth () |
qreal | getExpandedHeight () |
shownState | getShownState () |
bool | hasProgressBar () const |
Public Member Functions inherited from YACS::HMI::SceneObserverItem | |
SceneObserverItem (QGraphicsScene *scene, SceneItem *parent, QString label, Subject *subject) | |
virtual | ~SceneObserverItem () |
virtual void | select (bool isSelected) |
virtual void | activateSelection (bool selected) |
virtual Subject * | getSubject () |
virtual QString | getToolTip () |
Public Member Functions inherited from YACS::HMI::SceneItem | |
SceneItem (QGraphicsScene *scene, SceneItem *parent, QString label) | |
virtual | ~SceneItem () |
virtual QRectF | boundingRect () const |
virtual void | checkGeometryChange () |
void | setParent (SceneItem *parent) |
void | setEventPos (QPointF point) |
bool | isAncestorShrinked () |
Public Member Functions inherited from YACS::HMI::AbstractSceneItem | |
AbstractSceneItem (QGraphicsScene *scene, SceneItem *parent, QString label) | |
virtual | ~AbstractSceneItem () |
int | getLevel () |
void | setLevel () |
virtual QString | getLabel () |
qreal | getWidth () |
qreal | getHeight () |
virtual void | setGeometryOptimization (bool optimize) |
SceneItem * | getParent () |
Public Member Functions inherited from YACS::HMI::GuiObserver | |
GuiObserver () | |
virtual | ~GuiObserver () |
virtual void | incrementSubjects (Subject *subject) |
virtual void | decrementSubjects (Subject *subject) |
int | getNbSubjects () |
bool | isDestructible () |
Protected Member Functions | |
virtual void | getNodesInfo (YACS::ENGINE::ComposedNode *cnode) |
virtual void | arrangeCanvasNodes (YACS::ENGINE::ComposedNode *cnode) |
Protected Member Functions inherited from YACS::HMI::SceneComposedNodeItem | |
void | dragEnterEvent (QGraphicsSceneDragDropEvent *event) |
void | dragLeaveEvent (QGraphicsSceneDragDropEvent *event) |
void | dropEvent (QGraphicsSceneDragDropEvent *event) |
void | updateControlLinks (bool toExpand) |
virtual QColor | getPenColor () |
virtual QColor | getBrushColor () |
Protected Member Functions inherited from YACS::HMI::SceneNodeItem | |
virtual QString | getMimeFormat () |
virtual void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
virtual void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) |
virtual void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) |
virtual void | mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) |
virtual void | updateState () |
virtual void | setExecState (int execState) |
QString | getHeaderLabel () |
Additional Inherited Members | |
Static Public Member Functions inherited from YACS::HMI::GuiObserver | |
static std::string | eventName (GuiEvent event) |
static void | setEventMap () |
Public Attributes inherited from YACS::HMI::SceneItem | |
bool | _blocX |
bool | _blocY |
Static Protected Attributes inherited from YACS::HMI::GuiObserver | |
static std::map< int, std::string > | _eventNameMap |
Definition at line 37 of file SceneBlocItem.hxx.
SceneBlocItem::SceneBlocItem | ( | QGraphicsScene * | scene, |
SceneItem * | parent, | ||
QString | label, | ||
Subject * | subject | ||
) |
|
virtual |
Definition at line 58 of file SceneBlocItem.cxx.
|
protectedvirtual |
Definition at line 280 of file SceneBlocItem.cxx.
References YACS::HMI::Scene::_autoComputeLinks, _graph, YACS::HMI::QtGuiContext::_mapOfSceneItem, YACS::HMI::GuiContext::_mapOfSubjectNode, YACS::HMI::SceneItem::boundingRect(), YACS::HMI::SceneItem::checkGeometryChange(), DEBTRACE, YACS::ENGINE::ComposedNode::edGetDirectDescendants(), YACS::ENGINE::ComposedNode::getChildName(), YACS::HMI::GuiContext::getCurrent(), YACS::HMI::SceneNodeItem::getHeaderBottom(), YACS::HMI::GuiContext::getProc(), YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::GuiContext::getSubjectProc(), YACS::HMI::SceneComposedNodeItem::rebuildLinks(), YACS::HMI::SceneNodeItem::setExpandedPos(), YACS::HMI::Resource::Space_Margin, and YASSERT.
Referenced by arrangeChildNodes().
|
virtual |
Auto-arrange nodes inside a schema using Graphviz C API.
Reimplemented from YACS::HMI::SceneComposedNodeItem.
Definition at line 66 of file SceneBlocItem.cxx.
References _graph, arrangeCanvasNodes(), DEBTRACE, YACS::ENGINE::ComposedNode::getName(), YACS::HMI::SubjectNode::getNode(), getNodesInfo(), YACS::HMI::SceneObserverItem::getSubject(), and YASSERT.
|
protectedvirtual |
Definition at line 182 of file SceneBlocItem.cxx.
References _format, _graph, YACS::HMI::QtGuiContext::_mapOfSceneItem, YACS::HMI::GuiContext::_mapOfSubjectNode, DEBTRACE, DPI, YACS::ENGINE::ComposedNode::edGetDirectDescendants(), YACS::ENGINE::OutGate::edSetInGate(), YACS::ENGINE::ComposedNode::getChildByName(), YACS::ENGINE::ComposedNode::getChildName(), YACS::HMI::GuiContext::getCurrent(), YACS::ENGINE::Node::getFather(), YACS::HMI::AbstractSceneItem::getHeight(), YACS::ENGINE::Node::getOutGate(), YACS::HMI::GuiContext::getProc(), YACS::HMI::QtGuiContext::getQtCurrent(), YACS::ENGINE::Node::getSetOfOutPort(), YACS::HMI::AbstractSceneItem::getWidth(), and YACS::ENGINE::ComposedNode::isInMyDescendance().
Referenced by arrangeChildNodes().
|
protected |
Definition at line 48 of file SceneBlocItem.hxx.
Referenced by getNodesInfo(), and SceneBlocItem().
|
protected |
Definition at line 50 of file SceneBlocItem.hxx.
Referenced by arrangeCanvasNodes(), arrangeChildNodes(), and getNodesInfo().