pub struct SheetDrawing {
pub id: String,
pub name: String,
pub width_mm: f64,
pub height_mm: f64,
pub views: Vec<ViewDrawing>,
pub dimensions: Vec<DimensionDrawing>,
pub ordinates: Vec<OrdinateDrawing>,
pub frame: Option<FrameDrawing>,
}Expand description
A whole sheet, projected — the sheet viewport draws this and the SVG and PDF writers serialise it.
Fields§
§id: String§name: String§width_mm: f64§height_mm: f64§views: Vec<ViewDrawing>§dimensions: Vec<DimensionDrawing>The sheet’s OWN dimensions — authored on the paper, anchored to the
placements’ projected geometry rather than to a saved PMI view. They
live beside the views rather than inside one because a dimension is the
SHEET’s (see super::dimension).
ordinates: Vec<OrdinateDrawing>The sheet’s ORDINATE SETS, laid out (super::ordinate). Beside the
dimensions for the same reason they are beside them in the block: a set
is its own object, not a dimension of a fifth kind.
frame: Option<FrameDrawing>The paper’s own furniture — the border and the title block — in the same
millimetres and the same lines-and-text as the views. None on a sheet
that draws neither. It is built by the ENGINE rather than here
(crate::sheets::frame::frame): a title block carries the document’s
name and the date, which a projection knows nothing about.
Trait Implementations§
Source§impl Clone for SheetDrawing
impl Clone for SheetDrawing
Source§impl Debug for SheetDrawing
impl Debug for SheetDrawing
Source§impl PartialEq for SheetDrawing
impl PartialEq for SheetDrawing
Source§impl Serialize for SheetDrawing
impl Serialize for SheetDrawing
impl StructuralPartialEq for SheetDrawing
Auto Trait Implementations§
impl Freeze for SheetDrawing
impl RefUnwindSafe for SheetDrawing
impl Send for SheetDrawing
impl Sync for SheetDrawing
impl Unpin for SheetDrawing
impl UnsafeUnpin for SheetDrawing
impl UnwindSafe for SheetDrawing
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
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,
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