VR-Forces 4.0.4 Class Documentation
include/shape/shapeRecord.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 1998 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 
00006 #ifndef SHAPERECORD_H
00007 #define SHAPERECORD_H
00008 
00009 #include "shape/shapeDefines.h"
00010 #include <stdio.h>
00011 #include <vlutil/vlNetTypes.h>
00012 #include "shape/shapeRecordHeader.h"
00013 
00014 class DtShapeElement;
00015 class DtShapeProjection;
00016 
00017 enum DtShapeRecordType 
00018 {
00019    SHAPE_NULL = 0,
00020    SHAPE_POINT = 1,
00021    SHAPE_POLYLINE = 3,
00022    SHAPE_POLYGON = 5,
00023    SHAPE_MULTIPOINT = 8,
00024    SHAPE_POINTZ = 11,
00025    SHAPE_POLYLINEZ = 13,
00026    SHAPE_POLYGONZ = 15,
00027    SHAPE_MULTIPOINTZ = 18,
00028    SHAPE_POINTM = 21,
00029    SHAPE_POLILINEM = 23,
00030    SHAPE_POLYGONM = 25,
00031    SHAPE_MULTIPOINTM = 28,
00032    SHAPE_MULTIPATCH = 31
00033 };
00034 
00035 class DtString;
00036 
00037 // class DtShapeRecord:
00038 //
00039 class DT_DLL_shape DtShapeRecord
00040 {
00041 
00042 public:
00043 
00044    // default constructor.
00045    DtShapeRecord();
00046 
00047    // destructor
00048    virtual ~DtShapeRecord();
00049 
00050    virtual bool load(FILE *f, double elevationFactor, const DtShapeProjection* projection = NULL);
00051    
00052    virtual void setElevation(double elev);
00053 
00054    virtual void calculateMaxMins();
00055 
00056    DtShapeRecordHeader  myHeader;
00057    DtShapeElement       *myElement;
00058    double               myElevation;
00059 
00060    double               myMaxHigh;
00061    double               myMinHigh;
00062 
00063 };
00064 
00065 #endif

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)