VR-Forces 4.6.1 Class Documentation
 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

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)