| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Protected Attributes
DL_CreationInterface Class Reference

`#include <dl_creationinterface.h>`

Inheritance diagram for DL_CreationInterface:

List of all members.

## Public Member Functions

| DL_CreationInterface ()
virtual | ~DL_CreationInterface ()
virtual void | addLayer (const DL_LayerData &data)=0
virtual void | addBlock (const DL_BlockData &data)=0
virtual void | endBlock ()=0
virtual void | addPoint (const DL_PointData &data)=0
virtual void | addLine (const DL_LineData &data)=0
virtual void | addArc (const DL_ArcData &data)=0
virtual void | addCircle (const DL_CircleData &data)=0
virtual void | addEllipse (const DL_EllipseData &data)=0
virtual void | addPolyline (const DL_PolylineData &data)=0
virtual void | addVertex (const DL_VertexData &data)=0
virtual void | addSpline (const DL_SplineData &data)=0
virtual void | addControlPoint (const DL_ControlPointData &data)=0
virtual void | addKnot (const DL_KnotData &data)=0
virtual void | addInsert (const DL_InsertData &data)=0
virtual void | addTrace (const DL_TraceData &data)=0
virtual void | add3dFace (const DL_3dFaceData &data)=0
virtual void | addSolid (const DL_SolidData &data)=0
virtual void | addMText (const DL_MTextData &data)=0
virtual void | addMTextChunk (const char *text)=0
virtual void | addText (const DL_TextData &data)=0
virtual void | addDimAlign (const DL_DimensionData &data, const DL_DimAlignedData &edata)=0
virtual void | addDimLinear (const DL_DimensionData &data, const DL_DimLinearData &edata)=0
virtual void | addDimRadial (const DL_DimensionData &data, const DL_DimRadialData &edata)=0
virtual void | addDimDiametric (const DL_DimensionData &data, const DL_DimDiametricData &edata)=0
virtual void | addDimAngular (const DL_DimensionData &data, const DL_DimAngularData &edata)=0
virtual void | addDimAngular3P (const DL_DimensionData &data, const DL_DimAngular3PData &edata)=0
virtual void | addDimOrdinate (const DL_DimensionData &data, const DL_DimOrdinateData &edata)=0
virtual void | addLeader (const DL_LeaderData &data)=0
virtual void | addLeaderVertex (const DL_LeaderVertexData &data)=0
virtual void | addHatch (const DL_HatchData &data)=0
virtual void | addImage (const DL_ImageData &data)=0
virtual void | linkImage (const DL_ImageDefData &data)=0
virtual void | addHatchLoop (const DL_HatchLoopData &data)=0
virtual void | addHatchEdge (const DL_HatchEdgeData &data)=0
virtual void | endEntity ()=0
virtual void | addComment (const char *comment)=0
virtual void | setVariableVector (const char *key, double v1, double v2, double v3, int code)=0
virtual void | setVariableString (const char *key, const char *value, int code)=0
virtual void | setVariableInt (const char *key, int value, int code)=0
virtual void | setVariableDouble (const char *key, double value, int code)=0
virtual void | endSequence ()=0
void | setAttributes (const DL_Attributes &attrib)
DL_Attributes | getAttributes ()
void | setExtrusion (double dx, double dy, double dz, double elevation)
DL_Extrusion * | getExtrusion ()

## Protected Attributes

DL_Attributes | attributes
DL_Extrusion * | extrusion

## Detailed Description

Abstract class (interface) for the creation of new entities. Inherit your class which takes care of the entities in the processed DXF file from this interface.

Double arrays passed to your implementation contain 3 double values for x, y, z coordinates unless stated differently.

Author:
  Andrew Mustun

## Constructor & Destructor Documentation

DL_CreationInterface::DL_CreationInterface | ( |  | ) | `[inline]`

virtual DL_CreationInterface::~DL_CreationInterface | ( |  | ) | `[inline, virtual]`

## Member Function Documentation

virtual void DL_CreationInterface::add3dFace | ( | const DL_3dFaceData & | data | ) | `[pure virtual]`

Called for every 3dface start

Implemented in DL_CreationAdapter.

virtual void DL_CreationInterface::addArc | ( | const DL_ArcData & | data | ) | `[pure virtual]`

Called for every arc

Implemented in DL_CreationAdapter.

virtual void DL_CreationInterface::addBlock | ( | const DL_BlockData & | data | ) | `[pure virtual]`

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

See also:
  endBlock()

