VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
shapeVectorReader.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: shapeVectorReader.h,v $ $Revision: 1.12 $ $State: Exp $
7 *********************************************************************/
8 #ifndef shapeVectorReader_H_
9 #define shapeVectorReader_H_
10 
11 #include "shape/shapeDefines.h"
12 #include "gdb/vectorDataReader.h"
13 #include "geometry/point.h"
14 #include <vlutil/vlUtil.h>
15 
16 class DtList;
17 class DtMetafileRecord;
18 class DtFilename;
19 class DtSurfaceManager;
20 class DtVectorNetwork;
23 
24 
26 
27 //
28 // Instances of DtShapeVectorReader are a list of DtDtedCells.
30 {
31 
32 public:
33  // constructor
35 
36  // destructor
37  virtual ~DtShapeVectorReader();
38 
39  // Conventional version, used by TDBTool and VR-Forces to load
40  // vector network.
41  virtual bool importVectorData(const DtFilename& path,
42  DtTerrainDatabase* terrain,
43  DtVectorDataInitializer* initializer);
44 
45  // Alternative version, to be used when loading vector data for
46  // for 3D visualization. Does not crop to terrain extents or
47  // planarize data. Does create specification attributes for every
48  // field available in the .dbf file.
49  virtual bool importVectorData(const DtFilename& shapefile,
50  DtTerrainDatabase& terrain);
51 
52  // Returns "shape"
53  virtual DtString dataType();
54 
55  virtual DtVectorNetwork* localVectorNetwork();
56 
57  virtual DtPoint &origin();
58 
59  static DtVectorDataReader* create();
60 
61  // Returns true if Shapefile (.shp) contains vector data. Only the
62  // following data types may be present in the file for this to be true:
63  // Point
64  // PolyLine
65  // Polygon
66  // Multipoint
67  static bool isShapeVectorDataFile(const DtFilename& filename);
68 
69 protected:
70 
71  virtual bool importFeatures(DtVectorNetwork* vectorNetwork,
72  const DtFilename& path,
73  const DtShapeVectorInitializer* i);
74 
75 protected:
76 
79 
80  static const unsigned int theNumColorGradations;
81 
82 };
83 
84 #endif
virtual DtString dataType()=0
Definition: shapeVectorReader.h:29
voidpf uLong int origin
Definition: ioapi.h:42
Definition: vectorDataInitializer.h:21
DtVectorNetwork * myLocalNetwork
Definition: shapeVectorReader.h:78
Definition: specificationManager.h:31
Definition: surfaceManager.h:30
Definition: metafileRecord.h:28
DtPoint myOriginToSubstract
Definition: shapeVectorReader.h:77
Definition: terrainDatabase.h:148
#define DT_DLL_shape
Definition: shapeDefines.h:23
virtual bool importVectorData(const DtFilename &path, DtTerrainDatabase *terrain, DtVectorDataInitializer *myInit)=0
Definition: vectorDataReader.h:20
static const unsigned int theNumColorGradations
Definition: shapeVectorReader.h:80
Definition: shapeVectorInitializer.h:30
Definition: point.h:34
Definition: vectorNetwork.h:37

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)