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,
56 enum class DVSENSE_API ToolParameterType
105 return "Min: " + std::to_string(min) +
" Max: " + std::to_string(max) +
" Default: " + std::to_string(default_value) +
" Unit: " + unit;
131 return "Min: " + std::to_string(min) +
" Max: " + std::to_string(max) +
" Default: " + std::to_string(default_value) +
" Unit: " + unit;
154 return "Default: " + std::to_string(default_value);
169 return "Options: " + std::to_string(options.size()) +
" Default: " + default_value;
std::string description
定义 ToolInfo.h:49
std::string DVSENSE_API to_string(ToolType type)
ToolType tool_type
定义 ToolInfo.h:46
std::vector< std::string > parameter_names
定义 ToolInfo.h:48
std::string DVSENSE_API ToolParameterTypeToString(ToolParameterType type)
将 ToolParameterType 转换为字符串。
std::string tool_name
定义 ToolInfo.h:47
参数的基本信息,包括名称、描述和类型。\ 要获取详细信息,请参考 CameraTool::getParamInfo 。
定义 ToolInfo.h:83
ToolParameterType type
定义 ToolInfo.h:86
std::string toString()
定义 ToolInfo.h:87
std::string name
定义 ToolInfo.h:84
std::string description
定义 ToolInfo.h:85
布尔参数的详细信息。
定义 ToolInfo.h:149
std::string toString()
定义 ToolInfo.h:153
std::function< bool(bool &)> readValue
定义 ToolInfo.h:151
bool default_value
定义 ToolInfo.h:150
std::function< bool(bool)> writeValue
定义 ToolInfo.h:152
枚举参数的详细信息。
定义 ToolInfo.h:163
std::string toString()
定义 ToolInfo.h:168
std::vector< std::string > options
定义 ToolInfo.h:164
std::function< bool(std::string &)> readValue
定义 ToolInfo.h:166
std::function< bool(std::string)> writeValue
定义 ToolInfo.h:167
std::string default_value
定义 ToolInfo.h:165
浮点数参数的详细信息。
定义 ToolInfo.h:123
std::string unit
定义 ToolInfo.h:127
float default_value
定义 ToolInfo.h:126
std::string toString()
定义 ToolInfo.h:130
std::function< bool(float)> writeValue
定义 ToolInfo.h:129
std::function< bool(float &)> readValue
定义 ToolInfo.h:128
float max
定义 ToolInfo.h:125
float min
定义 ToolInfo.h:124
float constraintValue(float value)
定义 ToolInfo.h:133
整数参数的详细信息。
定义 ToolInfo.h:97
std::function< bool(int)> writeValue
定义 ToolInfo.h:103
std::string toString()
定义 ToolInfo.h:104
std::function< bool(int &)> readValue
定义 ToolInfo.h:102
std::string unit
定义 ToolInfo.h:101
int constraintValue(int value)
定义 ToolInfo.h:107
int default_value
定义 ToolInfo.h:100