API Documentation
Loading...
Searching...
No Matches
EntityConverter Class Reference

Primary class responsible for converting CAD entities into native CAD entities. If specified can merge UUID structures based on modified time. More...

#include <EntityConverter.h>

Inheritance diagram for EntityConverter:
[legend]
Collaboration diagram for EntityConverter:
[legend]

Public Member Functions

virtual void add3dFace (const TraceData &data) override
 
void addArc (const ArcData &arc) override
 
virtual void addBlock (const BlockData &block_info) override
 
void addBulge (Geometry &geo, fltp08 bulge, const Vertex< 3, fltp08 > &p1, const Vertex< 3, fltp08 > &p2)
 
void addCircle (const CircleData &c) override
 
virtual void addComment (const String &comment) override
 
void addDictionary (const CADDictionaryObject &dictionary) override
 
void addDimAngular (const AngularDimensionData< 3 > &) override
 
void addDimAngular (const AngularDimensionData< 4 > &) override
 
void addDimDiametric (const DiametricDimension &) override
 
void addDimOrdinate (const DimOrdinateData &) override
 
void addDimRadial (const RadialDimension &) override
 
void addDXFMaterial (DXFMaterial &mat) override
 
virtual void addEllipse (const EllipseData &e) override
 
virtual void addGroup (const DXFGroup &group_info) override
 
virtual void addIndex (const Vector< 4, sint04 > &vertex) override
 
virtual void addInsert (const BlockInsert &data) override
 
void addLayer (const LayerData &layer) final override
 
virtual void addLeader (const LeaderData &data) override
 
void addLine (const LineData &line) override
 
virtual void addLinetype (const LineTypeData &) override
 
virtual void addLinetypeDash (double) override
 
virtual void addMesh (CADMeshData &mesh_data) override
 
virtual void addPoint (const PointData &point) override
 
virtual void addPolyline (const PolylineData &poly) override
 
void addRay (const LineData &ray) override
 
virtual void addSpline (const SplineData &) override
 
virtual void addTextStyle (const StyleData &text_style) override
 
virtual void addTrace (const TraceData &data) override
 
virtual void addVertex (const Vector< 4, fltp08 > &vertex) override
 
void addXLine (const LineData &line) override
 
void addXRecord (const HandleData &record) override
 
void addXRecordData (uint04 value, DXFValueManager *value_manager) override
 
String convertFromCADName (const String &file_name, const TranslatedString &object_type, uint04 object_count)
 
void copyBlock (Model &model, Model &block)
 
Geometry createGeometry ()
 
Model currentBlock ()
 
Geometry currentCloud ()
 
Model currentEntity ()
 
Geometry currentLinework ()
 
GeometrycurrentPolyMesh ()
 
Scene currentRoot ()
 
GeometrycurrentTriMesh ()
 
virtual void endBlock (const uint04 &) override
 
virtual void endEntity () override
 
void endFaceSection ()
 
void endSection () final override
 
 EntityConverter (const File &relative_path, DesignObjectLookup *lookup, ProgressInfo *logger)
 
Material generateNewMaterial ()
 
Buffer< UUIDgetAllReadEntities () const
 
Model getBlockModel (const String &block_name)
 
ExtrusiongetExtrusion ()
 
Model getLayer (const String &layer_name)
 
Material getMaterial ()
 
Material getMaterial (const uint04 &material_handle)
 
const Buffer< UUID > & lineworkRead () const
 
const Buffer< UUID > & meshesRead () const
 
Buffer< ModelmodelRoots () const
 
Scene paperRoot ()
 
Buffer< TextBlockparseString (const String &text, fltp08 default_height)
 
const Buffer< UUID > & pointsRead () const
 
void setAttributes (const DXFAttributes &) override
 
void setAutoNameObjects (bool auto_name_objects)
 
void setExtrusion (fltp08 dx, fltp08 dy, fltp08 dz, fltp08 elevation) override
 
void setGroupImport (bool group_import)
 
void setHandleManager (const DynamicPointer< CADHandleManager > &handle_manager)
 
void setIgnoreKnownBlocks (bool ignore_known_blocks)
 
void setTextFacingCamera (bool text_face_camera)
 
void setupColorForGeoVertices ()
 
void setupEntityMaterial (Model model)
 
void setVariableInt (const String &label, int value, int key_label) override
 
const ConstPointer< Unit > & unit () const
 
virtual ~EntityConverter ()
 
- Public Member Functions inherited from CADEntityStreamer
virtual void add3dFace (const Triangle< 3, fltp08 > &)
 
virtual void addAttribute (const Attrib &)
 
virtual void addAttributeDefintion (const Attrib &)
 
virtual void addControlPoint (const Vector< 4, fltp08 > &)
 
virtual void addDictionaryEntry (const String &, const String &)
 
virtual void addDimAlign (const DimAlignedData &)
 
virtual void addDimLinear (const LinearDimension &)
 
virtual void addFitPoint (const Vector< 3, fltp08 > &)
 
