Transition.h
Go to the documentation of this file.
1/*
2* This file is part of ArmarX.
3*
4* ArmarX is free software; you can redistribute it and/or modify
5* it under the terms of the GNU General Public License version 2 as
6* published by the Free Software Foundation.
7*
8* ArmarX is distributed in the hope that it will be useful, but
9* WITHOUT ANY WARRANTY; without even the implied warranty of
10* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11* GNU General Public License for more details.
12*
13* You should have received a copy of the GNU General Public License
14* along with this program. If not, see <http://www.gnu.org/licenses/>.
15*
16* @package ArmarX::
17* @author Mirko Waechter ( mirko.waechter at kit dot edu)
18* @date 2014
19* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20* GNU General Public License
21*/
22
23#pragma once
24
25#include <memory>
26
27#include <QList>
28#include <QMetaType>
29#include <QPointF>
30#include <QString>
31
32#include "ParameterMapping.h"
34
35namespace armarx
36{
37
38 using QPointList = QList<QPointF>;
39 using FloatPtr = std::shared_ptr<float>;
40 using QPointPtr = std::shared_ptr<QPointF>;
41
43 {
47
51
55
56 QList<QPointF> toPointList() const;
57
58 QList<QPointF> controlPointList() const;
59
60 void setControlPoints(QList<QPointF> list);
61
62 void append(const QPointF& point);
63 };
64} // namespace armarx
65
67{
89
90 using TransitionPtr = std::shared_ptr<Transition>;
91 using TransitionCPtr = std::shared_ptr<const Transition>;
92} // namespace armarx::statechartmodel
93
ParameterMappingList mappingToParentStatesOutput
Definition Transition.h:82
ParameterMappingList mappingToNextStatesInput
Definition Transition.h:80
ParameterMappingPtr findMapping(const QString &destinationKey, const ParameterMappingList &mapping) const
ParameterMappingList mappingToParentStatesLocal
Definition Transition.h:81
std::shared_ptr< StateInstance > StateInstancePtr
QList< ParameterMappingPtr > ParameterMappingList
Definition XmlWriter.h:49
std::shared_ptr< const Transition > TransitionCPtr
Definition Transition.h:91
std::shared_ptr< Transition > TransitionPtr
Definition Transition.h:90
std::shared_ptr< ParameterMapping > ParameterMappingPtr
Definition XmlWriter.h:48
This file offers overloads of toIce() and fromIce() functions for STL container types.
std::shared_ptr< QPointF > QPointPtr
Definition Transition.h:40
QList< QPointF > QPointList
Definition Transition.h:38
std::shared_ptr< float > FloatPtr
Definition Transition.h:39
QPointList controlPoints
Definition Transition.h:54
void setControlPoints(QList< QPointF > list)
QList< QPointF > toPointList() const
void append(const QPointF &point)
SupportPoints(QPointList list)
Definition Transition.h:48
QList< QPointF > controlPointList() const