VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
3DViewMetafileRecord.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2025 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: 3DViewMfRec.h,v $ $Revision: 1.1 $ $State: Exp $
7 ** Created: 11/25/07 JAT, Updated:
8 *******************************************************************************/
9 #ifndef ThreeDViewMfRec_H_
10 #define ThreeDViewMfRec_H_
11 
14 
15 // The Dt3DViewMetafileRecord record specifies the terrain file(s) to load by 3DVRForces.
17 {
18 
19 public:
20 
23 
25  virtual ~Dt3DViewMetafileRecord() override;
26 
29 
32 
34  virtual DtString recordTypeName() const override;
35 
37  virtual DtConfigCategoryType recordCategory() const override;
38 
40  virtual const DtFilename& filename() const;
41 
43  virtual void setFilename(const DtFilename & name);
44 
46  virtual bool get(std::istream &stream) override;
47 
49  virtual bool processToken(std::istream &stream, DtString &token) 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 protected:
62 
63  static const DtString theParameterFile;
64  DtFilename myFile;
65 
66 };
67 
68 #endif
69 
DtConfigCategoryType
Definition: terrainDefines.h:19
static const DtString theParameterFile
Definition: 3DViewMetafileRecord.h:63
const char * filename
Definition: ioapi.h:38
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's attribute, returns True if the record has the attribute (the value is re...
DtFilename myFile
Definition: 3DViewMetafileRecord.h:64
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)
virtual DtConfigCategoryType recordCategory() const =0
Each record should have a category of configuration they represent. I.e does this record configure te...
#define DT_DLL_terrainDbFactory
Definition: terrainDbFactoryDefines.h:23
voidpf stream
Definition: ioapi.h:39
Definition: metafileRecord.h:28
Definition: 3DViewMetafileRecord.h:16
DtMetafileRecord & operator=(const DtMetafileRecord &orig)
assignment operator

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)