VR-Forces Developer's Guide
 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) 2025 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() override;
32 
33  virtual bool load(FILE *f, bool loadMeasures = false,
34  const DtShapeProjection *projection = NULL) override;
35  virtual DtShapePoint *point(int i) override;
36  virtual DtInt32 numPoints() override;
37  virtual DtInt32 numPoints(int part);
38  virtual DtInt32 numParts();
39  virtual DtInt32 initialVertex(int part);
40  virtual void setElevation(double elev) override;
41  virtual void calculateMaxMins(double &myMaxHigh, double &myMinHigh) override;
42 
43  virtual DtGroup *import(DtShapeReader *reader) override;
44 
45  virtual bool importAsFeature(DtShapeVectorReader *reader,
46  DtSpecificationID specID,
47  DtSpecification &specification) override;
48 
49 protected:
50 
51  virtual bool importPolygonAsFeature(DtShapeVectorReader* reader,
52  DtSpecificationID specID,
53  DtSpecification& s);
54 
55  virtual bool importPolyLineAsFeature(DtShapeVectorReader* reader,
56  DtSpecificationID specID,
57  DtSpecification& s);
58 
59  DtNetFloat64 myBoundingBox[4];
60  DtNetInt32 myNumParts;
61  DtNetInt32 myNumPoints;
62  DtNetInt32* myParts;
64 
66 
67 };
68 
69 #endif
virtual DtInt32 numPoints()=0
virtual void calculateMaxMins(double &myMaxHigh, double &myMinHigh)=0
Definition: shapeVectorReader.h:29
bool myAmIPolygon
Definition: shapePolyLine.h:65
Definition: shapeProjectionInformation.h:68
unsigned int DtSpecificationID
Definition: specificationManager.h:22
Definition: group.h:28
virtual void setElevation(double elev)=0
DtNetInt32 myNumParts
Definition: shapePolyLine.h:60
virtual bool load(FILE *f, bool loadMeasures=false, const DtShapeProjection *projection=NULL)=0
Definition: shapePolyLine.h:22
DtNetInt32 myNumPoints
Definition: shapePolyLine.h:61
DtShapePoint * myPoints
Definition: shapePolyLine.h:63
virtual DtShapePoint * point(int i)=0
int DtInt32
Definition: vrvControlStructTypes.h:31
Definition: shapeElement.h:30
Definition: specification.h:27
Definition: shapeReader.h:30
virtual bool importAsFeature(DtShapeVectorReader *reader, DtSpecificationID specID, DtSpecification &s)=0
#define DT_DLL_shape
Definition: shapeDefines.h:23
DtNetInt32 * myParts
Definition: shapePolyLine.h:62
Definition: shapePoint.h:22

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)