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) 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
virtual DtInt32 numPoints()=0
virtual void calculateMaxMins(double &myMaxHigh, double &myMinHigh)=0
Definition: shapeVectorReader.h:29
bool myAmIPolygon
Definition: shapePolyLine.h:64
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:59
virtual bool load(FILE *f, bool loadMeasures=false, const DtShapeProjection *projection=NULL)=0
Definition: shapePolyLine.h:22
DtNetInt32 myNumPoints
Definition: shapePolyLine.h:60
DtShapePoint * myPoints
Definition: shapePolyLine.h:62
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:61
Definition: shapePoint.h:22

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)