use crate::Backend;
use autd3_driver::defined::float;
pub struct NullBackend {}
pub struct NullPlotConfig {}
impl Backend for NullBackend {
type PlotConfig = NullPlotConfig;
fn new() -> Self {
Self {}
}
fn initialize(&mut self) -> Result<(), crate::error::VisualizerError> {
Ok(())
}
fn plot_1d(
_observe_points: Vec<float>,
_acoustic_pressures: Vec<autd3_driver::defined::Complex>,
_resolution: float,
_x_label: &str,
_config: Self::PlotConfig,
) -> Result<(), crate::error::VisualizerError> {
Err(crate::error::VisualizerError::NotSupported)
}
fn plot_2d(
_observe_x: Vec<float>,
_observe_y: Vec<float>,
_acoustic_pressures: Vec<autd3_driver::defined::Complex>,
_resolution: float,
_x_label: &str,
_y_label: &str,
_config: Self::PlotConfig,
) -> Result<(), crate::error::VisualizerError> {
Err(crate::error::VisualizerError::NotSupported)
}
fn plot_modulation(
_modulation: Vec<float>,
_config: Self::PlotConfig,
) -> Result<(), crate::error::VisualizerError> {
Err(crate::error::VisualizerError::NotSupported)
}
fn plot_phase<T: autd3_driver::geometry::Transducer>(
_config: Self::PlotConfig,
_geometry: &autd3_driver::geometry::Geometry<T>,
_phases: Vec<float>,
) -> Result<(), crate::error::VisualizerError> {
Err(crate::error::VisualizerError::NotSupported)
}
}