VR-Forces 4.0.4 Class Documentation
include/terrainDbFactory/extentRec.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2000 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: extentRec.h,v $ $Revision: 1.16 $ $State: Exp $
00007 *******************************************************************************/
00008 #ifndef extentRec_H_
00009 #define extentRec_H_
00010 
00011 // \file extentRec.h
00012 // \brief Contains the DtExtentMetafileRecord class declaration.
00013 
00014 #include "terrainDbFactory/terrainDbFactoryDefines.h"
00015 #include "terrainDbFactory/mfRec.h"
00016 #include "terrainCS/coordSystem.h"
00017 #include "terrainDbFactory/terrainDefines.h"
00018 
00019 #include <iosfwd>
00020 
00021 //
00022 // Extends from DtMetafileRecord to provide a way of specifying an extent in 
00023 // a metafile record (for the creation of a terrain out of that extent).
00024 class DT_DLL_terrainDbFactory DtExtentMetafileRecord : public DtMetafileRecord
00025 {
00026 
00027 public:
00028 
00029    DtExtentMetafileRecord();
00030    
00031    virtual ~DtExtentMetafileRecord();
00032    
00033    // copy constructor
00034    DtExtentMetafileRecord(const DtExtentMetafileRecord& orig);
00035 
00036    // assignment operator
00037    DtExtentMetafileRecord& operator=(const DtExtentMetafileRecord& orig);
00038    
00039    // Returns DtConfigExtentType;
00040    virtual DtConfigCategoryType recordCategory() const;
00041    
00042    // Read self from stream.
00043    virtual bool get(std::istream& stream);
00044 
00045    // identifies a token or passes it to the base class.
00046    virtual bool processToken(std::istream& stream, DtString& token);
00047 
00048    // identifies this record as a unique metafile record, "extent".
00049    virtual DtString recordTypeName() const;
00050 
00051    static DtMetafileRecord * create();
00052 
00053 protected:
00054 
00055    // Write self to stream.
00056    virtual bool writeAttributes(std::ostream& stream) const;
00057    virtual bool getAttribute(const DtString attrName, DtString& value, unsigned index=0);
00058    virtual bool setToken(const DtString& token, const DtString value);
00059 
00060    virtual CS_Type stringToCsTypeEnum(const DtString& string) const;
00061    virtual DtString csTypeEnumToString(CS_Type coordsys) const;
00062 
00063 protected:
00064 
00065    static const DtString theParameterCoordinateSystem;
00066    static const DtString theParameterSwCorner;
00067    static const DtString theParameterNeCorner;
00068    static const DtString theParameterSurfaceColor;
00069    static const DtString theParameterRoughness;
00070    static const DtString theParameterOrigin;
00071    static const DtString theParameterLam0;
00072    static const DtString theParameterPhi0;
00073    static const DtString theParameterPhi1;
00074    static const DtString theParameterPhi2;
00075    static const DtString theZone;
00076    static const DtString theTesselateX;
00077    static const DtString theTesselateY;
00078 };
00079 
00080 #endif
00081 

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)