VR-Forces 4.0.4 Class Documentation
include/terrainDbFactory/shapeMfRec.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 1998 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: shapeMfRec.h,v $ $Revision: 1.15 $ $State: Exp $
00007 *******************************************************************************/
00008 
00009 #ifndef DtShapeMetafileRecord_H_
00010 #define DtShapeMetafileRecord_H_
00011 
00012 #include "terrainDbFactory/terrainDbFactoryDefines.h"
00013 #include "terrainDbFactory/terrainMfRec.h"
00014 
00015 #include <vlutil/vlFilename.h>
00016 
00017 #include <iosfwd>
00018 
00019 // class DtShapeMetafileRecord:
00020 //
00021 // The shape metafile record has a list of individual shape files for terrain
00022 
00023 class DT_DLL_terrainDbFactory DtShapeMetafileRecord : public DtTerrainMetafileRecord
00024 {
00025 
00026 public:
00027 
00028    // default constructor.
00029    DtShapeMetafileRecord();
00030 
00031    // destructor
00032    virtual ~DtShapeMetafileRecord();
00033 
00034    // copy constructor
00035    DtShapeMetafileRecord(const DtShapeMetafileRecord& orig);
00036 
00037    // assignment operator
00038    DtShapeMetafileRecord& operator=(const DtShapeMetafileRecord& orig);
00039 
00040    // Returns "shape".
00041    virtual DtString recordTypeName() const;
00042 
00043    // Clears out the list of files associated to this record
00044    virtual void resetFileLists();
00045 
00046    // Read self from stream.
00047    virtual bool get(std::istream& stream);
00048 
00049    // identifies a token or passes it to the parent class.
00050    virtual bool processToken(std::istream& stream, DtString& token);
00051 
00052    static DtMetafileRecord * create();
00053 
00054 protected:
00055 
00056    // Write self to stream.
00057    virtual bool writeAttributes(std::ostream& stream) const;
00058    virtual bool getAttribute(const DtString attrName, DtString& value, unsigned index=0);
00059    virtual bool setToken(const DtString& token, const DtString value);
00060 
00061 protected:
00062 
00063    static const DtString theIsTerrainType;
00064    static const DtString theIsElevationFactorToMeters;
00065    static const DtString theIsElevationField;
00066    static const DtString theIsElevationValue;
00067    static const DtString theIsSeaRectangleAdded;
00068    static const DtString theIsGroundRectangleAdded;
00069    static const DtString theIsTerrainFile;
00070    static const DtString theOrigin;
00071    static const DtString theDistance;
00072    static const DtString theIsElevationInData;
00073    static const DtString theThreshold;
00074 
00075 };
00076 
00077 #endif
00078 

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)