Implemented in DL_CreationAdapter.

virtual void DL_CreationInterface::addCircle | ( | const DL_CircleData & | data | ) | `[pure virtual]`

Called for every circle

Implemented in DL_CreationAdapter.

virtual void DL_CreationInterface::addComment | ( | const char * | comment | ) | `[pure virtual]`

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

Implemented in DL_CreationAdapter.

virtual void DL_CreationInterface::addControlPoint | ( | const DL_ControlPointData & | data | ) | `[pure virtual]`

Called for every spline control point

Implemented in DL_CreationAdapter.

virtual void DL_CreationInterface::addDimAlign | ( | const DL_DimensionData & | data,
|  | const DL_DimAlignedData & | edata
| ) |  | `[pure virtual]`

Called for every aligned dimension entity.

Implemented in DL_CreationAdapter.

virtual void DL_CreationInterface::addDimAngular | ( | const DL_DimensionData & | data,
|  | const DL_DimAngularData & | edata
| ) |  | `[pure virtual]`

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

Implemented in DL_CreationAdapter.

virtual void DL_CreationInterface::addDimAngular3P | ( | const DL_DimensionData & | data,
|  | const DL_DimAngular3PData & | edata
| ) |  | `[pure virtual]`

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

Implemented in DL_CreationAdapter.

virtual void DL_CreationInterface::addDimDiametric | ( | const DL_DimensionData & | data,
|  | const DL_DimDiametricData & | edata
| ) |  | `[pure virtual]`

Called for every diametric dimension entity.

Implemented in DL_CreationAdapter.

virtual void DL_CreationInterface::addDimLinear | ( | const DL_DimensionData & | data,
|  | const DL_DimLinearData & | edata
| ) |  | `[pure virtual]`

Called for every linear or rotated dimension entity.

Implemented in DL_CreationAdapter.

virtual void DL_CreationInterface::addDimOrdinate | ( | const DL_DimensionData & | data,
|  | const DL_DimOrdinateData & | edata
| ) |  | `[pure virtual]`

Called for every ordinate dimension entity.

Implemented in DL_CreationAdapter.

virtual void DL_CreationInterface::addDimRadial | ( | const DL_DimensionData & | data,
|  | const DL_DimRadialData & | edata
| ) |  | `[pure virtual]`

Called for every radial dimension entity.

Implemented in DL_CreationAdapter.

virtual void DL_CreationInterface::addEllipse | ( | const DL_EllipseData & | data | ) | `[pure virtual]`

Called for every ellipse

Implemented in DL_CreationAdapter.

virtual void DL_CreationInterface::addHatch | ( | const DL_HatchData & | data | ) | `[pure virtual]`

Called for every hatch entity.

Implemented in DL_CreationAdapter.

virtual void DL_CreationInterface::addHatchEdge | ( | const DL_HatchEdgeData & | data | ) | `[pure virtual]`

Called for every hatch edge entity.

Implemented in DL_CreationAdapter.

virtual void DL_CreationInterface::addHatchLoop | ( | const DL_HatchLoopData & | data | ) | `[pure virtual]`

Called for every hatch loop.

Implemented in DL_CreationAdapter.

virtual void DL_CreationInterface::addImage | ( | const DL_ImageData & | data | ) | `[pure virtual]`

Called for every image entity.

Implemented in DL_CreationAdapter.

virtual void DL_CreationInterface::addInsert | ( | const DL_InsertData & | data | ) | `[pure virtual]`

Called for every insert.

Implemented in DL_CreationAdapter.

virtual void DL_CreationInterface::addKnot | ( | const DL_KnotData & | data | ) | `[pure virtual]`

Called for every spline knot value

Implemented in DL_CreationAdapter.

virtual void DL_CreationInterface::addLayer | ( | const DL_LayerData & | data | ) | `[pure virtual]`

Called for every layer.

Implemented in DL_CreationAdapter, and TeDXFVisitor.

virtual void DL_CreationInterface::addLeader | ( | const DL_LeaderData & | data | ) | `[pure virtual]`

Called for every leader start.

Implemented in DL_CreationAdapter.

virtual void DL_CreationInterface::addLeaderVertex | ( | const DL_LeaderVertexData & | data | ) | `[pure virtual]`

Called for every leader vertex

Implemented in DL_CreationAdapter.

virtual void DL_CreationInterface::addLine | ( | const DL_LineData & | data | ) | `[pure virtual]`

Called for every line

