33#include <ArmarXCore/interface/statechart/StatechartIce.h>
38 using StatePtr = std::shared_ptr<State>;
39 using StateCPtr = std::shared_ptr<const State>;
45 public std::enable_shared_from_this<StateInstance>,
133 void setCenter(
const QPointF& newStateCenter);
StateInstance(const QString &instanceName, StatePtr parentState=StatePtr())
::armarx::StateParameterMap inputParameters
input values of this state instance, only used by Viewer.
QRectF getBounds() const
getBounds returns the rectangle occupied by this state instance in the parent coordinate system.
virtual eStateType getType() const =0
const QPointF & getTopLeft() const
getTopLeft returns the topleft point of the stateinstance in the coordinate system of the parent stat...
const int defaultBoundingSquareSize
QString getInstanceName() const
virtual void accept(Visitor &visitor) const =0
void setBoundingBox(float squareSize)
QPointF adjustPosition(QPointF &newPos) const
QSizeF getClassSize() const
StatePtr getParent() const
QRectF getBoundingSquare() const
getBoundingSquare return the maximum bounding box of this state instance in parent coordinate system
virtual void setInstanceName(const QString &value)
float getScale() const
getScale returns the scale of this state instance, which is the relation between boundingSquareSize a...
void setPosition(QPointF newPosition)
float getBoundingSquareSize() const
virtual StatePtr getStateClass() const
::armarx::StateParameterMap localParameters
::armarx::StateParameterMap outputParameters
static const QSizeF StateDefaultSize
std::weak_ptr< State > parentState
void setCenter(const QPointF &newStateCenter)
const QPointF getCenter() const
std::shared_ptr< State > StatePtr
std::shared_ptr< StateInstance > StateInstancePtr
std::shared_ptr< const State > StateCPtr