|
#include <ArmarXGui/gui-plugins/StatechartViewerPlugin/view/StateItem.h>
Public Slots | |
void | adjustSize () |
void | forwardTransitionContextMenuRequested (statechartmodel::TransitionCPtr transition, QPoint mouseScreenPos, QPointF mouseItemPos) |
void | notifyStateChanged (statechartmodel::SignalType signalType) |
void | notifySubstateChanged (statechartmodel::StateInstancePtr substate, statechartmodel::SignalType signalType) |
void | notifyTransitionChanged (statechartmodel::TransitionCPtr transition, statechartmodel::SignalType signalType) |
void | notifyTransitionsChanged (statechartmodel::StateInstancePtr transition, statechartmodel::SignalType signalType) |
void | setActiveState (bool active) |
void | setActiveSubstate (const QString &substateName) |
void | setInstanceName (const QString &value) |
void | transitionMoved (statechartmodel::TransitionCPtr transition, QPointF dropPoint) |
void | viewAll () |
Signals | |
void | stateContextMenuRequested (statechartmodel::StateInstancePtr stateInstace, QPoint mouseScreenPos, QPointF mouseItemPos) |
void | stateItemBoundingBoxChanged (float newSquareBoundingBoxSize) |
void | stateItemMoved (QPointF newPosition) |
void | stateItemResized (QSizeF newSize) |
void | transitionContextMenuRequested (statechartmodel::TransitionCPtr transition, statechartmodel::StatePtr state, QPoint mouseScreenPos, QPointF mouseItemPos) |
Public Member Functions | |
void | clearActiveSubstate () |
QString | getFullStatePath () const |
QString | getInstanceName () const |
LevelOfDetail | getLevelOfDetail (float levelOfDetail) const override |
int | getMaxShownSubstateLevel () const |
StateItem * | getParentStateItem () const |
statechartmodel::StateInstancePtr | getStateInstance () const |
QVector< StateItem * > | getSubstateItems () const |
QVector< TransitionItem * > | getTransitionItems () const |
bool | hasAncestor (statechartmodel::StatePtr state) const |
bool | hasDescendant (statechartmodel::StatePtr state) const |
void | setMaxShownSubstateLevel (int value) |
StateItem (statechartmodel::StateInstancePtr state, QGraphicsItem *parent=0) | |
~StateItem () override | |
Public Member Functions inherited from RoundRectItem | |
void | adjustScale (float &resultScalefactor) |
QRectF | boundingRect () const override |
bool | isEditable () const |
bool | isLevelOfDetailLow (QGraphicsSceneEvent *event) const |
QVariant | itemChange (QGraphicsItem::GraphicsItemChange change, const QVariant &value) override |
void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) override |
RoundRectItem (const QRectF &bounds, const QColor &color, QGraphicsItem *parent=0) | |
void | setBounds (QRectF newBounds) |
void | setColor (QColor newColor) |
void | setEditable (bool editable) |
void | setRimPen (QPen newPen) |
void | setSize (const QSizeF &newSize) |
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 () |
Public Member Functions inherited from MorphingItem | |
virtual LevelOfDetail | getLevelOfDetail (QPainter *painter) const |
virtual LevelOfDetail | getLevelOfDetailByParent (QPainter *painter, MorphingItem *parent) const |
MorphingItem (QGraphicsItem *derivedItem) | |
Protected Types | |
using | StateInstanceItemMap = QMap< statechartmodel::StateInstancePtr, QPointer< StateItem > > |
using | TransitionMap = QMap< statechartmodel::TransitionCPtr, QPointer< TransitionItem > > |
Protected Member Functions | |
QPointF | adjustPosition (QPointF &newPos) override |
void | connectSlots () |
void | contextMenuEvent (QGraphicsSceneContextMenuEvent *event) override |
void | dragEnterEvent (QGraphicsSceneDragDropEvent *event) override |
void | dragMoveEvent (QGraphicsSceneDragDropEvent *event) override |
void | dropEvent (QGraphicsSceneDragDropEvent *event) override |
int | getInstanceLevel () const |
void | initialCreation () |
void | itemBoundingBoxChanged (float oldSize, float size) override |
QVariant | itemChange (GraphicsItemChange change, const QVariant &value) override |
void | itemMoved (const QPointF &oldPos, const QPointF &newPos) override |
void | itemResized (const QRectF &oldSize, const QRectF &newSize) override |
bool | itemResizing (const QRectF &oldSize, QRectF &proposedSize) override |
void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override |
void | removeChildren () |
void | setRimColor () |
void | setStateColor () |
void | setup (QGraphicsItem *parent) |
void | updateToolTip () |
Protected Member Functions inherited from RoundRectItem | |
void | adjustCursor (Qt::CursorShape shape) |
QRectF | getBottomResizeBB () const |
QRectF | getLeftResizeBB () const |
QRectF | getRightResizeBB () const |
QRectF | getTopResizeBB () const |
void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) override |
void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override |
void | hoverMoveEvent (QGraphicsSceneHoverEvent *event) override |
void | mouseDoubleClickEvent (QGraphicsSceneMouseEvent *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 LogSenderPtr & | getLogSender () const |
Retrieve log sender. More... | |
LogSenderPtr | loghelper (const char *file, int line, const char *function) const |
Protected Attributes | |
bool | active = false |
QString | instanceName |
int | maxShownSubstateLevel = -1 |
statechartmodel::StateInstancePtr | state |
StateScene * | stateScene |
StateInstanceItemMap | subStates |
QWidget * | subWidget |
TransitionMap | transitions |
Protected Attributes inherited from RoundRectItem | |
QRectF | bounds |
Protected Attributes inherited from Logging | |
MessageTypeT | minimumLoggingLevel |
SpamFilterDataPtr | spamFilter |
LogTag | tag |
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 |
Definition at line 58 of file StateItem.h.
|
protected |
Definition at line 127 of file StateItem.h.
|
protected |
Definition at line 130 of file StateItem.h.
|
explicit |
Definition at line 52 of file StateItem.cpp.
|
override |
Definition at line 77 of file StateItem.cpp.
|
overrideprotectedvirtual |
Reimplemented from RoundRectItem.
Definition at line 617 of file StateItem.cpp.
|
slot |
void clearActiveSubstate | ( | ) |
|
protected |
Definition at line 443 of file StateItem.cpp.
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
|
slot |
QString getFullStatePath | ( | ) | const |
Definition at line 664 of file StateItem.cpp.
|
protected |
QString getInstanceName | ( | ) | const |
|
overridevirtual |
Reimplemented from MorphingItem.
Definition at line 971 of file StateItem.cpp.
int getMaxShownSubstateLevel | ( | ) | const |
Definition at line 627 of file StateItem.cpp.
StateItem * getParentStateItem | ( | ) | const |
Definition at line 676 of file StateItem.cpp.
|
inline |
QVector< StateItem * > getSubstateItems | ( | ) | const |
QVector< TransitionItem * > getTransitionItems | ( | ) | const |
Definition at line 696 of file StateItem.cpp.
bool hasAncestor | ( | statechartmodel::StatePtr | state | ) | const |
bool hasDescendant | ( | statechartmodel::StatePtr | state | ) | const |
Definition at line 961 of file StateItem.cpp.
|
protected |
Definition at line 465 of file StateItem.cpp.
Reimplemented from RoundRectItem.
Definition at line 761 of file StateItem.cpp.
|
overrideprotected |
Definition at line 791 of file StateItem.cpp.
|
overrideprotectedvirtual |
Reimplemented from RoundRectItem.
Definition at line 750 of file StateItem.cpp.
|
overrideprotectedvirtual |
Reimplemented from RoundRectItem.
Definition at line 742 of file StateItem.cpp.
|
overrideprotectedvirtual |
Reimplemented from RoundRectItem.
Definition at line 730 of file StateItem.cpp.
|
slot |
Definition at line 196 of file StateItem.cpp.
|
slot |
Definition at line 213 of file StateItem.cpp.
|
slot |
Definition at line 303 of file StateItem.cpp.
|
slot |
Definition at line 368 of file StateItem.cpp.
|
overrideprotected |
|
protected |
|
slot |
|
slot |
|
slot |
Definition at line 715 of file StateItem.cpp.
void setMaxShownSubstateLevel | ( | int | value | ) |
Definition at line 632 of file StateItem.cpp.
|
protected |
Definition at line 551 of file StateItem.cpp.
|
protected |
Definition at line 494 of file StateItem.cpp.
|
protected |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
slot |
Definition at line 388 of file StateItem.cpp.
|
protected |
Definition at line 565 of file StateItem.cpp.
|
slot |
Definition at line 417 of file StateItem.cpp.
|
protected |
Definition at line 133 of file StateItem.h.
|
protected |
Definition at line 129 of file StateItem.h.
|
protected |
Definition at line 132 of file StateItem.h.
|
protected |
Definition at line 126 of file StateItem.h.
|
protected |
Definition at line 125 of file StateItem.h.
|
protected |
Definition at line 128 of file StateItem.h.
|
protected |
Definition at line 124 of file StateItem.h.
|
protected |
Definition at line 131 of file StateItem.h.