[][src]Trait maker_panel::features::Feature

pub trait Feature: Display + DynClone + Debug {
    pub fn name(&self) -> &'static str;
pub fn translate(&mut self, v: Coordinate<f64>);
pub fn edge_union(&self) -> Option<MultiPolygon<f64>>;
pub fn interior(&self) -> Vec<InnerAtom>; pub fn edge_subtract(&self) -> Option<MultiPolygon<f64>> { ... } }

A top-level unit that makes up the geometry of the panel.

Required methods

pub fn name(&self) -> &'static str[src]

Human-readable name describing the construction.

pub fn translate(&mut self, v: Coordinate<f64>)[src]

Adjust all coordinates by the specified amount. Should affect all geometries returned from Feature::edge_union, Feature::edge_subtract, and Feature::interior.

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

Returns the outer geometry describing the boundaries of the panel, which should be unioned with the outer geometry of all other features.

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

Returns the inner geometry describing features on the panel, within the bounds of the computed edge geometry.

Loading content...

Provided methods

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

Returns the outer geometry describing the boundaries of the panel, which should be subtracted from the outer geometry of all other features.

Loading content...

Implementations on Foreign Types

impl<'a> Feature for Box<dyn Feature + 'a>[src]

Loading content...

Implementors

impl Feature for Unit[src]

impl<U, S> Feature for AtPos<U, S> where
    U: Feature + Debug + Clone,
    S: Feature + Debug + Clone
[src]

impl<U: Feature + Clone> Feature for Tile<U>[src]

impl<U: Feature + Debug + Clone> Feature for Column<U>[src]

impl<U: InnerFeature + Clone + Debug> Feature for Circle<U>[src]

impl<U: InnerFeature + Clone + Debug> Feature for Rect<U>[src]

impl<U: InnerFeature + Clone + Debug> Feature for Triangle<U>[src]

Loading content...