VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
extentMetafileRecord.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2000 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: extentRec.h,v $ $Revision: 1.16 $ $State: Exp $
7 *******************************************************************************/
8 #ifndef extentMetafileRecord_H_
9 #define extentMetafileRecord_H_
10 
11 // \file extentRec.h
12 // \brief Contains the DtExtentMetafileRecord class declaration.
13 
16 #include "terrainCS/coordSystem.h"
18 
19 #include <iosfwd>
20 
21 //
22 // Extends from DtMetafileRecord to provide a way of specifying an extent in
23 // a metafile record (for the creation of a terrain out of that extent).
25 {
26 
27 public:
28 
30 
31  virtual ~DtExtentMetafileRecord();
32 
33  // copy constructor
35 
36  // assignment operator
38 
39  // Returns DtConfigExtentType;
40  virtual DtConfigCategoryType recordCategory() const;
41 
42  // Read self from stream.
43  virtual bool get(std::istream& stream);
44 
45  // identifies a token or passes it to the base class.
46  virtual bool processToken(std::istream& stream, DtString& token);
47 
48  // identifies this record as a unique metafile record, "extent".
49  virtual DtString recordTypeName() const;
50 
51  static DtMetafileRecord * create();
52 
53 protected:
54 
55  // Write self to stream.
56  virtual bool writeAttributes(std::ostream& stream) const;
57  virtual bool getAttribute(const DtString attrName, DtString& value, unsigned index=0);
58  virtual bool setToken(const DtString& token, const DtString value);
59 
60  virtual CS_Type stringToCsTypeEnum(const DtString& string) const;
61  virtual DtString csTypeEnumToString(CS_Type coordsys) const;
62 
63 protected:
64 
71  static const DtString theParameterLam0;
72  static const DtString theParameterPhi0;
73  static const DtString theParameterPhi1;
74  static const DtString theParameterPhi2;
75  static const DtString theZone;
76  static const DtString theTesselateX;
77  static const DtString theTesselateY;
78 };
79 
80 #endif
81 

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)