VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
shapeEntry.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2004 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: shapeEntry.h,v $ $Revision: 1.11 $ $State: Exp $
7 *******************************************************************************/
8 #ifndef shapeEntry_H_
9 #define shapeEntry_H_
10 
11 // \file shapeEntry.h
12 // \brief Contains the DtShapeEntry class declaration and other related definitions/declarations.
13 
14 #include "shape/shapeDefines.h"
15 #include <vlutil/vlFilename.h>
16 #include <vlutil/vlString.h>
17 
18 
20 {
26 };
27 
28 
29 //
30 // The DtShapeEntry class is responsible for holding all the data necessary for
31 // the shape vector importer to import the specified shape file as a set of vector
32 // features.
34 {
35 
36 public:
37 
38  // default constructor.
39  DtShapeEntry();
40  DtShapeEntry(const DtFilename& filename, const DtString& dataString, float factorToMtrs);
41  DtShapeEntry(const DtFilename& filename, float elevationDelta, float factorToMtrs);
42  DtShapeEntry(const DtFilename& filename, float factorToMtrs);
43  DtShapeEntry(const DtFilename& filename, int fccCode);
44 
45  // Copy constructor
46  DtShapeEntry(const DtShapeEntry& original);
47 
48  // Assignment operator
49  DtShapeEntry& operator=(const DtShapeEntry& original);
50 
51 
52  // destructor
53  virtual ~DtShapeEntry();
54 
55  virtual void setType(DtShapefileEntryType newType);
56  virtual DtShapefileEntryType type() const;
57 
58  // add a filename to the load list
59  virtual void setFile(const DtFilename& filename);
60  virtual DtFilename& file();
61  virtual const DtFilename& file() const;
62 
63  virtual void setDataString(const DtString& dataString);
64  virtual DtString& dataString();
65  virtual const DtString& dataString() const;
66 
67  virtual void setElevationDelta(float stp);
68  virtual double elevationDelta() const;
69 
70  virtual void setFactorToMtrs(float factor);
71  virtual float factorToMtrs() const;
72 
73  virtual void setFccCode(int fccCod);
74  virtual int fccCode() const;
75 
76  virtual void setPath(const DtFilename&);
77  virtual const DtFilename& path() const;
78 
79  // Indicates whether or not we should load all attributes
80  // found in .dbf file. Default is false (only load those
81  // attributes we specifically ask for through a
82  // DtVectorDataInitializer object).
84  virtual void setLoadAllAttributes(bool yesNo);
85  virtual bool loadAllAttributes() const;
87 
88  // Indicates whether or not attributes from the sedris map files
89  // should be loaded when loading this shape file. If yes, the map file
90  // (specified in setDfadSedrisFile()) will be used to initialize the
91  // shape attributes based on the FCC code.
92  // Default is true.
94  virtual void setLoadSedrisMapAttributes(bool yesNo);
95  virtual bool loadSedrisMapAttributes() const;
97 
98 protected:
99  DtFilename myFilename;
100  DtFilename myPath;
108 };
109 
110 #endif
111 
Definition: shapeEntry.h:21
Definition: shapeEntry.h:23
int myFccCode
Definition: shapeEntry.h:105
DtFilename myPath
Definition: shapeEntry.h:100
Definition: shapeEntry.h:22
DtShapefileEntryType myType
Definition: shapeEntry.h:101
DtFilename myFilename
Definition: shapeEntry.h:99
float myFactorToMtrs
Definition: shapeEntry.h:104
bool myLoadAllAttributes
Definition: shapeEntry.h:106
DtShapefileEntryType
Definition: shapeEntry.h:19
double myElevationDelta
Definition: shapeEntry.h:103
DtString myDataString
Definition: shapeEntry.h:102
Definition: shapeEntry.h:24
#define DT_DLL_shape
Definition: shapeDefines.h:23
Definition: shapeEntry.h:33
Definition: shapeEntry.h:25
bool myLoadSedrisMapAttributes
Definition: shapeEntry.h:107

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)