virtual void addHatch (const HatchData &)
 
virtual void addHatchEdge (const HatchEdgeData &)
 
virtual void addHatchLoop (const HatchLoopData &)
 
virtual void addImage (const CADImageData &)
 
virtual void addKnot (fltp08)
 
virtual void addLeaderVertex (const Vector< 2, fltp08 > &)
 
virtual void addText (const TextData &)
 
 CADEntityStreamer (ProgressInfo *logger)
 
virtual void endSequence ()
 
ExtrusiongetExtrusion ()
 
virtual void linkImage (const ImageDefData &)
 
virtual void processCodeValuePair (unsigned int, const String &)
 
virtual void setVariableDouble (const String &, double, int)
 
virtual void setVariableString (const String &, const String &, int)
 
virtual void setVariableVector (const String &, Vector< 3, fltp08 >, int)
 
virtual void setVertex (uint04, const Vector< 4, fltp08 > &)
 
virtual ~CADEntityStreamer ()=default
 

Static Public Member Functions

static Matrix< fltp08GetOrientation (const Vector< 3, fltp08 > &extrusion)
 

Additional Inherited Members

- Protected Attributes inherited from CADEntityStreamer
Extrusion m_extrusion
 
bool m_log_features
 
ProgressInfom_logger
 

Detailed Description

Primary class responsible for converting CAD entities into native CAD entities. If specified can merge UUID structures based on modified time.


Constructor & Destructor Documentation

◆ EntityConverter()

EntityConverter ( const File & relative_path,
DesignObjectLookup * lookup,
ProgressInfo * logger )

◆ ~EntityConverter()

virtual ~EntityConverter ( )
virtual

Member Function Documentation

◆ add3dFace()

virtual void add3dFace ( const TraceData & data)
overridevirtual

Reimplemented from CADEntityStreamer.

◆ addArc()

void addArc ( const ArcData & arc)
overridevirtual

Reimplemented from CADEntityStreamer.

◆ addBlock()

virtual void addBlock ( const BlockData & block_info)
overridevirtual

Reimplemented from CADEntityStreamer.

◆ addBulge()

void addBulge ( Geometry & geo,
fltp08 bulge,
const Vertex< 3, fltp08 > & p1,
const Vertex< 3, fltp08 > & p2 )

◆ addCircle()

void addCircle ( const CircleData & c)
overridevirtual

Reimplemented from CADEntityStreamer.

◆ addComment()

virtual void addComment ( const String & comment)
overridevirtual

Reimplemented from CADEntityStreamer.

◆ addDictionary()

void addDictionary ( const CADDictionaryObject & dictionary)
overridevirtual

Reimplemented from CADEntityStreamer.

◆ addDimAngular() [1/2]

void addDimAngular ( const AngularDimensionData< 3 > & )
overridevirtual

Reimplemented from CADEntityStreamer.

◆ addDimAngular() [2/2]

void addDimAngular ( const AngularDimensionData< 4 > & )
overridevirtual

Reimplemented from CADEntityStreamer.

◆ addDimDiametric()

void addDimDiametric ( const DiametricDimension & )
overridevirtual

Reimplemented from CADEntityStreamer.

◆ addDimOrdinate()

void addDimOrdinate ( const DimOrdinateData & )
overridevirtual

Reimplemented from CADEntityStreamer.

◆ addDimRadial()

void addDimRadial ( const RadialDimension & )
overridevirtual

Reimplemented from CADEntityStreamer.

◆ addDXFMaterial()

void addDXFMaterial ( DXFMaterial & mat)
overridevirtual

Reimplemented from CADEntityStreamer.

◆ addEllipse()

virtual void addEllipse ( const EllipseData & e)
overridevirtual

Reimplemented from CADEntityStreamer.

◆ addGroup()

virtual void addGroup ( const DXFGroup & group_info)
overridevirtual

Reimplemented from CADEntityStreamer.

◆ addIndex()

virtual void addIndex ( const Vector< 4, sint04 > & vertex)
overridevirtual

Reimplemented from CADEntityStreamer.

◆ addInsert()

virtual void addInsert ( const BlockInsert & data)
overridevirtual

Reimplemented from CADEntityStreamer.

◆ addLayer()

void addLayer ( const LayerData & layer)
finaloverridevirtual

Reimplemented from CADEntityStreamer.

◆ addLeader()

virtual void addLeader ( const LeaderData & data)
overridevirtual

Reimplemented from CADEntityStreamer.

◆ addLine()

void addLine ( const LineData & line)
overridevirtual

Reimplemented from CADEntityStreamer.

◆ addLinetype()

virtual void addLinetype ( const LineTypeData & )
overridevirtual

Reimplemented from CADEntityStreamer.

◆ addLinetypeDash()

virtual void addLinetypeDash ( double )
overridevirtual

Reimplemented from CADEntityStreamer.

◆ addMesh()

virtual void addMesh ( CADMeshData & mesh_data)
overridevirtual

