fw4spl
IParametersService.cpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2016-2017.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #include "fwServices/IParametersService.hpp"
8 
9 #include <fwCom/Slots.hxx>
10 
11 namespace fwServices
12 {
13 
14 //-----------------------------------------------------------------------------
15 
16 const ::fwCom::Slots::SlotKeyType IParametersService::s_SET_BOOL_PARAMETER_SLOT = "setBoolParameter";
17 const ::fwCom::Slots::SlotKeyType IParametersService::s_SET_COLOR_PARAMETER_SLOT = "setColorParameter";
18 const ::fwCom::Slots::SlotKeyType IParametersService::s_SET_DOUBLE_PARAMETER_SLOT = "setDoubleParameter";
19 const ::fwCom::Slots::SlotKeyType IParametersService::s_SET_DOUBLE2_PARAMETER_SLOT = "setDouble2Parameter";
20 const ::fwCom::Slots::SlotKeyType IParametersService::s_SET_DOUBLE3_PARAMETER_SLOT = "setDouble3Parameter";
21 const ::fwCom::Slots::SlotKeyType IParametersService::s_SET_INT_PARAMETER_SLOT = "setIntParameter";
22 const ::fwCom::Slots::SlotKeyType IParametersService::s_SET_INT2_PARAMETER_SLOT = "setInt2Parameter";
23 const ::fwCom::Slots::SlotKeyType IParametersService::s_SET_INT3_PARAMETER_SLOT = "setInt3Parameter";
24 const ::fwCom::Slots::SlotKeyType IParametersService::s_SET_ENUM_PARAMETER_SLOT = "setEnumParameter";
25 
26 //-----------------------------------------------------------------------------
27 
29 {
30  newSlot(s_SET_BOOL_PARAMETER_SLOT, &IParametersService::setBoolParameter, this);
31  newSlot(s_SET_COLOR_PARAMETER_SLOT, &IParametersService::setColorParameter, this);
32  newSlot(s_SET_DOUBLE_PARAMETER_SLOT, &IParametersService::setDoubleParameter, this);
33  newSlot(s_SET_DOUBLE2_PARAMETER_SLOT, &IParametersService::setDouble2Parameter, this);
34  newSlot(s_SET_DOUBLE3_PARAMETER_SLOT, &IParametersService::setDouble3Parameter, this);
35  newSlot(s_SET_INT_PARAMETER_SLOT, &IParametersService::setIntParameter, this);
36  newSlot(s_SET_INT2_PARAMETER_SLOT, &IParametersService::setInt2Parameter, this);
37  newSlot(s_SET_INT3_PARAMETER_SLOT, &IParametersService::setInt3Parameter, this);
38  newSlot(s_SET_ENUM_PARAMETER_SLOT, &IParametersService::setEnumParameter, this);
39 }
40 
41 //-----------------------------------------------------------------------------
42 
44 {
45 }
46 
47 //-----------------------------------------------------------------------------
48 
49 void IParametersService::setBoolParameter(bool val, std::string key)
50 {
51 
52 }
53 
54 //-----------------------------------------------------------------------------
55 
56 void IParametersService::setColorParameter(std::array<std::uint8_t, 4> color, std::string key)
57 {
58 
59 }
60 
61 //-----------------------------------------------------------------------------
62 
63 void IParametersService::setDoubleParameter(double val, std::string key)
64 {
65 
66 }
67 
68 //-----------------------------------------------------------------------------
69 
70 void IParametersService::setDouble2Parameter(double val0, double val1, std::string key)
71 {
72 
73 }
74 
75 //-----------------------------------------------------------------------------
76 
77 void IParametersService::setDouble3Parameter(double val0, double val1, double val2, std::string key)
78 {
79 
80 }
81 
82 //-----------------------------------------------------------------------------
83 
84 void IParametersService::setIntParameter(int val, std::string key)
85 {
86 
87 }
88 
89 //-----------------------------------------------------------------------------
90 
91 void IParametersService::setInt2Parameter(int val0, int val1, std::string key)
92 {
93 
94 }
95 
96 //-----------------------------------------------------------------------------
97 
98 void IParametersService::setInt3Parameter(int val0, int val1, int val2, std::string key)
99 {
100 
101 }
102 
103 //-----------------------------------------------------------------------------
104 
105 void IParametersService::setEnumParameter(std::string val, std::string key)
106 {
107 
108 }
109 
110 //-----------------------------------------------------------------------------
111 
112 }
virtual FWSERVICES_API void setColorParameter(std::array< std::uint8_t, 4 > color, std::string key)
Slot: This method is used to set a color parameter.
virtual FWSERVICES_API ~IParametersService()
Destructor. Do nothing.
virtual FWSERVICES_API void setDouble3Parameter(double val0, double val1, double val2, std::string key)
Slot: This method is used to set three double parameters.
virtual FWSERVICES_API void setInt2Parameter(int val0, int val1, std::string key)
Slot: This method is used to set two int parameters.
Namespace fwServices is dedicated to (mimic) the dynamic affectation of methods to (pure data) object...
virtual FWSERVICES_API void setEnumParameter(std::string val, std::string key)
Slot: This method is used to set an enum parameter.
FWSERVICES_API IParametersService()
Constructor. Create all slots.
virtual FWSERVICES_API void setBoolParameter(bool val, std::string key)
Slot: This method is used to set an boolean parameter.
virtual FWSERVICES_API void setDouble2Parameter(double val0, double val1, std::string key)
Slot: This method is used to set two double parameters.
virtual FWSERVICES_API void setIntParameter(int val, std::string key)
Slot: This method is used to set an integer parameter.
virtual FWSERVICES_API void setDoubleParameter(double val, std::string key)
Slot: This method is used to set a double parameter.
virtual FWSERVICES_API void setInt3Parameter(int val0, int val1, int val2, std::string key)
Slot: This method is used to set three int parameters.