VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
overlayShapeFileLoadHandler.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2016 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
8 #pragma once
9 
10 #include <vrvUtil/signalslib.h>
11 #include <vrfGuiCore/vrfGuiCore.h>
13 #include <vrvCore/DtUniqueID.h>
14 #include <vlpi/entityType.h>
15 
16 class OGRSFDriver;
17 class OGRLayer;
18 class OGRFeature;
19 class OGRPoint;
20 
21 namespace makVrv
22 {
23  class DtDe;
24 }
25 
26 namespace makVrf
27 {
32  {
33  public:
36 
39 
40  static DtOverlayShapeFileLoadHandler& instance(makVrv::DtDe& de);
41  static void registerInstance(makVrv::DtDe& de, DtOverlayShapeFileLoadHandler*);
42 
45  virtual bool importShapeFileOntoOverlay(const std::string& shapefile, const std::string& overlay);
46 
49  virtual const DtFilename& importFrom() const;
50 
51  protected:
53  virtual OGRSFDriver* createOGRDriver(const char* driverName = "ESRI Shapefile");
54 
56  virtual bool importLayer(OGRLayer*, const std::string&, const std::string& shapeFileName);
57 
59  virtual bool importFeature(OGRFeature*, const std::string&, const std::string& shapeFileName);
60 
64  virtual DtEntityType getEntityTypeToCreateFromFeature(OGRFeature*, const std::string& shapeFileName) const;
65  virtual DtEntityType lineType(OGRFeature*, const std::string& shapeFileName) const;
66  virtual DtEntityType pointType(OGRFeature*, const std::string& shapeFileName) const;
67  virtual DtEntityType areaType(OGRFeature*, const std::string& shapeFileName) const;
68 
70  virtual std::vector<DtVector> getFeatureGeometry(OGRFeature*) const;
71 
72  virtual DtVector convertPointToLocal(OGRPoint*) const;
73 
75  virtual std::string nameFromFeature(OGRFeature*, const std::string& shapeFileName) const;
76 
77  protected:
80  };
81 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)