Struct dxf::Drawing [] [src]

pub struct Drawing {
    pub header: Header,
    pub classes: Vec<Class>,
    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>,
    pub blocks: Vec<Block>,
    pub entities: Vec<Entity>,
    pub objects: Vec<Object>,
    pub thumbnail: Option<Vec<u8>>,
}

Represents a DXF drawing.

Fields

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

The classes 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.

The blocks contained by the drawing.

The entities contained by the drawing.

The objects contained by the drawing.

The thumbnail image preview of the drawing.

Methods

impl Drawing
[src]

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 as binary to anything that implements the Write trait.

Writes a Drawing to disk, using a BufWriter.

Writes a Drawing as binary to disk, using a BufWriter.

Writes a Drawing as DXB to anything that implements the Write trait.

Writes a Drawing as DXB to disk, using a BufWriter.

Clears all items from the Drawing.

Normalizes the Drawing by ensuring expected items are present.

Trait Implementations

impl Default for Drawing
[src]

Returns the "default value" for a type. Read more