VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
shapeMetafileRecord.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1998 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: shapeMfRec.h,v $ $Revision: 1.15 $ $State: Exp $
7 *******************************************************************************/
8 
9 #ifndef DtShapeMetafileRecord_H_
10 #define DtShapeMetafileRecord_H_
11 
14 
15 #include <vlutil/vlFilename.h>
16 
17 #include <iosfwd>
18 
19 // class DtShapeMetafileRecord:
20 //
21 // The shape metafile record has a list of individual shape files for terrain
22 
24 {
25 
26 public:
27 
28  // default constructor.
30 
31  // destructor
32  virtual ~DtShapeMetafileRecord();
33 
34  // copy constructor
36 
37  // assignment operator
39 
40  // Returns "shape".
41  virtual DtString recordTypeName() const;
42 
43  // Clears out the list of files associated to this record
44  virtual void resetFileLists();
45 
46  // Read self from stream.
47  virtual bool get(std::istream& stream);
48 
49  // identifies a token or passes it to the parent class.
50  virtual bool processToken(std::istream& stream, DtString& token);
51 
52  static DtMetafileRecord * create();
53 
54 protected:
55 
56  // Write self to stream.
57  virtual bool writeAttributes(std::ostream& stream) const;
58  virtual bool getAttribute(const DtString attrName, DtString& value, unsigned index=0);
59  virtual bool setToken(const DtString& token, const DtString value);
60 
61 protected:
62 
63  static const DtString theIsTerrainType;
69  static const DtString theIsTerrainFile;
70  static const DtString theOrigin;
71  static const DtString theDistance;
73  static const DtString theThreshold;
74 
75 };
76 
77 #endif
78 
static const DtString theIsSeaRectangleAdded
Definition: shapeMetafileRecord.h:67
virtual bool getAttribute(const DtString attrName, DtString &value, unsigned index=0)
Given the name of a record&#39;s attribute, returns its value in the &#39;value&#39; parameter.
static const DtString theIsElevationValue
Definition: shapeMetafileRecord.h:66
static const DtString theIsElevationField
Definition: shapeMetafileRecord.h:65
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 DtString recordTypeName() const =0
Returns the type name for the particular record.
static const DtString theOrigin
Definition: shapeMetafileRecord.h:70
virtual void resetFileLists()
Clears the terrain file initializer list.
virtual bool writeAttributes(std::ostream &stream) const
Write attributes to stream. This is called by put(stream)
static const DtString theIsElevationInData
Definition: shapeMetafileRecord.h:72
virtual bool processToken(std::istream &stream, DtString &token)
Identifies a token or passes it to the parent class.
static const DtString theIsGroundRectangleAdded
Definition: shapeMetafileRecord.h:68
#define DT_DLL_terrainDbFactory
Definition: terrainDbFactoryDefines.h:23
Definition: shapeMetafileRecord.h:23
static const DtString theIsTerrainFile
Definition: shapeMetafileRecord.h:69
static const DtString theThreshold
Definition: shapeMetafileRecord.h:73
voidpf stream
Definition: ioapi.h:39
static const DtString theIsElevationFactorToMeters
Definition: shapeMetafileRecord.h:64
Definition: metafileRecord.h:28
This is the abstract base class for all terrain records in a metafile.
Definition: terrainMetafileRecord.h:23
DtTerrainMetafileRecord & operator=(const DtTerrainMetafileRecord &orig)
assignment operator
static const DtString theDistance
Definition: shapeMetafileRecord.h:71
static const DtString theIsTerrainType
Definition: shapeMetafileRecord.h:63

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)