| TerraLib 4.1

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

- File List
- File Members

E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/DXF/tedxfvisitor.h
Go to the documentation of this file.

    00001 /*********************************
    00002  * FUNCATE - GIS development team
    00003  *
    00004  * Tdk Framework
    00005  *********************************/
    00012 #ifndef _TEDXFVISITOR_H
    00013 #define _TEDXFVISITOR_H
    00014
    00015 #include "tedxfdefines.h"
    00016 #include "dl_creationadapter.h"
    00017 #include <string>
    00018 #include <vector>
    00019 #include "TeGeometry.h"
    00020
    00021 struct DL_LayerData;
    00022 struct DL_PointData;
    00023 struct DL_LineData;
    00024 struct DL_PolylineData;
    00025 struct DL_VertexData;
    00026 class TeDXFLayer;
    00027 class DL_Dxf;
    00028
    00032 class TEDXF_DLL TeDXFVisitor : public DL_CreationAdapter
    00033 {
    00034   public:
    00037         TeDXFVisitor(const string & fileName);
    00038
    00041         ~TeDXFVisitor();
    00042
    00045         void addLayer(const DL_LayerData & data);
    00046
    00049         void addPoint(const DL_PointData & data);
    00050
    00053         void addLine(const DL_LineData & data);
    00054
    00057         void addPolyline(const DL_PolylineData & data);
    00058
    00061         void addVertex(const DL_VertexData & data);
    00062
    00063     void endEntity();
    00064
    00065     //Return the parsed layers.
    00066     const vector<TeDXFLayer *> & getLayers() const;
    00067
    00068
    00069   protected:
    00070     std::vector<TeDXFLayer *> layers_;
    00071
    00072     string name_;
    00073
    00074     TeLinearRing line_;
    00075
    00076
    00077   private:
    00080         TeDXFVisitor(const TeDXFVisitor & source);
    00081
    00084         TeDXFVisitor & operator=(const TeDXFVisitor & source);
    00085
    00086 };
    00087 #endif

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines