StateInstance Class Referenceabstract

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

+ Inheritance diagram for StateInstance:

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
 
float getBoundingSquareSize () const
 
QRectF getBounds () const
 getBounds returns the rectangle occupied by this state instance in the parent coordinate system.
 
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.
 
virtual StatePtr getStateClass () const
 
const QPointF & getTopLeft () const
 getTopLeft returns the topleft point of the stateinstance in the coordinate system of the parent state.
 
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.
 
MessageTypeT getEffectiveLoggingLevel () const
 
 Logging ()
 
void setLocalMinimumLoggingLevel (MessageTypeT level)
 With setLocalMinimumLoggingLevel the minimum verbosity-level of log-messages can be set.
 
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.
 
::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.
 
LogSenderPtr loghelper (const char *file, int line, const char *function) const
 

Constructor & Destructor Documentation

◆ StateInstance()

StateInstance ( const QString & instanceName,
StatePtr parentState = StatePtr() )

Member Function Documentation

◆ accept()

virtual void accept ( Visitor & visitor) const
pure virtual

◆ adjustPosition()

QPointF adjustPosition ( QPointF & newPos) const

◆ getBoundingSquare()

QRectF getBoundingSquare ( ) const

getBoundingSquare return the maximum bounding box of this state instance in parent coordinate system

Returns
See also
getBounds()

◆ getBoundingSquareSize()

float getBoundingSquareSize ( ) const
inline

◆ getBounds()

QRectF getBounds ( ) const
inline

getBounds returns the rectangle occupied by this state instance in the parent coordinate system.

See also
getBoundingBox()

◆ getCenter()

const QPointF getCenter ( ) const

◆ getClassSize()

QSizeF getClassSize ( ) const

◆ getInstanceName()

QString getInstanceName ( ) const

◆ getParent()

StatePtr getParent ( ) const
inline

◆ getScale()

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.

◆ getStateClass()

virtual StatePtr getStateClass ( ) const
inlinevirtual

Reimplemented in RegularState.

◆ getTopLeft()

const QPointF & getTopLeft ( ) const
inline

getTopLeft returns the topleft point of the stateinstance in the coordinate system of the parent state.

◆ getType()

virtual eStateType getType ( ) const
pure virtual

Implemented in DynamicRemoteState, LocalState, and RemoteState.

◆ isActive()

bool isActive ( )

◆ setBoundingBox

void setBoundingBox ( float squareSize)
slot

◆ setCenter

void setCenter ( const QPointF & newStateCenter)
slot

◆ setInstanceName()

void setInstanceName ( const QString & value)
virtual

Reimplemented in EndState.

◆ setPosition

void setPosition ( QPointF newPosition)
slot

◆ updateScale

void updateScale ( )
slot

Member Data Documentation

◆ boundingSquareSize

float boundingSquareSize
protected

◆ defaultBoundingSquareSize

const int defaultBoundingSquareSize = 100

◆ inputParameters

::armarx::StateParameterMap inputParameters

input values of this state instance, only used by Viewer.

◆ localParameters

::armarx::StateParameterMap localParameters

◆ name

QString name
protected

◆ outputParameters

::armarx::StateParameterMap outputParameters

◆ parentState

std::weak_ptr<State> parentState
protected

◆ position

QPointF position
protected

◆ StateDefaultSize

const QSizeF StateDefaultSize = QSizeF(800, 600)
static

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