TransitionItem Class Reference

#include <ArmarXGui/gui-plugins/StatechartViewerPlugin/view/TransitionItem.h>

+ Inheritance diagram for TransitionItem:

Public Slots

void attachToMouse (int supportPointIndex)
 
void highlightAnimation (int duration=5000)
 
void recalcPath ()
 
void recalcShape ()
 
void setEditable (bool editable)
 
void setSelected (bool selected)
 
void updateLabel ()
 

Signals

void transitionContextMenuRequested (statechartmodel::TransitionCPtr transition, QPoint mouseScreenPos, QPointF mouseItemPos)
 
void transitionEndPlaced (statechartmodel::TransitionCPtr transition, QPointF dropPosition)
 
void transitionSupportPointPlaced (QPointF dropPosition)
 

Public Member Functions

QRectF boundingRect () const override
 
QPolygonF calcHull (QPainter *painter=0) const
 
QColor getColor () const
 
QColor getHighlightColor () const
 
IceUtil::Time getLastHighlightTimestamp () const
 
statechartmodel::TransitionCPtr getTransition () const
 
bool isInitialTransition () const
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
 
void setColor (const QColor &color)
 
void setHighlightColor (const QColor &color)
 
QPainterPath shape () const override
 
 TransitionItem (statechartmodel::TransitionCPtr transition, QGraphicsItem *parent=0)
 
- Public Member Functions inherited from MorphingItem
virtual LevelOfDetail getLevelOfDetail (float levelOfDetail) const
 
virtual LevelOfDetail getLevelOfDetail (QPainter *painter) const
 
virtual LevelOfDetail getLevelOfDetailByParent (QPainter *painter, MorphingItem *parent) const
 
 MorphingItem (QGraphicsItem *derivedItem)
 
- Public Member Functions inherited from Logging
SpamFilterDataPtr deactivateSpam (float deactivationDurationSec=10.0f, const std::string &identifier="", bool deactivate=true) const
 disables the logging for the current line for the given amount of seconds. More...
 
MessageTypeT getEffectiveLoggingLevel () const
 
 Logging ()
 
void setLocalMinimumLoggingLevel (MessageTypeT level)
 With setLocalMinimumLoggingLevel the minimum verbosity-level of log-messages can be set. More...
 
void setTag (const LogTag &tag)
 
void setTag (const std::string &tagName)
 
virtual ~Logging ()
 

Protected Member Functions

void contextMenuEvent (QGraphicsSceneContextMenuEvent *event) override
 
void hoverEnterEvent (QGraphicsSceneHoverEvent *event) override
 
void hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override
 
void hoverMoveEvent (QGraphicsSceneHoverEvent *event) override
 
void mouseMoveEvent (QGraphicsSceneMouseEvent *event) override
 
void mousePressEvent (QGraphicsSceneMouseEvent *event) override
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override
 
- Protected Member Functions inherited from Logging
bool checkLogLevel (MessageTypeT level) const
 
const LogSenderPtrgetLogSender () const
 Retrieve log sender. More...
 
LogSenderPtr loghelper (const char *file, int line, const char *function) const
 

Protected Attributes

QPolygonF shapePolygon
 
- Protected Attributes inherited from Logging
MessageTypeT minimumLoggingLevel
 
SpamFilterDataPtr spamFilter
 
LogTag tag
 

Properties

QColor color
 
QColor highlightColor
 

Additional Inherited Members

- Static Public Member Functions inherited from MorphingItem
static QGraphicsView * getView (QGraphicsSceneEvent *event)
 
- Static Public Attributes inherited from MorphingItem
static constexpr float hideOnHighDeZoomThreshold = 10.f
 
static constexpr float minSizeToShowSubstates = 70.f
 

Detailed Description

Definition at line 44 of file TransitionItem.h.

Constructor & Destructor Documentation

◆ TransitionItem()

TransitionItem ( statechartmodel::TransitionCPtr  transition,
QGraphicsItem *  parent = 0 
)
explicit

Definition at line 53 of file TransitionItem.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ attachToMouse

void attachToMouse ( int  supportPointIndex)
slot

Definition at line 257 of file TransitionItem.cpp.

◆ boundingRect()

QRectF boundingRect ( ) const
override

Definition at line 100 of file TransitionItem.cpp.

+ Here is the call graph for this function:

◆ calcHull()

