lj_qualibration/src/qualib_refacto/wait_space.rs

30 lines
587 B
Rust

use super::{Param, Sequence};
use crate::point::Point;
use opencv::{core::Mat, Result};
#[derive(Debug, Clone, Copy)]
pub struct WaitSpace {}
impl WaitSpace {
pub fn new() -> Self {
Self {}
}
}
impl Sequence for WaitSpace {
//type Obj = Self;
fn draw(&self, mem: &Param) -> Option<Vec<Point>> {
if mem.key == 32 {
return None;
}
Some(vec![])
}
fn compute_sequence(&mut self, _mem: &mut Param) -> Result<(), Box<dyn std::error::Error>> {
Ok(())
}
fn is_capture(&self) -> bool {
false
}
}