1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! Color scheme choices used by colorizer processing blocks.
use ;
/// A type describing the various color scheme choices for colorizer processing blocks.
///
/// This name of this type is not preceded with `Rs2` because this does not map to a librealsense2
/// type from the low-level `realsense-sys` crate. Instead, this is just a selection of better
/// names when setting the `Rs2Option::ColorScheme` option in a processing block that colorizes
/// depth output.
///
/// This enum, much like many others in the `kind` module maps integers of some form to the enum
/// values, and inherits both [`FromPrimitive`](num_traits::FromPrimitive) and
/// [`ToPrimitive`](num_traits::ToPrimitive) from the `num_traits` crate. This is because we want
/// to be able to take advantage of the [`to_f32()`](num_traits::ToPrimitive::to_f32()) function in
/// the low-level API, but use actual color scheme names at a higher level.