#include <SceneCtrlLinkItem.hxx>
Public Member Functions | |
SceneCtrlLinkItem (QGraphicsScene *scene, SceneItem *parent, ScenePortItem *from, ScenePortItem *to, QString label, Subject *subject) | |
virtual | ~SceneCtrlLinkItem () |
virtual QPointF | start () |
virtual QPointF | goal () |
Public Member Functions inherited from YACS::HMI::SceneLinkItem | |
SceneLinkItem (QGraphicsScene *scene, SceneItem *parent, ScenePortItem *from, ScenePortItem *to, QString label, Subject *subject) | |
virtual | ~SceneLinkItem () |
virtual void | select (bool isSelected) |
virtual QRectF | boundingRect () const |
virtual QPainterPath | shape () const |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
virtual void | update (GuiEvent event, int type, Subject *son) |
virtual void | popupMenu (QWidget *caller, const QPoint &globalPos) |
virtual void | setPath (LinkPath lp) |
virtual void | minimizeDirectionChanges () |
virtual void | force2points () |
virtual void | updateShape () |
virtual SceneNodeItem * | getFromNode () |
virtual SceneNodeItem * | getToNode () |
Public Member Functions inherited from YACS::HMI::SceneObserverItem | |
SceneObserverItem (QGraphicsScene *scene, SceneItem *parent, QString label, Subject *subject) | |
virtual | ~SceneObserverItem () |
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 | childrenBoundingRect () const |
virtual void | setTopLeft (QPointF topLeft) |
virtual void | checkGeometryChange () |
void | setParent (SceneItem *parent) |
void | setEventPos (QPointF point) |
virtual void | updateChildItems () |
virtual void | updateLinks () |
virtual void | shrinkExpandLink (bool se) |
virtual void | shrinkExpandRecursive (bool isExpanding, bool fromHere, ShrinkMode theShrinkMode) |
bool | isAncestorShrinked () |
Public Member Functions inherited from YACS::HMI::AbstractSceneItem | |
AbstractSceneItem (QGraphicsScene *scene, SceneItem *parent, QString label) | |
virtual | ~AbstractSceneItem () |
int | getLevel () |
void | setLevel () |
virtual void | reorganize () |
virtual QString | getLabel () |
virtual void | addHeader () |
virtual void | addProgressItem () |
virtual qreal | getHeaderBottom () |
qreal | getWidth () |
qreal | getHeight () |
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 | 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 QColor | getBrushColor () |
virtual QColor | getPenColor () |
Protected Member Functions inherited from YACS::HMI::SceneLinkItem | |
void | setShape (int thickness=1) |
void | addArrow (QPointF pfrom, QPointF pto, HMI::Direction dir, int thickness=1) |
Protected Member Functions inherited from YACS::HMI::SceneObserverItem | |
virtual void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
virtual void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) |
virtual void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) |
virtual QString | getMimeFormat () |
Protected Member Functions inherited from YACS::HMI::SceneItem | |
virtual void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) |
virtual void | hoverMoveEvent (QGraphicsSceneHoverEvent *event) |
virtual void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) |
QColor | hoverColor (QColor origColor) |
Protected Member Functions inherited from YACS::HMI::AbstractSceneItem | |
virtual QRectF | childBoundingRect (AbstractSceneItem *child) const |
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 |
Protected Attributes inherited from YACS::HMI::SceneLinkItem | |
QPainterPath | _path |
ScenePortItem * | _from |
ScenePortItem * | _to |
std::vector< QPointF > | _lp |
std::vector< Direction > | _directions |
int | _nbPoints |
Static Protected Attributes inherited from YACS::HMI::GuiObserver | |
static std::map< int, std::string > | _eventNameMap |
Definition at line 33 of file SceneCtrlLinkItem.hxx.
SceneCtrlLinkItem::SceneCtrlLinkItem | ( | QGraphicsScene * | scene, |
SceneItem * | parent, | ||
ScenePortItem * | from, | ||
ScenePortItem * | to, | ||
QString | label, | ||
Subject * | subject | ||
) |
Definition at line 37 of file SceneCtrlLinkItem.cxx.
References YACS::HMI::AbstractSceneItem::_brushColor, YACS::HMI::AbstractSceneItem::_hiBrushColor, YACS::HMI::AbstractSceneItem::_hiPenColor, YACS::HMI::AbstractSceneItem::_penColor, YACS::HMI::Resource::control_link_draw_color, YACS::HMI::Resource::control_link_select_color, and YACS::HMI::Resource::link_pen_darkness.
|
virtual |
Definition at line 48 of file SceneCtrlLinkItem.cxx.
|
protectedvirtual |
Reimplemented from YACS::HMI::SceneLinkItem.
Definition at line 75 of file SceneCtrlLinkItem.cxx.
References YACS::HMI::AbstractSceneItem::_brushColor, YACS::HMI::AbstractSceneItem::_hiBrushColor, YACS::HMI::Resource::control_link_draw_color, YACS::HMI::Resource::control_link_select_color, and YACS::HMI::SceneObserverItem::getBrushColor().
|
protectedvirtual |
Reimplemented from YACS::HMI::SceneLinkItem.
Definition at line 68 of file SceneCtrlLinkItem.cxx.
References YACS::HMI::AbstractSceneItem::_hiPenColor, YACS::HMI::AbstractSceneItem::_penColor, YACS::HMI::Resource::control_link_draw_color, YACS::HMI::Resource::control_link_select_color, YACS::HMI::SceneItem::getPenColor(), and YACS::HMI::Resource::link_pen_darkness.
|
virtual |
Reimplemented from YACS::HMI::SceneLinkItem.
Definition at line 60 of file SceneCtrlLinkItem.cxx.
References YACS::HMI::SceneLinkItem::_to, DEBTRACE, YACS::HMI::AbstractSceneItem::getHeight(), and YACS::HMI::AbstractSceneItem::getWidth().
|
virtual |
Reimplemented from YACS::HMI::SceneLinkItem.
Definition at line 52 of file SceneCtrlLinkItem.cxx.
References YACS::HMI::SceneLinkItem::_from, DEBTRACE, YACS::HMI::AbstractSceneItem::getHeight(), and YACS::HMI::AbstractSceneItem::getWidth().