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

This class takes care of the entities read from the file. More...

#include <test_creationclass.h>

Inheritance diagram for Test_CreationClass:
DL_CreationAdapter DL_CreationInterface

List of all members.

Public Member Functions

virtual void add3dFace (const DL_3dFaceData &data)
 Called for every 3dface start.
virtual void addArc (const DL_ArcData &data)
 Sample implementation of the method which handles arc entities.
virtual void addCircle (const DL_CircleData &data)
 Sample implementation of the method which handles circle entities.
virtual void addLayer (const DL_LayerData &data)
 Sample implementation of the method which handles layers.
virtual void addLine (const DL_LineData &data)
 Sample implementation of the method which handles line entities.
virtual void addPoint (const DL_PointData &data)
 Sample implementation of the method which handles point entities.
virtual void addPolyline (const DL_PolylineData &data)
 Sample implementation of the method which handles polyline entities.
virtual void addVertex (const DL_VertexData &data)
 Sample implementation of the method which handles vertices.
void printAttributes ()
 Test_CreationClass ()
 Default constructor.
- Public Member Functions inherited from DL_CreationAdapter
virtual void addAttribute (const DL_AttributeData &)
 Called for every Block Attribute entity.
virtual void addBlock (const DL_BlockData &)
 Called for every block.
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 addLeader (const DL_LeaderData &)
 Called for every leader start.
virtual void addLeaderVertex (const DL_LeaderVertexData &)
 Called for every leader vertex.
virtual void addLinetype (const DL_LinetypeData &)
 Called for every linetype.
virtual void addLinetypeDash (double)
 Called for every dash in linetype pattern.
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 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 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 ()

Detailed Description

This class takes care of the entities read from the file.

Usually such a class would probably store the entities. this one just prints some information about them to stdout.

Author:
Andrew Mustun

Constructor & Destructor Documentation

Test_CreationClass::Test_CreationClass ( )

Default constructor.


Member Function Documentation

void Test_CreationClass::add3dFace ( const DL_3dFaceData data)
virtual

Called for every 3dface start.

Reimplemented from DL_CreationAdapter.

void Test_CreationClass::addArc ( const DL_ArcData data)
virtual

Sample implementation of the method which handles arc entities.

Reimplemented from DL_CreationAdapter.

void Test_CreationClass::addCircle ( const DL_CircleData data)
virtual

Sample implementation of the method which handles circle entities.

Reimplemented from DL_CreationAdapter.

void Test_CreationClass::addLayer ( const DL_LayerData data)
virtual

Sample implementation of the method which handles layers.

Reimplemented from DL_CreationAdapter.

void Test_CreationClass::addLine ( const DL_LineData data)
virtual

Sample implementation of the method which handles line entities.

Reimplemented from DL_CreationAdapter.

void Test_CreationClass::addPoint ( const DL_PointData data)
virtual

Sample implementation of the method which handles point entities.

Reimplemented from DL_CreationAdapter.

void Test_CreationClass::addPolyline ( const DL_PolylineData data)
virtual

Sample implementation of the method which handles polyline entities.

Reimplemented from DL_CreationAdapter.

void Test_CreationClass::addVertex ( const DL_VertexData data)
virtual

Sample implementation of the method which handles vertices.

Reimplemented from DL_CreationAdapter.

void Test_CreationClass::printAttributes ( )

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