VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
propShapefileImportHandler.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2019 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
6 #pragma once
7 
8 #include <vrvUtil/signalslib.h>
11 #include <vlutil/vlFilename.h>
12 #include <matrix/vlVector.h>
13 
14 #include <map>
15 #include <string>
16 
17 namespace makVrv
18 {
19  class DtDe;
20  class DtUnicode;
21 }
22 
23 namespace makArchives
24 {
25  class DtPropRecord;
26 }
27 
28 class OGRLayer;
29 class DtFilename;
30 class GDALDataset;
31 class OGRFeature;
32 
33 namespace makVrf
34 {
38  {
39  public:
42 
45 
46  static DtPropShapefileImportHandler& instance(makVrv::DtDe& de);
47  static void registerInstance(makVrv::DtDe& de, DtPropShapefileImportHandler*);
48 
50  virtual bool importPropsFromShapefile(const std::string&, makVrv::DtUnicode& sError);
51 
52  protected:
53  virtual bool importFeatureLayer(GDALDataset*, OGRLayer*, const DtFilename& layerName, makVrv::DtUnicode& sError);
54  virtual bool importProp(GDALDataset*, OGRLayer*, OGRFeature*, makArchives::DtPropRecord&);
55  virtual bool importPropsFromSpecificShapefile(const std::string& shapefile, makVrv::DtUnicode& sError);
56 
57  virtual bool getFeatureLocation(OGRFeature* feature, DtVector&) const;
58 
59  protected:
61  std::map<std::string, int> myNamesImportedCounts;
62  };
63 }
Handler for looking at all the point objects in a shapefile and translating them to props or speed tr...
Definition: propShapefileImportHandler.h:37
Virtual base class.
Definition: DtVirtualBaseClass.h:22
A unicode string.
Definition: DtUnicode.h:33
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
std::map< std::string, int > myNamesImportedCounts
Definition: propShapefileImportHandler.h:61
Contains makVrv::DtVirtualBaseClass class.
makVrv::DtDe & myDe
Definition: propShapefileImportHandler.h:60
A DtPropRecord contains the information to recreate a prop.
Definition: DtPropRecord.h:22
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)