VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 
static const DtString theParameterRoughness
Definition: extentMetafileRecord.h:69
DtConfigCategoryType
Definition: terrainDefines.h:19
static const DtString theParameterPhi2
Definition: extentMetafileRecord.h:74
virtual bool setToken(const DtString &token, const DtString value)
identifies a token and returns true if the value can be set to it, false otherwise ...
virtual bool getAttribute(const DtString attrName, DtString &value, DtString &type, unsigned index=0)
Given the name of a record&#39;s attribute, returns True if the record has the attribute (the value is re...
static const DtString theTesselateY
Definition: extentMetafileRecord.h:77
virtual DtString recordTypeName() const =0
Returns the type name for the particular record.
virtual bool processToken(std::istream &stream, DtString &token)
identifies a token or passes token the parent class.
virtual bool writeAttributes(std::ostream &stream) const
Write attributes to stream. This is called by put(stream)
static const DtString theZone
Definition: extentMetafileRecord.h:75
Definition: extentMetafileRecord.h:24
virtual DtConfigCategoryType recordCategory() const =0
Each record should have a category of configuration they represent.
static const DtString theTesselateX
Definition: extentMetafileRecord.h:76
static const DtString theParameterNeCorner
Definition: extentMetafileRecord.h:67
#define DT_DLL_terrainDbFactory
Definition: terrainDbFactoryDefines.h:23
voidpf stream
Definition: ioapi.h:39
CS_Type
Definition: coordSystem.h:35
Definition: metafileRecord.h:28
static const DtString theParameterPhi0
Definition: extentMetafileRecord.h:72
static const DtString theParameterSwCorner
Definition: extentMetafileRecord.h:66
static const DtString theParameterCoordinateSystem
Definition: extentMetafileRecord.h:65
DtMetafileRecord & operator=(const DtMetafileRecord &orig)
assignment operator
static const DtString theParameterOrigin
Definition: extentMetafileRecord.h:70
static const DtString theParameterSurfaceColor
Definition: extentMetafileRecord.h:68
static const DtString theParameterLam0
Definition: extentMetafileRecord.h:71
static const DtString theParameterPhi1
Definition: extentMetafileRecord.h:73

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)