Implemented in DL_CreationAdapter, and TeDXFVisitor.

virtual void DL_CreationInterface::addMText | ( | const DL_MTextData & | data | ) | `[pure virtual]`

Called for every Multi Text entity.

Implemented in DL_CreationAdapter.

virtual void DL_CreationInterface::addMTextChunk | ( | const char * | text | ) | `[pure virtual]`

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.

Implemented in DL_CreationAdapter.

virtual void DL_CreationInterface::addPoint | ( | const DL_PointData & | data | ) | `[pure virtual]`

Called for every point

Implemented in DL_CreationAdapter, and TeDXFVisitor.

virtual void DL_CreationInterface::addPolyline | ( | const DL_PolylineData & | data | ) | `[pure virtual]`

Called for every polyline start

Implemented in DL_CreationAdapter, and TeDXFVisitor.

virtual void DL_CreationInterface::addSolid | ( | const DL_SolidData & | data | ) | `[pure virtual]`

Called for every solid start

Implemented in DL_CreationAdapter.

virtual void DL_CreationInterface::addSpline | ( | const DL_SplineData & | data | ) | `[pure virtual]`

Called for every spline

Implemented in DL_CreationAdapter.

virtual void DL_CreationInterface::addText | ( | const DL_TextData & | data | ) | `[pure virtual]`

Called for every Text entity.

Implemented in DL_CreationAdapter.

virtual void DL_CreationInterface::addTrace | ( | const DL_TraceData & | data | ) | `[pure virtual]`

Called for every trace start

Implemented in DL_CreationAdapter.

virtual void DL_CreationInterface::addVertex | ( | const DL_VertexData & | data | ) | `[pure virtual]`

Called for every polyline vertex

Implemented in DL_CreationAdapter, and TeDXFVisitor.

virtual void DL_CreationInterface::endBlock | ( |  | ) | `[pure virtual]`

Called to end the current block

Implemented in DL_CreationAdapter.

virtual void DL_CreationInterface::endEntity | ( |  | ) | `[pure virtual]`

Called after an entity has been completed.

Implemented in DL_CreationAdapter, and TeDXFVisitor.

virtual void DL_CreationInterface::endSequence | ( |  | ) | `[pure virtual]`

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

Implemented in DL_CreationAdapter.

DL_Attributes DL_CreationInterface::getAttributes | ( |  | ) | `[inline]`

Returns:
  the current attributes used for new entities.

DL_Extrusion* DL_CreationInterface::getExtrusion | ( |  | ) | `[inline]`

Returns:
  the current attributes used for new entities.

virtual void DL_CreationInterface::linkImage | ( | const DL_ImageDefData & | data | ) | `[pure virtual]`

Called for every image definition.

Implemented in DL_CreationAdapter.

void DL_CreationInterface::setAttributes | ( | const DL_Attributes & | attrib | ) | `[inline]`

Sets the current attributes for entities.

void DL_CreationInterface::setExtrusion | ( | double | dx,
|  | double | dy,
|  | double | dz,
|  | double | elevation
| ) |  | `[inline]`

Sets the current attributes for entities.

virtual void DL_CreationInterface::setVariableDouble | ( | const char * | key,
|  | double | value,
|  | int | code
| ) |  | `[pure virtual]`

Called for every double variable in the DXF file (e.g. "$DIMEXO").

Implemented in DL_CreationAdapter.

virtual void DL_CreationInterface::setVariableInt | ( | const char * | key,
|  | int | value,
|  | int | code
| ) |  | `[pure virtual]`

Called for every int variable in the DXF file (e.g. "$ACADMAINTVER").

Implemented in DL_CreationAdapter.

virtual void DL_CreationInterface::setVariableString | ( | const char * | key,
|  | const char * | value,
|  | int | code
| ) |  | `[pure virtual]`

Called for every string variable in the DXF file (e.g. "$ACADVER").

Implemented in DL_CreationAdapter.

virtual void DL_CreationInterface::setVariableVector | ( | const char * | key,
|  | double | v1,
|  | double | v2,
|  | double | v3,
|  | int | code
| ) |  | `[pure virtual]`

Called for every vector variable in the DXF file (e.g. "$EXTMIN").

Implemented in DL_CreationAdapter.

## Member Data Documentation

DL_Attributes DL_CreationInterface::attributes`[protected]`

DL_Extrusion* DL_CreationInterface::extrusion`[protected]`

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

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/dxflib/dl_creationinterface.h

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines