Entities
entities/ underlay
#include "dxfio/entities/underlay.hpp"In DxfIO::Entities
struct Bound
A vertex of an underlay's clipping boundary.
| Field | Type | Meaning |
|---|---|---|
Position | Vector | The vertex, in the entity's own coordinate system. Groups 11, 21. |
struct Overlaid
The AcDbUnderlayReference subclass: where an underlay lies, how it is shown and how it is clipped.
| Field | Type and default | Meaning |
|---|---|---|
Definition | Handle | The definition object that names the file. Group 340. |
Position | Vector | The insertion point, in world coordinates. Groups 10, 20, 30. |
Scale | Vector{.X = 1, .Y = 1, .Z = 1} | The scale along each axis. Groups 41, 42, 43. |
Rotation | double | The rotation, in degrees. Group 50. |
Extrusion | Vector{Up} | The normal of the plane the entity is drawn in. Groups 210, 220, 230. |
Flags | int{Visible} | 1 clipped, 2 on, 4 monochrome, 8 adjusted for the background. Group 280. |
Contrast | int{Whole} | The contrast, 20 to 100. Group 281. |
Fade | int | The fade, 0 to 80. Group 282. |
Clip | std::vector<Bound> | The vertices of the clipping boundary, two opposite corners for a rectangle. |
struct UnderlayOf
template <Overlay KindV>An underlay of the kind given: a PDF, DWF or DGN file shown under the drawing.
| Field | Type | Meaning |
|---|---|---|
Record | Entities::Record | The layer, linetype, color and the rest every entity carries. |
Picture | std::string | The proxy graphics, for programs that cannot draw the entity. Group 92, or 160 from R2010, then 310. |
Overlaid | Boxed<Entities::Overlaid> | Where the underlay lies and how it is shown, from the AcDbUnderlayReference subclass. |
using PdfUnderlay
A PDFUNDERLAY: a page of a PDF file shown under the drawing.
using PdfUnderlay = UnderlayOf<Overlay::Pdf>;using DwfUnderlay
A DWFUNDERLAY: a sheet of a DWF file shown under the drawing.
using DwfUnderlay = UnderlayOf<Overlay::Dwf>;using DgnUnderlay
A DGNUNDERLAY: a model of a MicroStation DGN file shown under the drawing.
using DgnUnderlay = UnderlayOf<Overlay::Dgn>;Constants
Visible | int = 2 | The display flags of a new underlay: on, unclipped, in color. |
Whole | int = 100 | The full contrast a new underlay takes. |