24 friend class ParameterFactory;
70 std::shared_ptr<class ParameterImpl>
_impl;
71 Parameter(
const std::string& name,
const std::shared_ptr<ZmqClientImpl>& client,
72 const std::shared_ptr<Json::Value>& parameterInfo,
bool needUpdateMaxAndMin =
false,
73 bool isVirtual =
false);
113 using Parameter::Parameter;
153 using Parameter::Parameter;
189 using Parameter::Parameter;
209 using Parameter::Parameter;
234 using Parameter::Parameter;
264 using Parameter::Parameter;
279 using Parameter::Parameter;
319 using Parameter::Parameter;
364 using Parameter::Parameter;
#define MMIND_API_EXPORT
Definition api_global.h:48
Represents a _Bool-type device parameter.
Definition Parameter.h:196
ErrorStatus getValue(bool &value) const
Gets the current value of the device parameter.
ErrorStatus setValue(bool value)
Sets the value of the device parameter.
Represents an _Enum-type device parameter.
Definition Parameter.h:160
ErrorStatus setValue(const std::string &value)
Sets the value of the device parameter by inputting a string.
ErrorStatus getValues(std::map< std::string, int > &valueList) const
Gets the list of available values of the device parameter in the form of a map.
ErrorStatus getValue(int &value) const
Gets the current value of the device parameter in the form of the integer value.
ErrorStatus setValue(int value)
Sets the value of the device parameter by inputting the integer value of an enumerator.
ErrorStatus getValue(std::string &valueStr) const
Gets the current value of the device parameter in the form of a string.
Represents a _FloatArray-type device parameter.
Definition Parameter.h:326
ErrorStatus setValue(const std::vector< double > &value)
Sets the value of the device parameter.
ErrorStatus getMin(double &min) const
Gets the minimum settable value of the device parameter.
ErrorStatus getValue(std::vector< double > &value) const
Gets the current value of the device parameter.
ErrorStatus getStep(double &step) const
Gets the adjustment step size of the device parameter.
ErrorStatus getMaxArraySize(int &maxSize) const
Gets the maximum settable size of the vector.
ErrorStatus getUnit(std::string &unit) const
Gets the unit of the device parameter.
ErrorStatus getMax(double &max) const
Gets the maximum settable value of the device parameter.
Represents a _Float-type device parameter.
Definition Parameter.h:120
ErrorStatus getMin(double &min) const
Gets the minimum settable value of the device parameter.
ErrorStatus getStep(double &step) const
Gets the adjustment step size of the device parameter.
ErrorStatus getUnit(std::string &unit) const
Gets the unit of the device parameter.
ErrorStatus getValue(double &value) const
Gets the current value of the device parameter.
ErrorStatus getMax(double &max) const
Gets the maximum settable value of the device parameter.
ErrorStatus setValue(double value)
Sets the value of the device parameter.
Represents an _Int-type device parameter.
Definition Parameter.h:80
ErrorStatus getMax(int &max) const
Gets the maximum settable value of the device parameter.
ErrorStatus getMin(int &min) const
Gets the minimum settable value of the device parameter.
ErrorStatus getUnit(std::string &unit) const
Gets the unit of the device parameter.
ErrorStatus getValue(int &value) const
Gets the current value of the device parameter.
ErrorStatus setValue(int value)
Sets the value of the device parameter.
ErrorStatus getStep(int &step) const
Gets the adjustment step size of the device parameter.
Represents a parameter of the device.
Definition Parameter.h:23
std::string description() const
Returns the description of the device parameter.
Type
Describes the device parameter data types.
Definition Parameter.h:30
@ _RoiArray
Vector of ROI types.
Definition Parameter.h:38
@ _Int
Integer type.
Definition Parameter.h:31
@ _Float
Double type.
Definition Parameter.h:32
@ _Roi
ROI type. See ROI for details.
Definition Parameter.h:35
@ _Enum
Enumeration type.
Definition Parameter.h:34
@ _Bool
Boolean type.
Definition Parameter.h:33
@ _FloatArray
Vector of double types.
Definition Parameter.h:37
@ _Range
Range type. See Range for details.
Definition Parameter.h:36
std::string name() const
Returns the name of the device parameter.
std::shared_ptr< class ParameterImpl > _impl
Definition Parameter.h:70
Parameter(const std::string &name, const std::shared_ptr< ZmqClientImpl > &client, const std::shared_ptr< Json::Value > ¶meterInfo, bool needUpdateMaxAndMin=false, bool isVirtual=false)
bool isWritable() const
Returns a Boolean value that indicates the write permission of the device parameter.
bool isReadable() const
Returns a Boolean value that indicates the read permission of the device parameter.
Type type() const
Returns the data type of the device parameter.
Represents an _ProfileRoi-type device parameter.
Definition Parameter.h:241
ErrorStatus getMaxRoiSize(SizeF &maxSize) const
Gets the maximum settable value of the device parameter.
ErrorStatus setValue(ProfileROI value)
Sets the value of the device parameter.
ErrorStatus getMinRoiSize(SizeF &minSize) const
Gets the minimum settable value of the device parameter.
ErrorStatus getValue(ProfileROI &value) const
Gets the current value of the device parameter.
Represents a _Range-type device parameter.
Definition Parameter.h:286
ErrorStatus getMax(int &max) const
Gets the maximum settable value of the device parameter.
ErrorStatus getMin(int &min) const
Gets the minimum settable value of the device parameter.
ErrorStatus getValue(Range< int > &value) const
Gets the current value of the device parameter.
ErrorStatus getUnit(std::string &unit) const
Gets the unit of the device parameter.
ErrorStatus getStep(int &step) const
Gets the adjustment step size of the device parameter.
ErrorStatus setValue(Range< int > value)
Sets the value of the device parameter.
Represents an _RoiArray-type device parameter.
Definition Parameter.h:271
ErrorStatus getValue(std::vector< ROI > &value) const
Gets the current value of the device parameter.
Represents an _Roi-type device parameter.
Definition Parameter.h:216
ErrorStatus setValue(ROI value)
Sets the value of the device parameter.
ErrorStatus getMaxRoiSize(Size &maxSize) const
Gets the maximum settable value of the device parameter.
ErrorStatus getValue(ROI &value) const
Gets the current value of the device parameter.
Definition Parameter.h:10
Describes the types of errors.
Definition ErrorStatus.h:12
Describes the region of interest (ROI) of a laser profiler.
Definition CommonTypes.h:85
Describes a region of interest (ROI).
Definition CommonTypes.h:67
Describes a value range.
Definition CommonTypes.h:29
Describes a two-dimensional size with a width and a height using double-precision floating-point numb...
Definition CommonTypes.h:54
Describes a two-dimensional size with a width and a height.
Definition CommonTypes.h:40