VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
shapePoint.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2025 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
6 #ifndef SHAPEPOINT_H
7 #define SHAPEPOINT_H
8 
9 #include "shape/shapeDefines.h"
10 #include <stdio.h>
11 #include "geometry/point.h"
12 #include "shape/shapeElement.h"
14 
15 class DtShapeReader;
17 class DtGroup;
18 class DtShapeProjection;
19 
20 // class DtShapePoint:
21 //
23 {
24 
25 public:
26 
27  // default constructor.
28  DtShapePoint();
29 
30  DtShapePoint(double elevationFactor);
31 
32  // destructor
33  virtual ~DtShapePoint() override;
34 
35  virtual bool load(FILE *f, bool loadMeasures = false,
36  const DtShapeProjection *projection = NULL) override;
37 
38  virtual DtPoint& point();
39 
40  virtual double x();
41  virtual double y();
42  virtual double z();
43 
44  virtual void setX(double x);
45  virtual void setY(double y);
46  virtual void setZ(double z);
47 
48  virtual void setElevation(double elev) override;
49  virtual void calculateMaxMins(double &myMaxHigh, double &myMinHigh) override;
50 
51  virtual DtGroup *import(DtShapeReader *reader) override;
52  virtual bool importAsFeature(DtShapeVectorReader *reader,
53  DtSpecificationID specID,
54  DtSpecification &specification) override;
55 
56  virtual DtShapePoint *point(int i) override;
57  virtual DtInt32 numPoints() override;
58 
59 protected:
60 
62 };
63 
64 #endif
virtual DtInt32 numPoints()=0
virtual void calculateMaxMins(double &myMaxHigh, double &myMinHigh)=0
Definition: shapeVectorReader.h:29
Definition: shapeProjectionInformation.h:68
unsigned int DtSpecificationID
Definition: specificationManager.h:22
Definition: group.h:28
virtual void setElevation(double elev)=0
virtual bool load(FILE *f, bool loadMeasures=false, const DtShapeProjection *projection=NULL)=0
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
DtPoint myPoint
Definition: shapePoint.h:61
#define DT_DLL_shape
Definition: shapeDefines.h:23
Definition: shapePoint.h:22
Definition: point.h:34

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)