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).
Source§impl PmiView
impl PmiView
Sourcepub fn hides(&self, solid: &str) -> bool
pub fn hides(&self, solid: &str) -> bool
Whether this view hides the solid named solid: it is in the
captured baseline (display.hidden), or an ENABLED hide step names it
or a component it belongs to (entry_names_solid). Names only, no
run needed: the viewport applies it the moment a step is added,
edited, removed or undone, and the sheets, the 3D PDF and the
instructions pictures read the same answer.
Sourcepub fn hide_targets(&self) -> impl Iterator<Item = &str>
pub fn hide_targets(&self) -> impl Iterator<Item = &str>
Every target of the view’s enabled hide steps, in step order.