VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
shapeElement.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1998 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: shapeElement.h,v $ $Revision: 1.13 $ $State: Exp $
7 ******************************************************************************/
8 
9 #ifndef shapeElement_H_
10 #define shapeElement_H_
11 
12 #include "shape/shapeDefines.h"
13 #include <stdio.h>
14 #include <vlutil/vlNetTypes.h>
15 #include "gdb/specification.h"
17 #include <terrainCS/csUtilities.h>
18 
19 class DtShapeReader;
21 class DtGroup;
22 class DtShapePoint;
23 class DtPoint;
24 class DtShapeProjection;
25 
26 class DtVectorNetwork;
27 
28 // class DtShapeElement:
29 //
31 {
32 
33 public:
34 
35  // default constructor.
36  DtShapeElement(double elevationFactor);
37 
38  // destructor
39  virtual ~DtShapeElement();
40 
41  virtual bool load(FILE* f, bool loadMeasures = false, const DtShapeProjection* projection = NULL) = 0;
42 
43  virtual void setElevation(double elev) = 0;
44 
45  virtual void calculateMaxMins(double& myMaxHigh, double& myMinHigh) = 0;
46 
47  virtual DtGroup* import(DtShapeReader* reader) = 0;
48 
49  virtual bool importAsFeature(DtShapeVectorReader* reader,
50  DtSpecificationID specID,
51  DtSpecification& s) = 0;
52 
53  virtual void setFactorToMtrs(double elevationFactor);
54 
55  virtual DtInt32 numPoints() = 0;
56 
57  virtual DtShapePoint* point(int i) = 0;
58 
59 protected:
61 };
62 
63 #endif
Definition: shapeVectorReader.h:29
Definition: shapeProjectionInformation.h:68
unsigned int DtSpecificationID
Definition: specificationManager.h:22
Definition: group.h:28
double myElevationFactor
Definition: shapeElement.h:60
int DtInt32
Definition: vrvControlStructTypes.h:31
Definition: shapeElement.h:30
Definition: specification.h:27
Definition: shapeReader.h:30
#define DT_DLL_shape
Definition: shapeDefines.h:23
Definition: shapePoint.h:22
Definition: point.h:34
Definition: vectorNetwork.h:37

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)