pub struct PmiView {
pub id: String,
pub name: String,
pub camera: Option<PmiCamera>,
pub display: PmiDisplay,
pub annotations: Vec<PmiAnnotation>,
}Expand description
A PMI view: a camera snapshot, display state and the annotations it owns.
Fields§
§id: String§name: String§camera: Option<PmiCamera>§display: PmiDisplay§annotations: Vec<PmiAnnotation>Implementations§
Source§impl PmiView
impl PmiView
pub fn section_plane(&self) -> Option<([f64; 3], [f64; 3])>
Sourcepub fn section_plane_in(
&self,
report: Option<&PmiViewReport>,
) -> Option<([f64; 3], [f64; 3])>
pub fn section_plane_in( &self, report: Option<&PmiViewReport>, ) -> Option<([f64; 3], [f64; 3])>
Self::section_plane, taking a Plane section’s plane from the
view’s last report (the document stores only the reference’s name).
Sourcepub fn section_planes_in(
&self,
report: Option<&PmiViewReport>,
) -> Vec<([f64; 3], [f64; 3])>
pub fn section_planes_in( &self, report: Option<&PmiViewReport>, ) -> Vec<([f64; 3], [f64; 3])>
Every cutting plane of the view’s section, (point, kept-side normal), the first being Self::section_plane_in’s: empty without
a section (or when its first plane does not resolve). A further plane
goes through the section’s origin (else the camera target, else the
first plane’s point) plus its offset; an unknown axis is skipped.
Sourcepub fn section_planes(&self) -> Vec<([f64; 3], [f64; 3])>
pub fn section_planes(&self) -> Vec<([f64; 3], [f64; 3])>
Self::section_planes_in from Self::section_plane (a Plane
section resolved into the view itself, as the run does).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PmiView
impl<'de> Deserialize<'de> for PmiView
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for PmiView
Auto Trait Implementations§
impl Freeze for PmiView
impl RefUnwindSafe for PmiView
impl Send for PmiView
impl Sync for PmiView
impl Unpin for PmiView
impl UnsafeUnpin for PmiView
impl UnwindSafe for PmiView
Blanket Implementations§
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
Mutably borrows from an owned value. Read more