Horizon
|
An abstract adapter class for receiving DXF events when a DXF file is being read. More...
#include <dl_creationadapter.h>
Public Member Functions | |
virtual void | processCodeValuePair (unsigned int, const std::string &) |
Called for every code / value tuple of the DXF file. More... | |
virtual void | endSection () |
Called when a section (entity, table entry, etc.) is finished. More... | |
virtual void | addLayer (const DL_LayerData &) |
Called for every layer. More... | |
virtual void | addLinetype (const DL_LinetypeData &) |
Called for every linetype. More... | |
virtual void | addLinetypeDash (double) |
Called for every dash in linetype pattern. More... | |
virtual void | addBlock (const DL_BlockData &) |
Called for every block. More... | |
virtual void | endBlock () |
Called to end the current block. More... | |
virtual void | addTextStyle (const DL_StyleData &) |
Called for every text style. More... | |
virtual void | addPoint (const DL_PointData &) |
Called for every point. More... | |
virtual void | addLine (const DL_LineData &) |
Called for every line. More... | |
virtual void | addXLine (const DL_XLineData &) |
Called for every xline. More... | |
virtual void | addRay (const DL_RayData &) |
Called for every ray. More... | |
virtual void | addArc (const DL_ArcData &) |
Called for every arc. More... | |
virtual void | addCircle (const DL_CircleData &) |
Called for every circle. More... | |
virtual void | addEllipse (const DL_EllipseData &) |
Called for every ellipse. More... | |
virtual void | addPolyline (const DL_PolylineData &) |
Called for every polyline start. More... | |
virtual void | addVertex (const DL_VertexData &) |
Called for every polyline vertex. More... | |
virtual void | addSpline (const DL_SplineData &) |
Called for every spline. More... | |
virtual void | addControlPoint (const DL_ControlPointData &) |
Called for every spline control point. More... | |
virtual void | addFitPoint (const DL_FitPointData &) |
Called for every spline fit point. More... | |
virtual void | addKnot (const DL_KnotData &) |
Called for every spline knot value. More... | |
virtual void | addInsert (const DL_InsertData &) |
Called for every insert. More... | |
virtual void | addMText (const DL_MTextData &) |
Called for every multi Text entity. More... | |
virtual void | addMTextChunk (const std::string &) |
Called for additional text chunks for MTEXT entities. More... | |
virtual void | addText (const DL_TextData &) |
Called for every text entity. More... | |
virtual void | addArcAlignedText (const DL_ArcAlignedTextData &) |
Called for every arc aligned text entity. More... | |
virtual void | addAttribute (const DL_AttributeData &) |
Called for every block Attribute entity. More... | |
virtual void | addDimAlign (const DL_DimensionData &, const DL_DimAlignedData &) |
Called for every aligned dimension entity. More... | |
virtual void | addDimLinear (const DL_DimensionData &, const DL_DimLinearData &) |
Called for every linear or rotated dimension entity. More... | |
virtual void | addDimRadial (const DL_DimensionData &, const DL_DimRadialData &) |
Called for every radial dimension entity. More... | |
virtual void | addDimDiametric (const DL_DimensionData &, const DL_DimDiametricData &) |
Called for every diametric dimension entity. More... | |
virtual void | addDimAngular (const DL_DimensionData &, const DL_DimAngularData &) |
Called for every angular dimension (2 lines version) entity. More... | |
virtual void | addDimAngular3P (const DL_DimensionData &, const DL_DimAngular3PData &) |
Called for every angular dimension (3 points version) entity. More... | |
virtual void | addDimOrdinate (const DL_DimensionData &, const DL_DimOrdinateData &) |
Called for every ordinate dimension entity. More... | |
virtual void | addLeader (const DL_LeaderData &) |
Called for every leader start. More... | |
virtual void | addLeaderVertex (const DL_LeaderVertexData &) |
Called for every leader vertex. More... | |
virtual void | addHatch (const DL_HatchData &) |
Called for every hatch entity. More... | |
virtual void | addTrace (const DL_TraceData &) |
Called for every trace start. More... | |
virtual void | add3dFace (const DL_3dFaceData &) |
Called for every 3dface start. More... | |
virtual void | addSolid (const DL_SolidData &) |
Called for every solid start. More... | |
virtual void | addImage (const DL_ImageData &) |
Called for every image entity. More... | |
virtual void | linkImage (const DL_ImageDefData &) |
Called for every image definition. More... | |
virtual void | addHatchLoop (const DL_HatchLoopData &) |
Called for every hatch loop. More... | |
virtual void | addHatchEdge (const DL_HatchEdgeData &) |
Called for every hatch edge entity. More... | |
virtual void | addXRecord (const std::string &) |
Called for every XRecord with the given handle. More... | |
virtual void | addXRecordString (int, const std::string &) |
Called for XRecords of type string. More... | |
virtual void | addXRecordReal (int, double) |
Called for XRecords of type double. More... | |
virtual void | addXRecordInt (int, int) |
Called for XRecords of type int. More... | |
virtual void | addXRecordBool (int, bool) |
Called for XRecords of type bool. More... | |
virtual void | addXDataApp (const std::string &) |
Called for every beginning of an XData section of the given application. More... | |
virtual void | addXDataString (int, const std::string &) |
Called for XData tuples. More... | |
virtual void | addXDataReal (int, double) |
Called for XData tuples. More... | |
virtual void | addXDataInt (int, int) |
Called for XData tuples. More... | |
virtual void | addDictionary (const DL_DictionaryData &) |
Called for dictionary objects. More... | |
virtual void | addDictionaryEntry (const DL_DictionaryEntryData &) |
Called for dictionary entries. More... | |
virtual void | endEntity () |
Called after an entity has been completed. More... | |
virtual void | addComment (const std::string &) |
Called for every comment in the DXF file (code 999). More... | |
virtual void | setVariableVector (const std::string &, double, double, double, int) |
Called for every vector variable in the DXF file (e.g. More... | |
virtual void | setVariableString (const std::string &, const std::string &, int) |
Called for every string variable in the DXF file (e.g. More... | |
virtual void | setVariableInt (const std::string &, int, int) |
Called for every int variable in the DXF file (e.g. More... | |
virtual void | setVariableDouble (const std::string &, double, int) |
Called for every double variable in the DXF file (e.g. More... | |
virtual void | endSequence () |
Called when a SEQEND occurs (when a POLYLINE or ATTRIB is done) More... | |
![]() | |
virtual void | processCodeValuePair (unsigned int groupCode, const std::string &groupValue)=0 |
Called for every code / value tuple of the DXF file. More... | |
virtual void | endSection ()=0 |
Called when a section (entity, table entry, etc.) is finished. More... | |
virtual void | addLayer (const DL_LayerData &data)=0 |
Called for every layer. More... | |
virtual void | addLinetype (const DL_LinetypeData &data)=0 |
Called for every linetype. More... | |
virtual void | addLinetypeDash (double length)=0 |
Called for every dash in linetype pattern. More... | |
virtual void | addBlock (const DL_BlockData &data)=0 |
Called for every block. More... | |
virtual void | endBlock ()=0 |
Called to end the current block. More... | |
virtual void | addTextStyle (const DL_StyleData &data)=0 |
Called for every text style. More... | |
virtual void | addPoint (const DL_PointData &data)=0 |
Called for every point. More... | |
virtual void | addLine (const DL_LineData &data)=0 |
Called for every line. More... | |
virtual void | addXLine (const DL_XLineData &data)=0 |
Called for every xline. More... | |
virtual void | addRay (const DL_RayData &data)=0 |
Called for every ray. More... | |
virtual void | addArc (const DL_ArcData &data)=0 |
Called for every arc. More... | |
virtual void | addCircle (const DL_CircleData &data)=0 |
Called for every circle. More... | |
virtual void | addEllipse (const DL_EllipseData &data)=0 |
Called for every ellipse. More... | |
virtual void | addPolyline (const DL_PolylineData &data)=0 |
Called for every polyline start. More... | |
virtual void | addVertex (const DL_VertexData &data)=0 |
Called for every polyline vertex. More... | |
virtual void | addSpline (const DL_SplineData &data)=0 |
Called for every spline. More... | |
virtual void | addControlPoint (const DL_ControlPointData &data)=0 |
Called for every spline control point. More... | |
virtual void | addFitPoint (const DL_FitPointData &data)=0 |
Called for every spline fit point. More... | |
virtual void | addKnot (const DL_KnotData &data)=0 |
Called for every spline knot value. More... | |
virtual void | addInsert (const DL_InsertData &data)=0 |
Called for every insert. More... | |
virtual void | addTrace (const DL_TraceData &data)=0 |
Called for every trace start. More... | |
virtual void | add3dFace (const DL_3dFaceData &data)=0 |
Called for every 3dface start. More... | |
virtual void | addSolid (const DL_SolidData &data)=0 |
Called for every solid start. More... | |
virtual void | addMText (const DL_MTextData &data)=0 |
Called for every multi Text entity. More... | |
virtual void | addMTextChunk (const std::string &text)=0 |
Called for additional text chunks for MTEXT entities. More... | |
virtual void | addText (const DL_TextData &data)=0 |
Called for every text entity. More... | |
virtual void | addArcAlignedText (const DL_ArcAlignedTextData &data)=0 |
Called for every arc aligned text entity. More... | |
virtual void | addAttribute (const DL_AttributeData &data)=0 |
Called for every block Attribute entity. More... | |
virtual void | addDimAlign (const DL_DimensionData &data, const DL_DimAlignedData &edata)=0 |
Called for every aligned dimension entity. More... | |
virtual void | addDimLinear (const DL_DimensionData &data, const DL_DimLinearData &edata)=0 |
Called for every linear or rotated dimension entity. More... | |
virtual void | addDimRadial (const DL_DimensionData &data, const DL_DimRadialData &edata)=0 |
Called for every radial dimension entity. More... | |
virtual void | addDimDiametric (const DL_DimensionData &data, const DL_DimDiametricData &edata)=0 |
Called for every diametric dimension entity. More... | |
virtual void | addDimAngular (const DL_DimensionData &data, const DL_DimAngularData &edata)=0 |
Called for every angular dimension (2 lines version) entity. More... | |
virtual void | addDimAngular3P (const DL_DimensionData &data, const DL_DimAngular3PData &edata)=0 |
Called for every angular dimension (3 points version) entity. More... | |
virtual void | addDimOrdinate (const DL_DimensionData &data, const DL_DimOrdinateData &edata)=0 |
Called for every ordinate dimension entity. More... | |
virtual void | addLeader (const DL_LeaderData &data)=0 |
Called for every leader start. More... | |
virtual void | addLeaderVertex (const DL_LeaderVertexData &data)=0 |
Called for every leader vertex. More... | |
virtual void | addHatch (const DL_HatchData &data)=0 |
Called for every hatch entity. More... | |
virtual void | addImage (const DL_ImageData &data)=0 |
Called for every image entity. More... | |
virtual void | linkImage (const DL_ImageDefData &data)=0 |
Called for every image definition. More... | |
virtual void | addHatchLoop (const DL_HatchLoopData &data)=0 |
Called for every hatch loop. More... | |
virtual void | addHatchEdge (const DL_HatchEdgeData &data)=0 |
Called for every hatch edge entity. More... | |
virtual void | addXRecord (const std::string &handle)=0 |
Called for every XRecord with the given handle. More... | |
virtual void | addXRecordString (int code, const std::string &value)=0 |
Called for XRecords of type string. More... | |
virtual void | addXRecordReal (int code, double value)=0 |
Called for XRecords of type double. More... | |
virtual void | addXRecordInt (int code, int value)=0 |
Called for XRecords of type int. More... | |
virtual void | addXRecordBool (int code, bool value)=0 |
Called for XRecords of type bool. More... | |
virtual void | addXDataApp (const std::string &appId)=0 |
Called for every beginning of an XData section of the given application. More... | |
virtual void | addXDataString (int code, const std::string &value)=0 |
Called for XData tuples. More... | |
virtual void | addXDataReal (int code, double value)=0 |
Called for XData tuples. More... | |
virtual void | addXDataInt (int code, int value)=0 |
Called for XData tuples. More... | |
virtual void | addDictionary (const DL_DictionaryData &data)=0 |
Called for dictionary objects. More... | |
virtual void | addDictionaryEntry (const DL_DictionaryEntryData &data)=0 |
Called for dictionary entries. More... | |
virtual void | endEntity ()=0 |
Called after an entity has been completed. More... | |
virtual void | addComment (const std::string &comment)=0 |
Called for every comment in the DXF file (code 999). More... | |
virtual void | setVariableVector (const std::string &key, double v1, double v2, double v3, int code)=0 |
Called for every vector variable in the DXF file (e.g. More... | |
virtual void | setVariableString (const std::string &key, const std::string &value, int code)=0 |
Called for every string variable in the DXF file (e.g. More... | |
virtual void | setVariableInt (const std::string &key, int value, int code)=0 |
Called for every int variable in the DXF file (e.g. More... | |
virtual void | setVariableDouble (const std::string &key, double value, int code)=0 |
Called for every double variable in the DXF file (e.g. More... | |
virtual void | endSequence ()=0 |
Called when a SEQEND occurs (when a POLYLINE or ATTRIB is done) More... | |
void | setAttributes (const DL_Attributes &attrib) |
Sets the current attributes for entities. | |
DL_Attributes | getAttributes () |
void | setExtrusion (double dx, double dy, double dz, double elevation) |
Sets the current attributes for entities. | |
DL_Extrusion * | getExtrusion () |
Additional Inherited Members | |
![]() | |
DL_Attributes | attributes |
DL_Extrusion * | extrusion |
An abstract adapter class for receiving DXF events when a DXF file is being read.
The methods in this class are empty. This class exists as convenience for creating listener objects.
|
inlinevirtual |
Called for every 3dface start.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every arc.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every arc aligned text entity.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every block Attribute entity.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every block.
Note: all entities added after this command go into this block until endBlock() is called.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every circle.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every comment in the DXF file (code 999).
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every spline control point.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for dictionary objects.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for dictionary entries.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every aligned dimension entity.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every angular dimension (2 lines version) entity.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every angular dimension (3 points version) entity.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every diametric dimension entity.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every linear or rotated dimension entity.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every ordinate dimension entity.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every radial dimension entity.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every ellipse.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every spline fit point.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every hatch entity.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every hatch edge entity.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every hatch loop.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every image entity.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every insert.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every spline knot value.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every layer.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every leader start.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every leader vertex.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every line.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every linetype.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every dash in linetype pattern.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every multi Text entity.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for additional text chunks for MTEXT entities.
The chunks come at 250 character in size each. Note that those chunks come before the actual MTEXT entity.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every point.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every polyline start.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every ray.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every solid start.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every spline.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every text entity.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every text style.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every trace start.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every polyline vertex.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every beginning of an XData section of the given application.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for XData tuples.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for XData tuples.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for XData tuples.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every xline.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every XRecord with the given handle.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for XRecords of type bool.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for XRecords of type int.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for XRecords of type double.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for XRecords of type string.
Implements DL_CreationInterface.
|
inlinevirtual |
Called to end the current block.
Implements DL_CreationInterface.
|
inlinevirtual |
|
inlinevirtual |
Called when a section (entity, table entry, etc.) is finished.
Implements DL_CreationInterface.
|
inlinevirtual |
Called when a SEQEND occurs (when a POLYLINE or ATTRIB is done)
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every image definition.
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every code / value tuple of the DXF file.
The complete DXF file contents can be handled by the implemetation of this function.
Implements DL_CreationInterface.
|
inlinevirtual |
|
inlinevirtual |
Called for every int variable in the DXF file (e.g.
"$ACADMAINTVER").
Implements DL_CreationInterface.
|
inlinevirtual |
Called for every string variable in the DXF file (e.g.
"$ACADVER").
Implements DL_CreationInterface.
|
inlinevirtual |