class OptionInformation
August 13, 2019 ยท View on GitHub
Member values
| Member name | Data type | Description |
|---|---|---|
| sensor | uint32 | The sensor (color or depth) |
| option | uint32 | The option |
| supported | bool | Is the option supported by the chosen sensor? |
| read_only | bool | Is the option read-only, or can it be changed? |
| minimum | float32 | Minimum value for the option |
| maximum | float32 | Maximum value for the option |
| step | float32 | Step size for the option value (if it takes on discrete values) |
| default_value | float32 | Default value for the option |
Member functions
| Function name | Return type | Input type | Description |
|---|---|---|---|
| sensor() const | uint32 | void | Returns the current value of sensor. If the sensor is not set, returns 0. |
| set_sensor() | void | uint32 | Sets the value of sensor. After calling this, sensor() will return value. |
| clear_sensor() | void | void | Clears the value of sensor. After calling this, sensor() will return the empty string/empty bytes. |
| option() const | uint32 | void | Returns the current value of option. If the option is not set, returns 0. |
| set_option() | void | uint32 | Sets the value of option. After calling this, option() will return value. |
| clear_option() | void | void | Clears the value of option. After calling this, option() will return the empty string/empty bytes. |
| supported() | bool | void | Returns the current value of supported. If the supported is not set, returns 0. |
| set_supported() | void | bool | Sets the value of supported. After calling this, supported() will return value. |
| clear_supported() | void | void | Clears the value of supported. After calling this, supported() will return 0. |
| read_only() | bool | void | Returns the current value of read_only. If the read_only is not set, returns 0. |
| set_read_only() | void | bool | Sets the value of read_only. After calling this, read_only() will return value. |
| clear_read_only() | void | void | Clears the value of read_only. After calling this, read_only() will return 0. |
| minimum() | float32 | void | Returns the current value of minimum. If the minimum is not set, returns 0. |
| set_minimum() | void | float32 | Sets the value of minimum. After calling this, minimum() will return value. |
| clear_minimum() | void | void | Clears the value of minimum. After calling this, minimum() will return 0. |
| maximum() | float32 | void | Returns the current value of maximum. If the maximum is not set, returns 0. |
| set_maximum() | void | float32 | Sets the value of maximum. After calling this, maximum() will return value. |
| clear_maximum() | void | void | Clears the value of maximum. After calling this, maximum() will return 0. |
| step() | float32 | void | Returns the current value of step. If the step is not set, returns 0. |
| set_step() | void | float32 | Sets the value of step. After calling this, step() will return value. |
| clear_step() | void | void | Clears the value of step. After calling this, step() will return 0. |
| default_value() | float32 | void | Returns the current value of default_value. If the default_value is not set, returns 0. |
| set_default_value() | void | float32 | Sets the value of default_value. After calling this, default_value() will return value. |
| clear_default_value() | void | void | Clears the value of default_value. After calling this, default_value() will return 0. |
Parent topic: VisionConfig (C++)