VR-Forces 4.5 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
gdb
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
26
class
DT_DLL_gdb
DtFeature
:
public
DtGroup
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
48
DtFeature
(
DtFeatureId
id
);
49
50
// copy constructor
51
DtFeature
(
const
DtFeature
& orig);
52
53
// assignment operator
54
DtFeature
&
operator=
(
const
DtFeature
& orig);
55
56
protected
:
57
58
DtFeatureId
myId
;
59
60
protected
:
61
62
static
DtFeatureId
theNullId
;
63
64
65
};
66
67
inline
void
DtFeature::setFeatureId
(
DtFeatureId
id
)
68
{
69
myId
= id;
70
}
71
72
inline
DtFeatureId
DtFeature::featureId
()
const
73
{
74
return
myId
;
75
}
76
77
#endif
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)