LocalState Class Reference

#include <ArmarXGui/gui-plugins/StatechartViewerPlugin/model/stateinstance/LocalState.h>

+ Inheritance diagram for LocalState:

Public Member Functions

void accept (Visitor &visitor) const override
 
eStateType getType () const override
 
 LocalState (const QString &stateUUID, const QString &instanceName, StatePtr parentState=StatePtr())
 
 LocalState (StatePtr stateClass, const QString &instanceName, StatePtr parentState=StatePtr())
 
- Public Member Functions inherited from RegularState
QString getClassUUID () const
 
StatePtr getStateClass () const override
 
 RegularState (const QString &stateUUID, const QString &instanceName, StatePtr parentState=StatePtr())
 
 RegularState (StatePtr stateClass, const QString &instanceName, StatePtr parentState=StatePtr())
 
void setStateClass (StatePtr newStateClass)
 
- Public Member Functions inherited from StateInstance
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...
 
const QPointF & getTopLeft () const
 getTopLeft returns the topleft point of the stateinstance in the coordinate system of the parent state. More...
 
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 ()
 

Additional Inherited Members

- Public Slots inherited from StateInstance
void setBoundingBox (float squareSize)
 
void setCenter (const QPointF &newStateCenter)
 
void setPosition (QPointF newPosition)
 
void updateScale ()
 
- Public Attributes inherited from StateInstance
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 inherited from StateInstance
static const QSizeF StateDefaultSize = QSizeF(800, 600)
 
- 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 inherited from StateInstance
float boundingSquareSize
 
QString name
 
std::weak_ptr< StateparentState
 
QPointF position
 
- Protected Attributes inherited from Logging
MessageTypeT minimumLoggingLevel
 
SpamFilterDataPtr spamFilter
 
LogTag tag
 

Detailed Description

Definition at line 31 of file LocalState.h.

Constructor & Destructor Documentation

◆ LocalState() [1/2]

LocalState ( StatePtr  stateClass,
const QString &  instanceName,
StatePtr  parentState = StatePtr() 
)

Definition at line 28 of file LocalState.cpp.

◆ LocalState() [2/2]

LocalState ( const QString &  stateUUID,
const QString &  instanceName,
StatePtr  parentState = StatePtr() 
)

Definition at line 33 of file LocalState.cpp.

Member Function Documentation

◆ accept()

void accept ( Visitor visitor) const
overridevirtual

Implements StateInstance.

Definition at line 43 of file LocalState.cpp.

+ Here is the call graph for this function:

◆ getType()

eStateType getType ( ) const
overridevirtual

Implements StateInstance.

Definition at line 38 of file LocalState.cpp.


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