VR-Forces 4.0.4 Class Documentation
include/shape/shapeTerrainFile.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2003 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: shapeTerrainFile.h,v $ $Revision: 1.13 $ $State: Exp $
00007 *******************************************************************************/
00008 
00009 #ifndef shapeTerrainFile_H_
00010 #define shapeTerrainFile_H_
00011 
00012 #include "shape/shapeDefines.h"
00013 #include "shape/shapefile.h"
00014 #include <vlutil/vlFilename.h>
00015 
00016 class DtShapeEntry;
00017 class DtShapeReader;
00018 class DtShapeVectorReader;
00019 class DtShapeInitializer;
00020 class DtGroup;
00021 
00022 //
00023 // DtShapeTerrainFile reads in elevation data from a shape file
00024 //
00025 class DT_DLL_shape DtShapeTerrainFile : public DtShapefile
00026 {
00027 
00028 public:
00029 
00030    // Constructor.
00031    DtShapeTerrainFile(const DtShapeInitializer* i);
00032 
00033    // Destructor
00034    virtual ~DtShapeTerrainFile();
00035 
00036    // Sets myMaxHigh and myMinHigh for each DtShapeRecord in myList
00037    virtual bool load(const DtFilename& path, const DtShapeEntry* entry);
00038    
00039    // If the .map file is setup to read elevations from a dBASE field, this
00040    // function is called by load to open the .dbf file and pull in each record.
00041    virtual bool loadElevationsFromFile();
00042 
00043    // Sets myReader, and calls importPolys if the initializer's terrain type is 
00044    // set to SHAPETERRAIN_POLY.
00045    virtual DtGroup* import(DtShapeReader* reader);
00046 
00047    // Returns false
00048    virtual bool importFeatures(DtShapeVectorReader* reader);
00049 
00050 protected:
00051    
00052    // Adds the polygons from each DtShapeRecord in myList to the gdb.
00053    virtual DtGroup* importPolys();
00054 
00055 public:
00056    
00057    double myMaxHigh;
00058    double myMinHigh;
00059 };
00060 
00061 #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)