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