Entities

entities/underlay

#include "dxfio/entities/underlay.hpp"

In DxfIO::Entities

struct Bound

A vertex of an underlay's clipping boundary.

FieldTypeMeaning
PositionVectorThe 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.

FieldType and defaultMeaning
DefinitionHandleThe definition object that names the file. Group 340.
PositionVectorThe insertion point, in world coordinates. Groups 10, 20, 30.
ScaleVector{.X = 1, .Y = 1, .Z = 1}The scale along each axis. Groups 41, 42, 43.
RotationdoubleThe rotation, in degrees. Group 50.
ExtrusionVector{Up}The normal of the plane the entity is drawn in. Groups 210, 220, 230.
Flagsint{Visible}1 clipped, 2 on, 4 monochrome, 8 adjusted for the background. Group 280.
Contrastint{Whole}The contrast, 20 to 100. Group 281.
FadeintThe fade, 0 to 80. Group 282.
Clipstd::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.

FieldTypeMeaning
RecordEntities::RecordThe layer, linetype, color and the rest every entity carries.
Picturestd::stringThe proxy graphics, for programs that cannot draw the entity. Group 92, or 160 from R2010, then 310.
OverlaidBoxed<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

Visibleint = 2The display flags of a new underlay: on, unclipped, in color.
Wholeint = 100The full contrast a new underlay takes.