![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /********************************************************************* 00002 ** Copyright (c) 1998 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 00006 #ifndef SHAPEPOINT_H 00007 #define SHAPEPOINT_H 00008 00009 #include "shape/shapeDefines.h" 00010 #include <stdio.h> 00011 #include "geometry/point.h" 00012 #include "shape/shapeElement.h" 00013 #include "gdb/specMgr.h" 00014 00015 class DtShapeReader; 00016 class DtShapeVectorReader; 00017 class DtGroup; 00018 class DtShapeProjection; 00019 00020 // class DtShapePoint: 00021 // 00022 class DT_DLL_shape DtShapePoint : public DtShapeElement 00023 { 00024 00025 public: 00026 00027 // default constructor. 00028 DtShapePoint(); 00029 00030 DtShapePoint(double elevationFactor); 00031 00032 // destructor 00033 virtual ~DtShapePoint(); 00034 00035 virtual bool load(FILE* f, bool loadMeasures = false, const DtShapeProjection* projection = NULL); 00036 00037 virtual DtPoint& point(); 00038 00039 virtual double x(); 00040 virtual double y(); 00041 virtual double z(); 00042 00043 virtual void setX(double x); 00044 virtual void setY(double y); 00045 virtual void setZ(double z); 00046 00047 virtual void setElevation(double elev); 00048 virtual void calculateMaxMins(double& myMaxHigh, double& myMinHigh); 00049 00050 virtual DtGroup* import(DtShapeReader* reader); 00051 virtual bool importAsFeature(DtShapeVectorReader* reader, 00052 DtSpecificationID specID, 00053 DtSpecification& specification); 00054 00055 virtual DtShapePoint* point(int i); 00056 virtual DtInt32 numPoints(); 00057 00058 protected: 00059 00060 DtPoint myPoint; 00061 }; 00062 00063 #endif