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