disable laser option
This commit is contained in:
parent
59788d5363
commit
65acde713f
1 changed files with 4 additions and 2 deletions
|
@ -122,6 +122,7 @@ pub struct DacConfig{
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
|
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
|
||||||
pub enum StreamSource {
|
pub enum StreamSource {
|
||||||
|
Disabled,
|
||||||
CurrentLines,
|
CurrentLines,
|
||||||
Rectangle,
|
Rectangle,
|
||||||
Grid, // lines
|
Grid, // lines
|
||||||
|
@ -131,12 +132,12 @@ pub enum StreamSource {
|
||||||
}
|
}
|
||||||
|
|
||||||
// usefull to create pull downs with an iterator
|
// usefull to create pull downs with an iterator
|
||||||
pub const STREAM_SOURCES: [StreamSource; 4] = [
|
pub const STREAM_SOURCES: [StreamSource; 5] = [
|
||||||
|
StreamSource::Disabled,
|
||||||
StreamSource::CurrentLines,
|
StreamSource::CurrentLines,
|
||||||
StreamSource::Rectangle,
|
StreamSource::Rectangle,
|
||||||
StreamSource::Grid,
|
StreamSource::Grid,
|
||||||
StreamSource::WorldGrid,
|
StreamSource::WorldGrid,
|
||||||
// StreamSource::Circle,
|
|
||||||
// StreamSource::Spiral
|
// StreamSource::Spiral
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -302,6 +303,7 @@ impl StreamSource{
|
||||||
|
|
||||||
LaserPoints { points, space: CoordinateSpace::World }
|
LaserPoints { points, space: CoordinateSpace::World }
|
||||||
},
|
},
|
||||||
|
StreamSource::Disabled => LaserPoints::default(), // empty set
|
||||||
_ => LaserPoints::default(), // empty set
|
_ => LaserPoints::default(), // empty set
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue