|
#include <ArmarXGui/gui-plugins/StatechartViewerPlugin/model/stateinstance/StateInstance.h>
Public Slots | |
void | setBoundingBox (float squareSize) |
void | setCenter (const QPointF &newStateCenter) |
void | setPosition (QPointF newPosition) |
void | updateScale () |
Public Member Functions | |
virtual void | accept (Visitor &visitor) const =0 |
QPointF | adjustPosition (QPointF &newPos) const |
QRectF | getBoundingSquare () const |
getBoundingSquare return the maximum bounding box of this state instance in parent coordinate system More... | |
float | getBoundingSquareSize () const |
QRectF | getBounds () const |
getBounds returns the rectangle occupied by this state instance in the parent coordinate system. More... | |
const QPointF | getCenter () const |
QSizeF | getClassSize () const |
QString | getInstanceName () const |
StatePtr | getParent () const |
float | getScale () const |
getScale returns the scale of this state instance, which is the relation between boundingSquareSize and classSize. More... | |
virtual StatePtr | getStateClass () const |
const QPointF & | getTopLeft () const |
getTopLeft returns the topleft point of the stateinstance in the coordinate system of the parent state. More... | |
virtual eStateType | getType () const =0 |
bool | isActive () |
virtual void | setInstanceName (const QString &value) |
StateInstance (const QString &instanceName, StatePtr parentState=StatePtr()) | |
![]() | |
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 Attributes | |
const int | defaultBoundingSquareSize = 100 |
::armarx::StateParameterMap | inputParameters |
input values of this state instance, only used by Viewer. More... | |
::armarx::StateParameterMap | localParameters |
::armarx::StateParameterMap | outputParameters |
Static Public Attributes | |
static const QSizeF | StateDefaultSize = QSizeF(800, 600) |
Protected Attributes | |
float | boundingSquareSize |
QString | name |
std::weak_ptr< State > | parentState |
QPointF | position |
![]() | |
MessageTypeT | minimumLoggingLevel |
SpamFilterDataPtr | spamFilter |
LogTag | tag |
Additional Inherited Members | |
![]() | |
bool | checkLogLevel (MessageTypeT level) const |
const LogSenderPtr & | getLogSender () const |
Retrieve log sender. More... | |
LogSenderPtr | loghelper (const char *file, int line, const char *function) const |
Definition at line 43 of file StateInstance.h.
StateInstance | ( | const QString & | instanceName, |
StatePtr | parentState = StatePtr() |
||
) |
Definition at line 33 of file StateInstance.cpp.
|
pure virtual |
Implemented in DynamicRemoteState, LocalState, RemoteState, and EndState.
QPointF adjustPosition | ( | QPointF & | newPos | ) | const |
Definition at line 114 of file StateInstance.cpp.
QRectF getBoundingSquare | ( | ) | const |
getBoundingSquare return the maximum bounding box of this state instance in parent coordinate system
Definition at line 95 of file StateInstance.cpp.
|
inline |
Definition at line 99 of file StateInstance.h.
|
inline |
getBounds returns the rectangle occupied by this state instance in the parent coordinate system.
Definition at line 93 of file StateInstance.h.
const QPointF getCenter | ( | ) | const |
Definition at line 86 of file StateInstance.cpp.
QSizeF getClassSize | ( | ) | const |
Definition at line 238 of file StateInstance.cpp.
QString getInstanceName | ( | ) | const |
Definition at line 48 of file StateInstance.cpp.
|
inline |
float getScale | ( | ) | const |
getScale returns the scale of this state instance, which is the relation between boundingSquareSize and classSize.
Resizing is only done with this scale at the moment.
Definition at line 251 of file StateInstance.cpp.
|
inlinevirtual |
Reimplemented in RegularState.
Definition at line 55 of file StateInstance.h.
|
inline |
getTopLeft returns the topleft point of the stateinstance in the coordinate system of the parent state.
Definition at line 72 of file StateInstance.h.
|
pure virtual |
Implemented in LocalState, RemoteState, and DynamicRemoteState.
bool isActive | ( | ) |
Definition at line 259 of file StateInstance.cpp.
|
slot |
|
slot |
|
virtual |
Reimplemented in EndState.
Definition at line 65 of file StateInstance.cpp.
|
slot |
Definition at line 139 of file StateInstance.cpp.
|
slot |
Definition at line 219 of file StateInstance.cpp.
|
protected |
Definition at line 143 of file StateInstance.h.
const int defaultBoundingSquareSize = 100 |
Definition at line 129 of file StateInstance.h.
::armarx::StateParameterMap inputParameters |
input values of this state instance, only used by Viewer.
Definition at line 126 of file StateInstance.h.
::armarx::StateParameterMap localParameters |
Definition at line 127 of file StateInstance.h.
|
protected |
Definition at line 139 of file StateInstance.h.
::armarx::StateParameterMap outputParameters |
Definition at line 128 of file StateInstance.h.
|
protected |
Definition at line 140 of file StateInstance.h.
|
protected |
Definition at line 142 of file StateInstance.h.
|
static |
Definition at line 117 of file StateInstance.h.