Reimplemented from CADEntityStreamer.

◆ addPoint()

virtual void addPoint ( const PointData & point)
overridevirtual

Reimplemented from CADEntityStreamer.

◆ addPolyline()

virtual void addPolyline ( const PolylineData & poly)
overridevirtual

Reimplemented from CADEntityStreamer.

◆ addRay()

void addRay ( const LineData & ray)
overridevirtual

Reimplemented from CADEntityStreamer.

◆ addSpline()

virtual void addSpline ( const SplineData & )
overridevirtual

Reimplemented from CADEntityStreamer.

◆ addTextStyle()

virtual void addTextStyle ( const StyleData & text_style)
overridevirtual

Reimplemented from CADEntityStreamer.

◆ addTrace()

virtual void addTrace ( const TraceData & data)
overridevirtual

Reimplemented from CADEntityStreamer.

◆ addVertex()

virtual void addVertex ( const Vector< 4, fltp08 > & vertex)
overridevirtual

Reimplemented from CADEntityStreamer.

◆ addXLine()

void addXLine ( const LineData & line)
overridevirtual

Reimplemented from CADEntityStreamer.

◆ addXRecord()

void addXRecord ( const HandleData & record)
overridevirtual

Reimplemented from CADEntityStreamer.

◆ addXRecordData()

void addXRecordData ( uint04 value,
DXFValueManager * value_manager )
overridevirtual

Reimplemented from CADEntityStreamer.

◆ convertFromCADName()

String convertFromCADName ( const String & file_name,
const TranslatedString & object_type,
uint04 object_count )

◆ copyBlock()

void copyBlock ( Model & model,
Model & block )

◆ createGeometry()

Geometry createGeometry ( )

◆ currentBlock()

Model currentBlock ( )

◆ currentCloud()

Geometry currentCloud ( )

◆ currentEntity()

Model currentEntity ( )

◆ currentLinework()

Geometry currentLinework ( )

◆ currentPolyMesh()

Geometry & currentPolyMesh ( )

◆ currentRoot()

Scene currentRoot ( )

◆ currentTriMesh()

Geometry & currentTriMesh ( )

◆ endBlock()

virtual void endBlock ( const uint04 & )
overridevirtual

Reimplemented from CADEntityStreamer.

◆ endEntity()

virtual void endEntity ( )
overridevirtual

Reimplemented from CADEntityStreamer.

◆ endFaceSection()

void endFaceSection ( )

◆ endSection()

void endSection ( )
finaloverridevirtual

Reimplemented from CADEntityStreamer.

◆ generateNewMaterial()

Material generateNewMaterial ( )

◆ getAllReadEntities()

Buffer< UUID > getAllReadEntities ( ) const
nodiscard

◆ getBlockModel()

Model getBlockModel ( const String & block_name)

◆ getExtrusion()

Extrusion & getExtrusion ( )

◆ getLayer()

Model getLayer ( const String & layer_name)

◆ getMaterial() [1/2]

Material getMaterial ( )

◆ getMaterial() [2/2]

Material getMaterial ( const uint04 & material_handle)

◆ GetOrientation()

static Matrix< fltp08 > GetOrientation ( const Vector< 3, fltp08 > & extrusion)
static

◆ lineworkRead()

const Buffer< UUID > & lineworkRead ( ) const

◆ meshesRead()

const Buffer< UUID > & meshesRead ( ) const

◆ modelRoots()

Buffer< Model > modelRoots ( ) const

◆ paperRoot()

Scene paperRoot ( )

◆ parseString()

Buffer< TextBlock > parseString ( const String & text,
fltp08 default_height )

◆ pointsRead()

const Buffer< UUID > & pointsRead ( ) const

◆ setAttributes()

void setAttributes ( const DXFAttributes & )
overridevirtual

Reimplemented from CADEntityStreamer.

◆ setAutoNameObjects()

void setAutoNameObjects ( bool auto_name_objects)

◆ setExtrusion()

void setExtrusion ( fltp08 dx,
fltp08 dy,
fltp08 dz,
fltp08 elevation )
overridevirtual

Reimplemented from CADEntityStreamer.

◆ setGroupImport()

void setGroupImport ( bool group_import)

◆ setHandleManager()

void setHandleManager ( const DynamicPointer< CADHandleManager > & handle_manager)

◆ setIgnoreKnownBlocks()

void setIgnoreKnownBlocks ( bool ignore_known_blocks)

◆ setTextFacingCamera()

void setTextFacingCamera ( bool text_face_camera)

◆ setupColorForGeoVertices()

void setupColorForGeoVertices ( )

◆ setupEntityMaterial()

void setupEntityMaterial ( Model model)

◆ setVariableInt()

void setVariableInt ( const String & label,
int value,
int key_label )
overridevirtual

Reimplemented from CADEntityStreamer.

◆ unit()

const ConstPointer< Unit > & unit ( ) const

The documentation for this class was generated from the following file: