9 #ifdef DVSENSE_HAL_EXPORTS
10 #define DVSENSE_API __declspec(dllexport)
12 #define DVSENSE_API __declspec(dllimport)
26 enum class DVSENSE_API ToolType
32 TOOL_EVENT_TRAIL_FILTER,
33 TOOL_EVENT_RATE_CONTROL,
57 enum class DVSENSE_API ToolParameterType
106 return "Min: " + std::to_string(min) +
" Max: " + std::to_string(max) +
" Default: " + std::to_string(default_value) +
" Unit: " + unit;
132 return "Min: " + std::to_string(min) +
" Max: " + std::to_string(max) +
" Default: " + std::to_string(default_value) +
" Unit: " + unit;
155 return "Default: " + std::to_string(default_value);
170 return "Options: " + std::to_string(options.size()) +
" Default: " + default_value;
179 return " Default: " + default_value;
std::string description
定义 ToolInfo.h:50
std::string DVSENSE_API to_string(ToolType type)
ToolType tool_type
定义 ToolInfo.h:47
std::vector< std::string > parameter_names
定义 ToolInfo.h:49
std::string DVSENSE_API ToolParameterTypeToString(ToolParameterType type)
将 ToolParameterType 转换为字符串。
std::string tool_name
定义 ToolInfo.h:48
参数的基本信息,包括名称、描述和类型。\ 要获取详细信息,请参考 CameraTool::getParamInfo 。
定义 ToolInfo.h:84
ToolParameterType type
定义 ToolInfo.h:87
std::string toString()
定义 ToolInfo.h:88
std::string name
定义 ToolInfo.h:85
std::string description
定义 ToolInfo.h:86
布尔参数的详细信息。
定义 ToolInfo.h:150
std::string toString()
定义 ToolInfo.h:154
std::function< bool(bool &)> readValue
定义 ToolInfo.h:152
bool default_value
定义 ToolInfo.h:151
std::function< bool(bool)> writeValue
定义 ToolInfo.h:153
枚举参数的详细信息。
定义 ToolInfo.h:164
std::string toString()
定义 ToolInfo.h:169
std::vector< std::string > options
定义 ToolInfo.h:165
std::function< bool(std::string &)> readValue
定义 ToolInfo.h:167
std::function< bool(std::string)> writeValue
定义 ToolInfo.h:168
std::string default_value
定义 ToolInfo.h:166
浮点数参数的详细信息。
定义 ToolInfo.h:124
std::string unit
定义 ToolInfo.h:128
float default_value
定义 ToolInfo.h:127
std::string toString()
定义 ToolInfo.h:131
std::function< bool(float)> writeValue
定义 ToolInfo.h:130
std::function< bool(float &)> readValue
定义 ToolInfo.h:129
float max
定义 ToolInfo.h:126
float min
定义 ToolInfo.h:125
float constraintValue(float value)
定义 ToolInfo.h:134
整数参数的详细信息。
定义 ToolInfo.h:98
std::function< bool(int)> writeValue
定义 ToolInfo.h:104
std::string toString()
定义 ToolInfo.h:105
std::function< bool(int &)> readValue
定义 ToolInfo.h:103
std::string unit
定义 ToolInfo.h:102
int constraintValue(int value)
定义 ToolInfo.h:108
int default_value
定义 ToolInfo.h:101
std::string default_value
定义 ToolInfo.h:175
std::function< bool(std::string &)> readValue
定义 ToolInfo.h:176
std::string toString()
定义 ToolInfo.h:178
std::function< bool(std::string)> writeValue
定义 ToolInfo.h:177