[][src]Struct maker_panel::Panel

pub struct Panel<'a> {
    pub features: Vec<Box<dyn Feature + 'a>>,
    // some fields omitted
}

Combines features into single geometry.

Fields

features: Vec<Box<dyn Feature + 'a>>

Implementations

impl<'a> Panel<'a>[src]

pub fn new() -> Self[src]

Constructs a Panel.

pub fn with_capacity(sz: usize) -> Self[src]

Constructs a Panel, pre-sized to hold the given number of features::Feature objects before need an allocation.

pub fn convex_hull(&mut self, convex_hull: bool)[src]

Enables or disables a convex hull transform on the computed edge geometry.

pub fn push<F: Feature + 'a>(&mut self, f: F)[src]

Adds a feature to the panel.

pub fn push_spec(&mut self, spec_str: &str) -> Result<(), SpecErr>[src]

Adds the feature described by the given spec to the panel.

pub fn edge_geometry(&self) -> Option<MultiPolygon<f64>>[src]

Computes the outer geometry of the panel.

pub fn interior_geometry(&self) -> Vec<InnerAtom>[src]

Computes the inner geometry of the panel.

pub fn serialize_gerber_edges<W: Write>(&self, w: &mut W) -> Result<(), Err>[src]

Serializes a gerber file describing the PCB profile to the provided writer.

pub fn serialize_gerber_layer<W: Write>(
    &self,
    layer: Layer,
    w: &mut W
) -> Result<(), Err>
[src]

Serializes a gerber file describing the layer (copper or soldermask) to to the provided writer.

pub fn serialize_drill<W: Write>(
    &self,
    w: &mut W,
    want_plated: bool
) -> Result<(), Error>
[src]

Serializes a drill file describing drill hits to the provided writer.

pub fn tessellate_2d(&self) -> Result<VertexBuffers<TPoint, u16>, Err>[src]

Computes the 2d tessellation of the panel.

pub fn tessellate_3d(&self) -> Result<(Vec<[f64; 3]>, Vec<u16>), Err>[src]

Computes the 3d tessellation of the panel.

pub fn make_svg(&self) -> Result<Tree, Err>[src]

Produces an SVG tree rendering the panel.

Trait Implementations

impl Display for Panel<'_>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Panel<'a>[src]

impl<'a> !Send for Panel<'a>[src]

impl<'a> !Sync for Panel<'a>[src]

impl<'a> Unpin for Panel<'a>[src]

impl<'a> !UnwindSafe for Panel<'a>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<Src, Scheme> ApproxFrom<Src, Scheme> for Src where
    Scheme: ApproxScheme
[src]

type Err = NoError

The error type produced by a failed conversion.

impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src where
    Dst: ApproxFrom<Src, Scheme>,
    Scheme: ApproxScheme
[src]

type Err = <Dst as ApproxFrom<Src, Scheme>>::Err

The error type produced by a failed conversion.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T, Dst> ConvAsUtil<Dst> for T[src]

impl<T> ConvUtil for T[src]

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> TryConv for T

impl<T> TryConv for T

impl<Src> TryFrom<Src> for Src[src]

type Err = NoError

The error type produced by a failed conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<Src, Dst> TryInto<Dst> for Src where
    Dst: TryFrom<Src>, 
[src]

type Err = <Dst as TryFrom<Src>>::Err

The error type produced by a failed conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<Src> ValueFrom<Src> for Src[src]

type Err = NoError

The error type produced by a failed conversion.

impl<Src, Dst> ValueInto<Dst> for Src where
    Dst: ValueFrom<Src>, 
[src]

type Err = <Dst as ValueFrom<Src>>::Err

The error type produced by a failed conversion.