|
#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()) | |
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 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 |
Protected Attributes inherited from Logging | |
MessageTypeT | minimumLoggingLevel |
SpamFilterDataPtr | spamFilter |
LogTag | tag |
Additional Inherited Members | |
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 |
Definition at line 44 of file StateInstance.h.
StateInstance | ( | const QString & | instanceName, |
StatePtr | parentState = StatePtr() |
||
) |
Definition at line 33 of file StateInstance.cpp.
|
pure virtual |
Implemented in DynamicRemoteState, EndState, LocalState, and RemoteState.
QPointF adjustPosition | ( | QPointF & | newPos | ) | const |
Definition at line 107 of file StateInstance.cpp.
QRectF getBoundingSquare | ( | ) | const |
getBoundingSquare return the maximum bounding box of this state instance in parent coordinate system
Definition at line 87 of file StateInstance.cpp.
|
inline |
Definition at line 92 of file StateInstance.h.
|
inline |
getBounds returns the rectangle occupied by this state instance in the parent coordinate system.
Definition at line 87 of file StateInstance.h.
const QPointF getCenter | ( | ) | const |
Definition at line 80 of file StateInstance.cpp.
QSizeF getClassSize | ( | ) | const |
Definition at line 226 of file StateInstance.cpp.
QString getInstanceName | ( | ) | const |
Definition at line 44 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 239 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 68 of file StateInstance.h.
|
pure virtual |
Implemented in LocalState, RemoteState, and DynamicRemoteState.
bool isActive | ( | ) |
Definition at line 249 of file StateInstance.cpp.
|
slot |
|
slot |
|
virtual |
Reimplemented in EndState.
Definition at line 60 of file StateInstance.cpp.
|
slot |
Definition at line 134 of file StateInstance.cpp.
|
slot |
Definition at line 208 of file StateInstance.cpp.
|
protected |
Definition at line 136 of file StateInstance.h.
const int defaultBoundingSquareSize = 100 |
Definition at line 122 of file StateInstance.h.
::armarx::StateParameterMap inputParameters |
input values of this state instance, only used by Viewer.
Definition at line 119 of file StateInstance.h.
::armarx::StateParameterMap localParameters |
Definition at line 120 of file StateInstance.h.
|
protected |
Definition at line 132 of file StateInstance.h.
::armarx::StateParameterMap outputParameters |
Definition at line 121 of file StateInstance.h.
|
protected |
Definition at line 133 of file StateInstance.h.
|
protected |
Definition at line 135 of file StateInstance.h.
|
static |
Definition at line 110 of file StateInstance.h.