Loading...
Searching...
No Matches
MinMaxCommands.hpp
1#pragma once
2#include <Mapping/Commands/MappingCommandFactory.hpp>
3
4#include <score/command/PropertyCommand.hpp>
5
6namespace Mapping
7{
8class ProcessModel;
10{
11 SCORE_COMMAND_DECL(
12 MappingCommandFactoryName(), SetMappingSourceMin, "Set mapping source minimum")
13public:
14 SetMappingSourceMin(const ProcessModel& path, double newval)
15 : score::PropertyCommand{path, "sourceMin", newval}
16 {
17 }
18};
19
21{
22 SCORE_COMMAND_DECL(
23 MappingCommandFactoryName(), SetMappingSourceMax, "Set mapping source Maximum")
24public:
25 SetMappingSourceMax(const ProcessModel& path, double newval)
26 : score::PropertyCommand{path, "sourceMax", newval}
27 {
28 }
29};
30
32{
33 SCORE_COMMAND_DECL(
34 MappingCommandFactoryName(), SetMappingTargetMin, "Set mapping Target minimum")
35public:
36 SetMappingTargetMin(const ProcessModel& path, double newval)
37 : score::PropertyCommand{path, "targetMin", newval}
38 {
39 }
40};
41
43{
44 SCORE_COMMAND_DECL(
45 MappingCommandFactoryName(), SetMappingTargetMax, "Set mapping Target Maximum")
46public:
47 SetMappingTargetMax(const ProcessModel& path, double newval)
48 : score::PropertyCommand{path, "targetMax", newval}
49 {
50 }
51};
52}
Definition MappingModel.hpp:27
Definition MinMaxCommands.hpp:21
Definition MinMaxCommands.hpp:10
Definition MinMaxCommands.hpp:43
Definition MinMaxCommands.hpp:32
The PropertyCommand class.
Definition PropertyCommand.hpp:21