VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
shapeVectorMetafileRecord.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2025 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: shapeVectorMfRec.h,v $ $Revision: 1.16 $ $State: Exp $
7 *******************************************************************************/
8 
9 #ifndef DtShapeVectorMetafileRecord_H_
10 #define DtShapeVectorMetafileRecord_H_
11 
14 #include <vlutil/vlFilename.h>
15 #include <iosfwd>
16 
17 //
18 // The shape metafile record has a list of individual shape files for
19 // feature data.
21 {
22 
23 public:
24 
25  // default constructor.
27 
28  // destructor
29  virtual ~DtShapeVectorMetafileRecord() override;
30 
31  // copy constructor
33 
34  // assignment operator
36 
37  // Returns "shape".
38  virtual DtString recordTypeName() const override;
39 
40  // Clears the vector files from the vector initializer list
41  virtual void resetFileLists() override;
42 
43  // Read self from stream.
44  virtual bool get(std::istream &stream) override;
45 
46  // identifies a token or passes it to the parent class.
47  virtual bool processToken(std::istream &stream, DtString &token) override;
48 
49  static DtMetafileRecord* create();
50 
51 protected:
52 
53  // Write self to stream.
54  virtual bool writeAttributes(std::ostream &stream) const override;
55  virtual bool getAttribute(const DtString attrName, DtString &value,
56  unsigned index = 0) override;
57  virtual bool setToken(const DtString &token, const DtString value) override;
58 
59 protected:
60 
62  static const DtString theOrigin;
63 
64  static const DtString theFccType;
65  static const DtString theAttribute;
66  // Maps numerical type to the feature it represents. ie load in a shape file
67  // road.shp. Type is assigned to 240. The sedris map matches that 240 with the
68  // feature of road and it's associated attributes.
69  static const DtString theSedrisMapFile;
70  // Maps a shape feature to a color
71  static const DtString theSedrisColorMapFile; //
72 };
73 
74 #endif
75 
static const DtString theSedrisMapFile
Definition: shapeVectorMetafileRecord.h:69
Definition: vectorDataRecord.h:24
static const DtString theOrigin
Definition: shapeVectorMetafileRecord.h:62
Definition: shapeVectorMetafileRecord.h:20
virtual bool processToken(std::istream &stream, DtString &token) override
identifies a token or passes token the parent class.
DtVectorDataRecord & operator=(const DtVectorDataRecord &rhs)
static DtMetafileRecord * create()
static const DtString theFccType
Definition: shapeVectorMetafileRecord.h:64
virtual bool writeAttributes(std::ostream &stream) const override
Write attributes to stream. This is called by put(stream)
#define DT_DLL_terrainDbFactory
Definition: terrainDbFactoryDefines.h:23
static const DtString theIsFeatureDataFile
Definition: shapeVectorMetafileRecord.h:61
virtual void resetFileLists() override
Clears any file lists this record holds onto.
voidpf stream
Definition: ioapi.h:39
virtual bool setToken(const DtString &token, const DtString value) override
identifies a token and returns true if the value can be set to it, false otherwise ...
Definition: metafileRecord.h:28
virtual bool getAttribute(const DtString attrName, DtString &value, unsigned index=0) override
Given the name of a record&#39;s attribute, returns its value in the &#39;value&#39; parameter. Returns True if successful; false otherwise.
static const DtString theSedrisColorMapFile
Definition: shapeVectorMetafileRecord.h:71
static const DtString theAttribute
Definition: shapeVectorMetafileRecord.h:65
virtual DtString recordTypeName() const override
Returns the type name for the particular record. Descendants should have this method return some stri...

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)