VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
shapePolyLine.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
6 #ifndef SHAPEPOLYLINE_H
7 #define SHAPEPOLYLINE_H
8 
9 #include "shape/shapeDefines.h"
10 #include <stdio.h>
11 #include "shape/shapeElement.h"
13 
14 class DtShapePoint;
15 class DtShapeReader;
17 class DtGroup;
18 
19 // class DtShapePolyLine:
20 //
21 
23 {
24 
25 public:
26 
27  // default constructor.
28  DtShapePolyLine(double elevationFactor, bool isPoly = false);
29 
30  // destructor
31  virtual ~DtShapePolyLine();
32 
33  virtual bool load(FILE* f, bool loadMeasures = false, const DtShapeProjection* projection = NULL);
34  virtual DtShapePoint* point(int i);
35  virtual DtInt32 numPoints();
36  virtual DtInt32 numPoints(int part);
37  virtual DtInt32 numParts();
38  virtual DtInt32 initialVertex(int part);
39  virtual void setElevation(double elev);
40  virtual void calculateMaxMins(double& myMaxHigh, double& myMinHigh);
41 
42  virtual DtGroup* import(DtShapeReader* reader);
43 
44  virtual bool importAsFeature(DtShapeVectorReader* reader,
45  DtSpecificationID specID,
46  DtSpecification& specification);
47 
48 protected:
49 
50  virtual bool importPolygonAsFeature(DtShapeVectorReader* reader,
51  DtSpecificationID specID,
52  DtSpecification& s);
53 
54  virtual bool importPolyLineAsFeature(DtShapeVectorReader* reader,
55  DtSpecificationID specID,
56  DtSpecification& s);
57 
58  DtNetFloat64 myBoundingBox[4];
59  DtNetInt32 myNumParts;
60  DtNetInt32 myNumPoints;
61  DtNetInt32* myParts;
63 
65 
66 };
67 
68 #endif

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)