VR-Forces Developer's Guide
 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) 2025 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() override;
32 
33  // copy constructor
35 
36  // assignment operator
38 
39  // Returns DtConfigExtentType;
40  virtual DtConfigCategoryType recordCategory() const override;
41 
42  // Read self from stream.
43  virtual bool get(std::istream &stream) override;
44 
45  // identifies a token or passes it to the base class.
46  virtual bool processToken(std::istream &stream, DtString &token) override;
47 
48  // identifies this record as a unique metafile record, "extent".
49  virtual DtString recordTypeName() const override;
50 
51  static DtMetafileRecord * create();
52 
53 protected:
54 
55  // Write self to stream.
56  virtual bool writeAttributes(std::ostream &stream) const override;
57  virtual bool getAttribute(const DtString attrName, DtString &value,
58  unsigned index = 0) override;
59  virtual bool setToken(const DtString &token, const DtString value) override;
60 
61  virtual CS_Type stringToCsTypeEnum(const DtString& string) const;
62  virtual DtString csTypeEnumToString(CS_Type coordsys) const;
63 
64 protected:
65 
72  static const DtString theParameterLam0;
73  static const DtString theParameterPhi0;
74  static const DtString theParameterPhi1;
75  static const DtString theParameterPhi2;
76  static const DtString theZone;
77  static const DtString theTesselateX;
78  static const DtString theTesselateY;
79 };
80 
81 #endif
82 
static const DtString theParameterRoughness
Definition: extentMetafileRecord.h:70
DtConfigCategoryType
Definition: terrainDefines.h:19
static const DtString theParameterPhi2
Definition: extentMetafileRecord.h:75
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:78
virtual DtString recordTypeName() const =0
Returns the type name for the particular record. Descendants should have this method return some stri...
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:76
Definition: extentMetafileRecord.h:24
virtual DtConfigCategoryType recordCategory() const =0
Each record should have a category of configuration they represent. I.e does this record configure te...
static const DtString theTesselateX
Definition: extentMetafileRecord.h:77
static const DtString theParameterNeCorner
Definition: extentMetafileRecord.h:68
#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:73
static const DtString theParameterSwCorner
Definition: extentMetafileRecord.h:67
static const DtString theParameterCoordinateSystem
Definition: extentMetafileRecord.h:66
DtMetafileRecord & operator=(const DtMetafileRecord &orig)
assignment operator
static const DtString theParameterOrigin
Definition: extentMetafileRecord.h:71
static const DtString theParameterSurfaceColor
Definition: extentMetafileRecord.h:69
static const DtString theParameterLam0
Definition: extentMetafileRecord.h:72
static const DtString theParameterPhi1
Definition: extentMetafileRecord.h:74

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)