VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
feature.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1999 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: feature.h,v $ $Revision: 1.7 $ $State: Exp $
7 *********************************************************************/
8 
9 #ifndef feature_H_
10 #define feature_H_
11 
12 #include "gdb/gdbDefines.h"
13 #include "gdb/group.h"
14 #include <vlutil/vlMachineTypes.h>
15 
16 
17 typedef unsigned int DtFeatureId;
18 
19 // class DtFeature:
20 //
21 // DtFeature is an abstract base class that supports cultural
22 // features(buildings, bridges), terrain features (rail road
23 // networks, mine fields), and natural features (tree canopy,
24 // forest).
25 
27 {
28 public:
29 
30  // destructor
31  virtual ~DtFeature();
32 
33  // set/get feature id.
34  virtual void setFeatureId(DtFeatureId id);
35  virtual DtFeatureId featureId() const;
36 
37  // prints out the contents of the object
38  virtual void dump(int indentLevel) const;
39 
40  virtual int sizeInBytes() const;
41 
42 protected:
43 
44  // default constructor
45  DtFeature();
46 
47  // additional constructor
49 
50  // copy constructor
51  DtFeature(const DtFeature& orig);
52 
53  // assignment operator
54  DtFeature& operator=(const DtFeature& orig);
55 
56 protected:
57 
59 
60 protected:
61 
63 
64 
65 };
66 
68 {
69  myId = id;
70 }
71 
73 {
74  return myId;
75 }
76 
77 #endif
Definition: group.h:28
DtGroup & operator=(const DtGroup &orig)
DtFeatureId myId
Definition: feature.h:58
#define DT_DLL_gdb
Definition: gdbDefines.h:25
Definition: feature.h:26
virtual DtFeatureId featureId() const
Definition: feature.h:72
static DtFeatureId theNullId
Definition: feature.h:62
virtual void dump(int indentLevel) const
unsigned int DtFeatureId
Definition: feature.h:17
virtual int sizeInBytes() const
virtual void setFeatureId(DtFeatureId id)
Definition: feature.h:67

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)