pub struct LoupeDissectionState {
pub active_scale: u8,
pub explode_layers_01: f32,
pub cutaway_plane_01: f32,
pub phenology_month: u8,
pub ontogenetic_progress_01: f32,
pub osteology_vis_01: f32,
pub myology_vis_01: f32,
pub integument_vis_01: f32,
pub selected_ontology_curie: &'static str,
}Expand description
Dynamic anatomical dissection, tissue peel, and phenological state in the 3D Specimen Loupe.
Fields§
§active_scale: u8Active biological scale (1..=5):
- 1: Whole Organism Macroform (Canopy / Habit)
- 2: Stem, Bark Wedge & Secondary Xylem Radial Cross-Section
- 3: Reproductive Organ Dissection (Flower / Operculum / Woody Gumnut)
- 4: Foliar Lamina Venation & Cellular Microscopic Histology
- 5: Comparative Vertebrate 3-Layer Anatomy (Osteology / Myology / Integument)
explode_layers_01: f32Exploded view layer separation ratio in [0.0, 1.0].
cutaway_plane_01: f32Anatomical cutaway slicing plane progress in [0.0, 1.0].
phenology_month: u8Seasonal phenology month (1..=12, 1 = January, 12 = December).
ontogenetic_progress_01: f32Ontogenetic developmental progress in [0.0, 1.0] (Seedling -> Ancient).
osteology_vis_01: f32Skeletal system (osteology) layer visibility in [0.0, 1.0].
myology_vis_01: f32Muscular system (myology) layer visibility in [0.0, 1.0].
integument_vis_01: f32External skin/pelage/plumage (integument) layer visibility in [0.0, 1.0].
selected_ontology_curie: &'static strActive biological ontology CURIE (e.g. po:0009010, po:0000032, uberon:0002415).
Implementations§
Source§impl LoupeDissectionState
impl LoupeDissectionState
Sourcepub fn select_scale(&mut self, scale: u8)
pub fn select_scale(&mut self, scale: u8)
Selects the active biological scale (1..=5) and updates the default CURIE for that scale.
Sourcepub fn set_layer_peel(&mut self, peel_01: f32)
pub fn set_layer_peel(&mut self, peel_01: f32)
Sets the anatomical cutaway slicing plane progress ([0.0, 1.0]).
Sourcepub fn set_anthesis_progress(&mut self, progress_01: f32)
pub fn set_anthesis_progress(&mut self, progress_01: f32)
Sets the ontogenetic / floral anthesis progress ([0.0, 1.0]).
Sourcepub fn set_explode_layer(&mut self, explode_01: f32)
pub fn set_explode_layer(&mut self, explode_01: f32)
Sets the exploded-view layer separation ratio ([0.0, 1.0]).
Sourcepub fn set_vertebrate_layer_visibility(
&mut self,
osteology_vis_01: f32,
myology_vis_01: f32,
integument_vis_01: f32,
)
pub fn set_vertebrate_layer_visibility( &mut self, osteology_vis_01: f32, myology_vis_01: f32, integument_vis_01: f32, )
Sets the 3-layer comparative vertebrate visibility (osteology, myology, integument in [0.0, 1.0]).
Sourcepub fn pick_callout_pin(
&mut self,
ray_origin: [f32; 3],
ray_dir: [f32; 3],
max_dist: f32,
) -> Option<&'static AnatomicalCalloutPin>
pub fn pick_callout_pin( &mut self, ray_origin: [f32; 3], ray_dir: [f32; 3], max_dist: f32, ) -> Option<&'static AnatomicalCalloutPin>
Queries the closest canonical callout pin along ray_origin + t * ray_dir for the active scale
and updates selected_ontology_curie when a hit occurs within max_dist.
Trait Implementations§
Source§impl Clone for LoupeDissectionState
impl Clone for LoupeDissectionState
impl Copy for LoupeDissectionState
Source§impl Debug for LoupeDissectionState
impl Debug for LoupeDissectionState
Source§impl Default for LoupeDissectionState
impl Default for LoupeDissectionState
Source§impl Deserialize<'static> for LoupeDissectionState
impl Deserialize<'static> for LoupeDissectionState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Source§impl PartialEq for LoupeDissectionState
impl PartialEq for LoupeDissectionState
Source§impl Serialize for LoupeDissectionState
impl Serialize for LoupeDissectionState
impl StructuralPartialEq for LoupeDissectionState
Auto Trait Implementations§
impl Freeze for LoupeDissectionState
impl RefUnwindSafe for LoupeDissectionState
impl Send for LoupeDissectionState
impl Sync for LoupeDissectionState
impl Unpin for LoupeDissectionState
impl UnsafeUnpin for LoupeDissectionState
impl UnwindSafe for LoupeDissectionState
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more