#include <Scene.hxx>
Public Member Functions | |
Scene (QObject *parent=0) | |
virtual | ~Scene () |
void | setZoom (bool zooming) |
bool | isZooming () |
Static Public Attributes | |
static bool | _straightLinks = false |
static bool | _autoComputeLinks = true |
static bool | _simplifyLinks = true |
static bool | _force2NodesLink = true |
static bool | _addRowCols = true |
Protected Member Functions | |
virtual void | helpEvent (QGraphicsSceneHelpEvent *event) |
virtual void | mousePressEvent (QGraphicsSceneMouseEvent *mouseEvent) |
virtual void | mouseReleaseEvent (QGraphicsSceneMouseEvent *mouseEvent) |
virtual void | mouseMoveEvent (QGraphicsSceneMouseEvent *mouseEvent) |
Protected Attributes | |
bool | _zooming |
|
protectedvirtual |
Definition at line 69 of file Scene.cxx.
References DEBTRACE, and YACS::HMI::SceneTextItem::getToolTip().
bool Scene::isZooming | ( | ) |
check if mouse move event can be used for selection or node displacement.
Definition at line 64 of file Scene.cxx.
References _zooming.
Referenced by YACS::HMI::SceneObserverItem::mousePressEvent(), YACS::HMI::SceneCtrlPortItem::mousePressEvent(), YACS::HMI::SceneNodeItem::mousePressEvent(), and YACS::HMI::SceneItem::mousePressEvent().
|
protectedvirtual |
|
protectedvirtual |
Definition at line 88 of file Scene.cxx.
References DEBTRACE, and YACS::HMI::AbstractSceneItem::getLabel().
|
protectedvirtual |
void Scene::setZoom | ( | bool | zooming | ) |
to notify scene when mouse actions must not be used for selection or node displacement, typically when mouse is used to adjust the view, like zoom or recenter of the view.
Definition at line 56 of file Scene.cxx.
References _zooming.
Referenced by YACS::HMI::GraphicsView::onViewFitArea(), YACS::HMI::GraphicsView::onViewPan(), and YACS::HMI::GraphicsView::onViewZoom().
|
static |
Definition at line 40 of file Scene.hxx.
Referenced by YACS::HMI::LinkMatrix::compute(), and YACS::HMI::SceneComposedNodeItem::rebuildLinks().
|
static |
Definition at line 37 of file Scene.hxx.
Referenced by YACS::HMI::SceneBlocItem::arrangeCanvasNodes(), YACS::HMI::SceneComposedNodeItem::arrangeNodes(), YACS::HMI::SceneComposedNodeItem::autoPosNewChild(), YACS::HMI::SceneNodeItem::mouseReleaseEvent(), YACS::HMI::SceneElementaryNodeItem::reorganizeShrinkExpand(), YACS::HMI::SceneComposedNodeItem::reorganizeShrinkExpand(), YACS::HMI::SceneComposedNodeItem::update(), YACS::HMI::SceneElementaryNodeItem::update(), and YACS::HMI::TablePortsEdition::upOrDown().
|
static |
Definition at line 39 of file Scene.hxx.
Referenced by YACS::HMI::SceneLinkItem::setPath().
|
static |
Definition at line 38 of file Scene.hxx.
Referenced by YACS::HMI::SceneLinkItem::setPath().
|
static |
Definition at line 36 of file Scene.hxx.
Referenced by YACS::HMI::SceneLinkItem::setShape().
|
protected |
Definition at line 51 of file Scene.hxx.
Referenced by isZooming(), mouseReleaseEvent(), Scene(), and setZoom().