QCAD
Open Source 2D CAD
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DL_CreationAdapter Class Reference

An abstract adapter class for receiving DXF events when a DXF file is being read. More...

#include <dl_creationadapter.h>

Inheritance diagram for DL_CreationAdapter:
DL_CreationInterface RDxfImporter Test_CreationClass

List of all members.

Public Member Functions

virtual void add3dFace (const DL_3dFaceData &)
 Called for every 3dface start.
virtual void addArc (const DL_ArcData &)
 Called for every arc.
virtual void addBlock (const DL_BlockData &)
 Called for every block.
virtual void addCircle (const DL_CircleData &)
 Called for every circle.
virtual void addComment (const std::string &)
 Called for every comment in the DXF file (code 999).
virtual void addControlPoint (const DL_ControlPointData &)
 Called for every spline control point.
virtual void addDictionary (const DL_DictionaryData &)
 Called for dictionary objects.
virtual void addDictionaryEntry (const DL_DictionaryEntryData &)
 Called for dictionary entries.
virtual void addDimAlign (const DL_DimensionData &, const DL_DimAlignedData &)
 Called for every aligned dimension entity.
virtual void addDimAngular (const DL_DimensionData &, const DL_DimAngularData &)
 Called for every angular dimension (2 lines version) entity.
virtual void addDimAngular3P (const DL_DimensionData &, const DL_DimAngular3PData &)
 Called for every angular dimension (3 points version) entity.
virtual void addDimDiametric (const DL_DimensionData &, const DL_DimDiametricData &)
 Called for every diametric dimension entity.
virtual void addDimLinear (const DL_DimensionData &, const DL_DimLinearData &)
 Called for every linear or rotated dimension entity.
virtual void addDimOrdinate (const DL_DimensionData &, const DL_DimOrdinateData &)
 Called for every ordinate dimension entity.
virtual void addDimRadial (const DL_DimensionData &, const DL_DimRadialData &)
 Called for every radial dimension entity.
virtual void addEllipse (const DL_EllipseData &)
 Called for every ellipse.
virtual void addFitPoint (const DL_FitPointData &)
 Called for every spline fit point.
virtual void addHatch (const DL_HatchData &)
 Called for every hatch entity.
virtual void addHatchEdge (const DL_HatchEdgeData &)
 Called for every hatch edge entity.
virtual void addHatchLoop (const DL_HatchLoopData &)
 Called for every hatch loop.
virtual void addImage (const DL_ImageData &)
 Called for every image entity.
virtual void addInsert (const DL_InsertData &)
 Called for every insert.
virtual void addKnot (const DL_KnotData &)
 Called for every spline knot value.
virtual void addLayer (const DL_LayerData &)
 Called for every layer.
virtual void addLeader (const DL_LeaderData &)
 Called for every leader start.
virtual void addLeaderVertex (const DL_LeaderVertexData &)
 Called for every leader vertex.
virtual void addLine (const DL_LineData &)
 Called for every line.
virtual void addMText (const DL_MTextData &)
 Called for every Multi Text entity.
virtual void addMTextChunk (const std::string &)
 Called for additional text chunks for MTEXT entities.
virtual void addPoint (const DL_PointData &)
 Called for every point.
virtual void addPolyline (const DL_PolylineData &)
 Called for every polyline start.
virtual void addRay (const DL_RayData &)
 Called for every ray.
virtual void addSolid (const DL_SolidData &)
 Called for every solid start.
virtual void addSpline (const DL_SplineData &)
 Called for every spline.
virtual void addText (const DL_TextData &)
 Called for every Text entity.
virtual void addTextStyle (const DL_StyleData &)
 Called for every text style.
virtual void addTrace (const DL_TraceData &)
 Called for every trace start.
virtual void addVertex (const DL_VertexData &)
 Called for every polyline vertex.
virtual void addXDataApp (const std::string &)
 Called for every beginning of an XData section of the given application.
virtual void addXDataInt (int, int)
 Called for XData tuples.
virtual void addXDataReal (int, double)
 Called for XData tuples.
virtual void addXDataString (int, const std::string &)
 Called for XData tuples.
virtual void addXLine (const DL_XLineData &)
 Called for every xline.
virtual void addXRecord (const std::string &)
 Called for every XRecord with the given handle.
virtual void addXRecordBool (int, bool)
 Called for XRecords of type bool.
virtual void addXRecordInt (int, int)
 Called for XRecords of type int.
virtual void addXRecordReal (int, double)
 Called for XRecords of type double.
