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