VR-Forces 4.0.4 Class Documentation
include/terrainDbFactory/terrainMfRec.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2000 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: terrainMfRec.h,v $ $Revision: 1.18 $ $State: Exp $
00007 *******************************************************************************/
00008 #ifndef terrainMfRec_H_
00009 #define terrainMfRec_H_
00010 
00011 // \file terrainmfRec.h
00012 // \brief Contains the DtTerarinMetafileRecord class declaration.
00013 
00014 #include "terrainDbFactory/terrainDbFactoryDefines.h"
00015 #include "terrainDbFactory/mfRec.h"
00016 #include "geometry/point.h"
00017 #include "terrainDbFactory/terrainDefines.h"
00018 #include <vlutil/vlFilename.h>
00019 #include <iosfwd>
00020 
00023 class DT_DLL_terrainDbFactory DtTerrainMetafileRecord : public DtMetafileRecord
00024 {
00025 
00026 public:
00027 
00029    DtTerrainMetafileRecord();
00030 
00032    virtual ~DtTerrainMetafileRecord();
00033 
00035    DtTerrainMetafileRecord(const DtTerrainMetafileRecord& orig);
00036 
00038    DtTerrainMetafileRecord& operator=(const DtTerrainMetafileRecord& orig);
00039 
00041    virtual const DtFilename& filename() const;
00042    virtual void setFilename(const DtFilename & name);
00043 
00045    virtual DtConfigCategoryType recordCategory() const;
00046 
00048    virtual const unsigned int terrainType() const;
00049 
00051    virtual void resetFileLists();
00052 
00054    virtual bool get(std::istream& stream);
00055 
00057    virtual bool processToken(std::istream& stream, DtString& token);
00058 
00059 protected:
00060 
00061    virtual bool writeAttributes(std::ostream& stream) const;
00062 
00063    virtual bool getAttribute(const DtString attrName, DtString& value, unsigned index=0);
00064 
00065    virtual bool setToken(const DtString& token, const DtString value);
00066 
00067 protected:
00068 
00071    static const DtString theZone;
00072 
00075    static const DtString theOrigin;
00076 
00077    static const DtString theNumVertices;
00078    static const DtString theNumSurfaces;
00079    static const DtString theIsLargeTerrain;
00080    
00081    long     myZone;
00082    DtPoint  myDatabaseOrigin;
00083    bool     myOriginSet;
00084 
00085    DtFilename myFile;
00086    unsigned int myTerrainType;
00087 };
00088 
00089 #endif
00090 

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)