Entities

entity

#include "dxfio/entity.hpp"

In DxfIO

Functions

auto TypeOf(const Entity &one) -> std::string_view

The DXF name of an entity, such as "LINE", or the name an unknown entity came in with.

auto BaseOf(const Entity &one) -> const Base &

The handle, owner, reactors and extended data every entity carries. The reference holds as long as the entity stays where it is: Edit::Add and Audit::Repair may move the entities of the list they change.

auto BaseOf(Entity &one) -> Base &

The handle, owner, reactors and extended data every entity carries, to change; it holds as the other BaseOf's does.

using Entity

An entity of the ENTITIES section or of a block: one of the kinds DXF defines, or an Unknown kept as it came.

using Entity = std::variant<Entities::Arc, Entities::Attdef, Entities::Body, Entities::Circle, Entities::ArcDimension, Entities::DgnUnderlay, Entities::Dimension, Entities::DwfUnderlay, Entities::Ellipse, Entities::ExtrudedSurface, Entities::Face3d, Entities::Hatch, Entities::Helix, Entities::Image, Entities::Insert, Entities::LargeRadialDimension, Entities::Leader, Entities::Light, Entities::Line, Entities::LoftedSurface, Entities::LwPolyline, Entities::Mesh, Entities::MultiLeader, Entities::MLine, Entities::MText, Entities::NurbSurface, Entities::Ole2Frame, Entities::PdfUnderlay, Entities::PlaneSurface, Entities::Point, Entities::Polyline, Entities::Ray, Entities::Region, Entities::RevolvedSurface, Entities::Shape, Entities::SectionObject, Entities::Solid, Entities::Spline, Entities::Surface, Entities::SweptSurface, Entities::AcadTable, Entities::Text, Entities::Tolerance, Entities::Trace, Entities::Viewport, Entities::Solid3d, Entities::Wipeout, Entities::XLine, Unknown>;

using List

The entities of a section or a block, in the order they are drawn.

using List = std::vector<Entity>;