virtual void addXRecordString (int, const std::string &)
 Called for XRecords of type string.
 DL_CreationAdapter ()
virtual void endBlock ()
 Called to end the current block.
virtual void endEntity ()
 Called after an entity has been completed.
virtual void endSection ()
 Called when a section (entity, table entry, etc.) is finished.
virtual void endSequence ()
 Called when a SEQEND occurs (when a POLYLINE or ATTRIB is done)
virtual void linkImage (const DL_ImageDefData &)
 Called for every image definition.
virtual void processCodeValuePair (unsigned int, const std::string &)
 Called for every code / value tuple of the DXF file.
virtual void setVariableDouble (const std::string &, double, int)
 Called for every double variable in the DXF file (e.g.
virtual void setVariableInt (const std::string &, int, int)
 Called for every int variable in the DXF file (e.g.
virtual void setVariableString (const std::string &, const std::string &, int)
 Called for every string variable in the DXF file (e.g.
virtual void setVariableVector (const std::string &, double, double, double, int)
 Called for every vector variable in the DXF file (e.g.
virtual ~DL_CreationAdapter ()
- Public Member Functions inherited from DL_CreationInterface
 DL_CreationInterface ()
DL_Attributes getAttributes ()
DL_ExtrusiongetExtrusion ()
void setAttributes (const DL_Attributes &attrib)
 Sets the current attributes for entities.
void setExtrusion (double dx, double dy, double dz, double elevation)
 Sets the current attributes for entities.
virtual ~DL_CreationInterface ()

Additional Inherited Members

- Protected Attributes inherited from DL_CreationInterface
DL_Attributes attributes
DL_Extrusionextrusion

Detailed Description

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.

Author:
Andrew Mustun

Constructor & Destructor Documentation

DL_CreationAdapter::DL_CreationAdapter ( )
inline
virtual DL_CreationAdapter::~DL_CreationAdapter ( )
inlinevirtual

Member Function Documentation

virtual void DL_CreationAdapter::add3dFace ( const DL_3dFaceData data)
inlinevirtual

Called for every 3dface start.

Implements DL_CreationInterface.

Reimplemented in Test_CreationClass.

virtual void DL_CreationAdapter::addArc ( const DL_ArcData data)
inlinevirtual

Called for every arc.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter, and Test_CreationClass.

virtual void DL_CreationAdapter::addBlock ( const DL_BlockData data)
inlinevirtual

Called for every block.

Note: all entities added after this command go into this block until endBlock() is called.

See also:
endBlock()

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addCircle ( const DL_CircleData data)
inlinevirtual

Called for every circle.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter, and Test_CreationClass.

virtual void DL_CreationAdapter::addComment ( const std::string &  comment)
inlinevirtual

Called for every comment in the DXF file (code 999).

Implements DL_CreationInterface.

virtual void DL_CreationAdapter::addControlPoint ( const DL_ControlPointData data)
inlinevirtual

Called for every spline control point.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addDictionary ( const DL_DictionaryData data)
inlinevirtual

Called for dictionary objects.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addDictionaryEntry ( const DL_DictionaryEntryData data)
inlinevirtual

Called for dictionary entries.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addDimAlign ( const DL_DimensionData data,
const DL_DimAlignedData edata 
)
inlinevirtual

Called for every aligned dimension entity.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addDimAngular ( const DL_DimensionData data,
const DL_DimAngularData edata 
)
inlinevirtual

Called for every angular dimension (2 lines version) entity.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addDimAngular3P ( const DL_DimensionData data,
const DL_DimAngular3PData edata 
)
inlinevirtual

Called for every angular dimension (3 points version) entity.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addDimDiametric ( const DL_DimensionData data,
const DL_DimDiametricData edata 
)
inlinevirtual

Called for every diametric dimension entity.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addDimLinear ( const DL_DimensionData data,
const DL_DimLinearData edata 
)
inlinevirtual

Called for every linear or rotated dimension entity.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addDimOrdinate ( const DL_DimensionData data,
const DL_DimOrdinateData edata 
)
inlinevirtual

Called for every ordinate dimension entity.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addDimRadial ( const DL_DimensionData data,
const DL_DimRadialData edata 
)
inlinevirtual

Called for every radial dimension entity.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addEllipse ( const DL_EllipseData data)
inlinevirtual

Called for every ellipse.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addFitPoint ( const DL_FitPointData data)
inlinevirtual

Called for every spline fit point.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addHatch ( const DL_HatchData data)
inlinevirtual

Called for every hatch entity.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addHatchEdge ( const DL_HatchEdgeData data)
inlinevirtual

Called for every hatch edge entity.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addHatchLoop ( const DL_HatchLoopData data)
inlinevirtual

Called for every hatch loop.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addImage ( const DL_ImageData data)
inlinevirtual

Called for every image entity.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addInsert ( const DL_InsertData data)
inlinevirtual

Called for every insert.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addKnot ( const DL_KnotData data)
inlinevirtual

Called for every spline knot value.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addLayer ( const DL_LayerData data)
inlinevirtual

Called for every layer.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter, and Test_CreationClass.

virtual void DL_CreationAdapter::addLeader ( const DL_LeaderData data)
inlinevirtual

Called for every leader start.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addLeaderVertex ( const DL_LeaderVertexData data)
inlinevirtual

Called for every leader vertex.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addLine ( const DL_LineData data)
inlinevirtual

Called for every line.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter, and Test_CreationClass.

virtual void DL_CreationAdapter::addMText ( const DL_MTextData data)
inlinevirtual

Called for every Multi Text entity.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addMTextChunk ( const std::string &  text)
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.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addPoint ( const DL_PointData data)
inlinevirtual

Called for every point.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter, and Test_CreationClass.

virtual void DL_CreationAdapter::addPolyline ( const DL_PolylineData data)
inlinevirtual

Called for every polyline start.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter, and Test_CreationClass.

virtual void DL_CreationAdapter::addRay ( const DL_RayData data)
inlinevirtual

Called for every ray.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addSolid ( const DL_SolidData data)
inlinevirtual

Called for every solid start.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addSpline ( const DL_SplineData data)
inlinevirtual

Called for every spline.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addText ( const DL_TextData data)
inlinevirtual

Called for every Text entity.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addTextStyle ( const DL_StyleData data)
inlinevirtual

Called for every text style.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addTrace ( const DL_TraceData data)
inlinevirtual

Called for every trace start.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addVertex ( const DL_VertexData data)
inlinevirtual

Called for every polyline vertex.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter, and Test_CreationClass.

virtual void DL_CreationAdapter::addXDataApp ( const std::string &  appId)
inlinevirtual

Called for every beginning of an XData section of the given application.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addXDataInt ( int  code,
int  value 
)
inlinevirtual

Called for XData tuples.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addXDataReal ( int  code,
double  value 
)
inlinevirtual

Called for XData tuples.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addXDataString ( int  code,
const std::string &  value 
)
inlinevirtual

Called for XData tuples.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addXLine ( const DL_XLineData data)
inlinevirtual

Called for every xline.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addXRecord ( const std::string &  handle)
inlinevirtual

Called for every XRecord with the given handle.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addXRecordBool ( int  code,
bool  value 
)
inlinevirtual

Called for XRecords of type bool.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addXRecordInt ( int  code,
int  value 
)
inlinevirtual

Called for XRecords of type int.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addXRecordReal ( int  code,
double  value 
)
inlinevirtual

Called for XRecords of type double.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::addXRecordString ( int  code,
const std::string &  value 
)
inlinevirtual

Called for XRecords of type string.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::endBlock ( )
inlinevirtual

Called to end the current block.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::endEntity ( )
inlinevirtual

Called after an entity has been completed.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::endSection ( )
inlinevirtual

Called when a section (entity, table entry, etc.) is finished.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::endSequence ( )
inlinevirtual

Called when a SEQEND occurs (when a POLYLINE or ATTRIB is done)

Implements DL_CreationInterface.

virtual void DL_CreationAdapter::linkImage ( const DL_ImageDefData data)
inlinevirtual

Called for every image definition.

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::processCodeValuePair ( unsigned  groupCode,
const std::string &  groupValue 
)
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.

virtual void DL_CreationAdapter::setVariableDouble ( const std::string &  key,
double  value,
int  code 
)
inlinevirtual

Called for every double variable in the DXF file (e.g.

"$DIMEXO").

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::setVariableInt ( const std::string &  key,
int  value,
int  code 
)
inlinevirtual

Called for every int variable in the DXF file (e.g.

"$ACADMAINTVER").

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::setVariableString ( const std::string &  key,
const std::string &  value,
int  code 
)
inlinevirtual

Called for every string variable in the DXF file (e.g.

"$ACADVER").

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.

virtual void DL_CreationAdapter::setVariableVector ( const std::string &  key,
double  v1,
double  v2,
double  v3,
int  code 
)
inlinevirtual

Called for every vector variable in the DXF file (e.g.

"$EXTMIN").

Implements DL_CreationInterface.

Reimplemented in RDxfImporter.


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