VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vectorDataRecord.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1998 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: vectorDataRec.h,v $ $Revision: 1.15 $ $State: Exp $
7 *******************************************************************************/
8 #ifndef vectorDataRecord_H_
9 #define vectorDataRecord_H_
10 
11 // file vectorDataRec.h
12 // \brief Contains the DtVectorDataRecord class declaration.
13 
16 #include <iosfwd>
17 #include <vector>
19 
21 
22 //
23 // Instances of this class are accessors to dfad/dfd data
25 {
26 
27 public:
28 
29  // default constructor.
31 
32  // destructor
33  virtual ~DtVectorDataRecord();
34 
35  // copy constructor
37 
38  // assignment operator
40 
41  // Returns "vector".
42  virtual DtString recordTypeName() const;
43 
44  // Returns DtConfigVectorType
45  virtual DtConfigCategoryType recordCategory() const;
46 
47  // Returns VectorFileTypeUnknown
48  virtual const unsigned int vecDataType() const;
49 
50  // Returns the initializer.
51  virtual DtVectorDataInitializer* vectorDataInitializer();
52 
53  // Clears the vector files from the vector initializer list
54  virtual void resetFileLists();
55 
56  // Read self from stream.
57  virtual bool get(std::istream& stream);
58 
59  // identifies a token or passes it to the parent class.
60  virtual bool processToken(std::istream& stream, DtString& token);
61 
62  static DtMetafileRecord* create();
63 
64 protected:
65 
66  // Write self to stream.
67  virtual bool writeAttributes(std::ostream& stream) const;
68  virtual bool getAttribute(const DtString attrName, DtString& value, unsigned index=0);
69  virtual bool setToken(const DtString& token, const DtString value);
70 
71 protected:
72 
75  static const DtString theTolerance;
77 
79  unsigned int myVectorDataType;
80 
81 };
82 
83 #endif
84 
unsigned int myVectorDataType
Definition: vectorDataRecord.h:79
static const DtString theClipVectorNetworkToExtent
Definition: vectorDataRecord.h:74
DtConfigCategoryType
Definition: terrainDefines.h:19
static const DtString theTolerance
Definition: vectorDataRecord.h:75
Definition: vectorDataRecord.h:24
Definition: vectorDataInitializer.h:21
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 thePlanarizeVectorNetwork
Definition: vectorDataRecord.h:73
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)
DtVectorDataInitializer * myVectorDataInitializer
Definition: vectorDataRecord.h:78
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
virtual void resetFileLists()
Clears any file lists this record holds onto.
Definition: metafileRecord.h:28
DtMetafileRecord & operator=(const DtMetafileRecord &orig)
assignment operator
static const DtString theExcessiveEdgeCount
Definition: vectorDataRecord.h:76

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)