QPolygonF calcHull ( QPainter *  painter = 0) const

Definition at line 293 of file TransitionItem.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ contextMenuEvent()

void contextMenuEvent ( QGraphicsSceneContextMenuEvent *  event)
overrideprotected

Definition at line 795 of file TransitionItem.cpp.

◆ getColor()

QColor getColor ( ) const

Definition at line 359 of file TransitionItem.cpp.

◆ getHighlightColor()

QColor getHighlightColor ( ) const

Definition at line 370 of file TransitionItem.cpp.

◆ getLastHighlightTimestamp()

IceUtil::Time getLastHighlightTimestamp ( ) const

Definition at line 79 of file TransitionItem.cpp.

◆ getTransition()

statechartmodel::TransitionCPtr getTransition ( ) const

Definition at line 565 of file TransitionItem.cpp.

+ Here is the caller graph for this function:

◆ highlightAnimation

void highlightAnimation ( int  duration = 5000)
slot

Definition at line 262 of file TransitionItem.cpp.

+ Here is the caller graph for this function:

◆ hoverEnterEvent()

void hoverEnterEvent ( QGraphicsSceneHoverEvent *  event)
overrideprotected

Definition at line 570 of file TransitionItem.cpp.

+ Here is the call graph for this function:

◆ hoverLeaveEvent()

void hoverLeaveEvent ( QGraphicsSceneHoverEvent *  event)
overrideprotected

Definition at line 611 of file TransitionItem.cpp.

+ Here is the call graph for this function:

◆ hoverMoveEvent()

void hoverMoveEvent ( QGraphicsSceneHoverEvent *  event)
overrideprotected

Definition at line 595 of file TransitionItem.cpp.

+ Here is the call graph for this function:

◆ isInitialTransition()

bool isInitialTransition ( ) const

Definition at line 114 of file TransitionItem.cpp.

+ Here is the caller graph for this function:

◆ mouseMoveEvent()

void mouseMoveEvent ( QGraphicsSceneMouseEvent *  event)
overrideprotected

Definition at line 760 of file TransitionItem.cpp.

+ Here is the call graph for this function:

◆ mousePressEvent()

void mousePressEvent ( QGraphicsSceneMouseEvent *  event)
overrideprotected

Definition at line 719 of file TransitionItem.cpp.

◆ mouseReleaseEvent()

void mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event)
overrideprotected

Definition at line 781 of file TransitionItem.cpp.

◆ paint()

void paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)
override

Definition at line 629 of file TransitionItem.cpp.

+ Here is the call graph for this function:

◆ recalcPath

void recalcPath ( )
slot

Definition at line 129 of file TransitionItem.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ recalcShape

void recalcShape ( )
slot

Definition at line 247 of file TransitionItem.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setColor()

void setColor ( const QColor &  color)

Definition at line 364 of file TransitionItem.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setEditable

void setEditable ( bool  editable)
slot

Definition at line 124 of file TransitionItem.cpp.

◆ setHighlightColor()

void setHighlightColor ( const QColor &  color)

Definition at line 375 of file TransitionItem.cpp.

◆ setSelected

void setSelected ( bool  selected)
slot

Definition at line 252 of file TransitionItem.cpp.

◆ shape()

QPainterPath shape ( ) const
override

Definition at line 84 of file TransitionItem.cpp.

+ Here is the call graph for this function:

◆ transitionContextMenuRequested

void transitionContextMenuRequested ( statechartmodel::TransitionCPtr  transition,
QPoint  mouseScreenPos,
QPointF  mouseItemPos 
)
signal
+ Here is the caller graph for this function:

◆ transitionEndPlaced

void transitionEndPlaced ( statechartmodel::TransitionCPtr  transition,
QPointF  dropPosition 
)
signal
+ Here is the caller graph for this function:

◆ transitionSupportPointPlaced

void transitionSupportPointPlaced ( QPointF  dropPosition)
signal

◆ updateLabel

void updateLabel ( )
slot

Definition at line 276 of file TransitionItem.cpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ shapePolygon

QPolygonF shapePolygon
protected

Definition at line 90 of file TransitionItem.h.

Property Documentation

◆ color

QColor color
readwrite

Definition at line 51 of file TransitionItem.h.

◆ highlightColor

QColor highlightColor
readwrite

Definition at line 52 of file TransitionItem.h.


The documentation for this class was generated from the following files: