VR-Forces Developer's Guide
 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 
10 #include <vlutil/vlFilename.h>
11 #include <matrix/vlVector.h>
12 
13 #include <map>
14 #include <string>
15 
16 namespace makVrv
17 {
18  class DtDe;
19  class DtUnicode;
20 }
21 
22 namespace makArchives
23 {
24  class DtPropRecord;
25 }
26 
27 class OGRLayer;
28 class DtFilename;
29 class GDALDataset;
30 class OGRFeature;
31 
32 namespace makVrf
33 {
37  {
38  public:
41 
44 
45  static DtPropShapefileImportHandler& instance(makVrv::DtDe& de);
46  static void registerInstance(makVrv::DtDe& de, DtPropShapefileImportHandler*);
47 
49  virtual bool importPropsFromShapefile(const std::string&, makVrv::DtUnicode& sError);
50 
51  protected:
52  virtual bool importFeatureLayer(GDALDataset*, OGRLayer*, const DtFilename& layerName, makVrv::DtUnicode& sError);
53  virtual bool importProp(GDALDataset*, OGRLayer*, OGRFeature*, makArchives::DtPropRecord&);
54  virtual bool importPropsFromSpecificShapefile(const std::string& shapefile, makVrv::DtUnicode& sError);
55 
56  virtual bool getFeatureLocation(OGRFeature* feature, DtVector&) const;
57 
58  protected:
60  std::map<std::string, int> myNamesImportedCounts;
61  };
62 }
Handler for looking at all the point objects in a shapefile and translating them to props or speed tr...
Definition: propShapefileImportHandler.h:36
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
A unicode string. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
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:60
Contains makVrv::DtVirtualBaseClass class.
makVrv::DtDe & myDe
Definition: propShapefileImportHandler.h:59
A DtPropRecord contains the information to recreate a prop.
Definition: DtPropRecord.h:19
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)