Struct dxf::Drawing [] [src]

pub struct Drawing {
    pub header: Header,
    pub entities: Vec<Entity>,
    pub app_ids: Vec<AppId>,
    pub block_records: Vec<BlockRecord>,
    pub dim_styles: Vec<DimStyle>,
    pub layers: Vec<Layer>,
    pub line_types: Vec<LineType>,
    pub styles: Vec<Style>,
    pub ucs: Vec<Ucs>,
    pub views: Vec<View>,
    pub view_ports: Vec<ViewPort>,
}

Represents a DXF drawing.

Fields

The drawing's header. Contains various drawing-specific values and settings.

The entities contained by the drawing.

The AppIds contained by the drawing.

The block records contained by the drawing.

The dimension styles contained by the drawing.

The layers contained by the drawing.

The line types contained by the drawing.

The visual styles contained by the drawing.

The user coordinate systems (UCS) contained by the drawing.

The views contained by the drawing.

The view ports contained by the drawing.

Methods

impl Drawing
[src]

Creates a new empty Drawing.

Loads a Drawing from anything that implements the Read trait.

Loads a Drawing from disk, using a BufReader.

Writes a Drawing to anything that implements the Write trait.

Writes a Drawing to disk, using a BufWriter.