VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
terrainMetafileRecord.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2025 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: terrainMfRec.h,v $ $Revision: 1.18 $ $State: Exp $
7 *******************************************************************************/
8 #ifndef terrainMetafileRecord_H_
9 #define terrainMetafileRecord_H_
10 
11 // \file terrainmfRec.h
12 // \brief Contains the DtTerarinMetafileRecord class declaration.
13 
16 #include "geometry/point.h"
18 #include <vlutil/vlFilename.h>
19 #include <iosfwd>
20 
24 {
25 
26 public:
27 
30 
32  virtual ~DtTerrainMetafileRecord() override;
33 
36 
39 
41  virtual const DtFilename& filename() const;
42  virtual void setFilename(const DtFilename & name);
43 
45  virtual DtConfigCategoryType recordCategory() const override;
46 
48  virtual const unsigned int terrainType() const;
49 
51  virtual void resetFileLists() override;
52 
54  virtual bool get(std::istream &stream) override;
55 
57  virtual bool processToken(std::istream &stream, DtString &token) override;
58 
59 protected:
60 
61  virtual bool writeAttributes(std::ostream &stream) const override;
62 
63  virtual bool getAttribute(const DtString attrName, DtString &value,
64  unsigned index = 0) override;
65 
66  virtual bool setToken(const DtString &token, const DtString value) override;
67 
68 protected:
69 
72  static const DtString theZone;
73 
76  static const DtString theOrigin;
77 
78  static const DtString theNumVertices;
79  static const DtString theNumSurfaces;
81 
82  long myZone;
85 
86  DtFilename myFile;
87  unsigned int myTerrainType;
88 };
89 
90 #endif
91 
DtConfigCategoryType
Definition: terrainDefines.h:19
DtFilename myFile
Definition: terrainMetafileRecord.h:86
static const DtString theNumVertices
Definition: terrainMetafileRecord.h:78
bool myOriginSet
Definition: terrainMetafileRecord.h:84
DtPoint myDatabaseOrigin
Definition: terrainMetafileRecord.h:83
const char * filename
Definition: ioapi.h:38
static const DtString theIsLargeTerrain
Definition: terrainMetafileRecord.h:80
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 theZone
These variables will be used to override any latitude/longitude or zone information found in header f...
Definition: terrainMetafileRecord.h:72
static const DtString theOrigin
Note that latitude and longitude origin will be defined as latitude, longitude, 0.0 (the z value must be 0.0)
Definition: terrainMetafileRecord.h:76
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 theNumSurfaces
Definition: terrainMetafileRecord.h:79
virtual DtConfigCategoryType recordCategory() const =0
Each record should have a category of configuration they represent. I.e does this record configure te...
long myZone
Definition: terrainMetafileRecord.h:82
#define DT_DLL_terrainDbFactory
Definition: terrainDbFactoryDefines.h:23
voidpf stream
Definition: ioapi.h:39
virtual void resetFileLists()
Clears any file lists this record holds onto.
Definition: metafileRecord.h:28
unsigned int myTerrainType
Definition: terrainMetafileRecord.h:87
DtMetafileRecord & operator=(const DtMetafileRecord &orig)
assignment operator
This is the abstract base class for all terrain records in a metafile.
Definition: terrainMetafileRecord.h:23
Definition: point.h:34

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)