2 #include <Process/TimeValue.hpp>
5 #include <score/serialization/JSONVisitor.hpp>
9 #include <score_plugin_scenario_export.h>
26 SCORE_SERIALIZE_FRIENDS
39 const TimeVal& defaultDuration()
const {
return m_defaultDuration; }
44 return TimeVal::zero();
51 return TimeVal{TimeVal::infinity};
55 const double& playPercentage()
const {
return m_playPercentage; }
57 double speed()
const {
return m_speed; }
59 bool isRigid()
const {
return m_rigidity; }
61 TimeVal guiDuration()
const {
return m_guiDuration; }
63 bool isMinNull()
const {
return m_isMinNull; }
65 bool isMaxInfinite()
const {
return m_isMaxInfinite; }
67 void setDefaultDuration(
const TimeVal& arg);
68 void setMinDuration(
const TimeVal& arg);
69 void setMaxDuration(
const TimeVal& arg);
70 void setGuiDuration(
TimeVal guiDuration);
72 void setPlayPercentage(
double arg);
73 void setRigid(
bool arg);
74 void setMinNull(
bool isMinNull);
75 void setMaxInfinite(
bool isMaxInfinite);
76 void setSpeed(
double Speed)
85 void checkConsistency();
98 void defaultDurationChanged(
const TimeVal& arg)
99 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, defaultDurationChanged, arg)
100 void minDurationChanged(
const TimeVal& arg)
101 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, minDurationChanged, arg)
102 void maxDurationChanged(
const TimeVal& arg)
103 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, maxDurationChanged, arg)
104 void playPercentageChanged(
double arg)
105 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, playPercentageChanged, arg)
106 void rigidityChanged(
bool arg)
107 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, rigidityChanged, arg)
108 void minNullChanged(
bool isMinNull)
109 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, minNullChanged, isMinNull)
110 void maxInfiniteChanged(
bool isMaxInfinite)
111 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, maxInfiniteChanged, isMaxInfinite)
112 void speedChanged(
double speed)
113 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, speedChanged, speed)
114 void guiDurationChanged(
TimeVal guiDuration)
115 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, guiDurationChanged, guiDuration)
117 PROPERTY(
double, speed READ speed WRITE setSpeed NOTIFY speedChanged, W_Final)
120 isMaxInfinite READ isMaxInfinite WRITE setMaxInfinite NOTIFY maxInfiniteChanged,
123 bool, isMinNull READ isMinNull WRITE setMinNull NOTIFY minNullChanged, W_Final)
124 PROPERTY(
bool, isRigid READ isRigid WRITE setRigid NOTIFY rigidityChanged, W_Final)
127 percentage READ playPercentage WRITE setPlayPercentage NOTIFY
128 playPercentageChanged,
132 guiDuration READ guiDuration WRITE setGuiDuration NOTIFY guiDurationChanged,
135 TimeVal, max READ maxDuration WRITE setMaxDuration NOTIFY maxDurationChanged,
138 TimeVal, min READ minDuration WRITE setMinDuration NOTIFY minDurationChanged,
142 default READ defaultDuration WRITE setDefaultDuration NOTIFY
143 defaultDurationChanged,
148 TimeVal m_defaultDuration{TimeVal::fromMsecs(200)};
149 TimeVal m_minDuration{m_defaultDuration};
150 TimeVal m_maxDuration{m_defaultDuration};
151 TimeVal m_guiDuration{m_defaultDuration};
153 double m_playPercentage{};
155 bool m_rigidity{
true};
156 bool m_isMinNull{
false};
157 bool m_isMaxInfinite{
false};
Definition: VisitorInterface.hpp:53
Definition: VisitorInterface.hpp:61
Definition: IntervalDurations.hpp:89
Definition: IntervalDurations.hpp:23
Definition: IntervalModel.hpp:50
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14
Definition: TimeValue.hpp:21