VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
gdb
vecNwrkIntRec.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1998 MAK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
** $RCSfile: vecNwrkIntRec.h,v $ $Revision: 1.8 $ $State: Exp $
7
*********************************************************************/
8
#ifndef vecNwrkIntRec_H_
9
#define vecNwrkIntRec_H_
10
11
#include "
gdb/gdbDefines.h
"
12
#include "
geometry/point.h
"
13
#include "
geometry/surface.h
"
14
#include "
gdb/specMgr.h
"
15
16
17
18
class
DtNetworkSpecElement
;
19
20
// class DtVectorNetworkIntersectionRecord:
21
//
22
// Instances of DtVectorNetworkIntersectionRecord are used to record the
23
// results of chord/primitive intersection attempts.
24
25
class
DT_DLL_gdb
DtVectorNetworkIntersectionRecord
26
{
27
public
:
28
29
// default constructor
30
DtVectorNetworkIntersectionRecord
();
31
32
//additional constructor
33
DtVectorNetworkIntersectionRecord
(
const
DtPoint
& intersectionPoint,
34
double
intersectionTime,
35
DtNetworkSpecElement
* element);
36
37
// destructor
38
virtual
~
DtVectorNetworkIntersectionRecord
();
39
40
// copy constructor
41
DtVectorNetworkIntersectionRecord
(
const
DtVectorNetworkIntersectionRecord
& orig);
42
43
// assignment operator
44
DtVectorNetworkIntersectionRecord
& operator=(
const
DtVectorNetworkIntersectionRecord
& orig);
45
46
// clone this object
47
virtual
DtVectorNetworkIntersectionRecord
* clone()
const
;
48
49
bool
intersectionFound()
const
;
50
void
setIntersectionFound(
bool
arg);
51
52
double
intersectionTime()
const
;
53
void
setIntersectionTime(
double
arg);
54
55
//set/get intersectionPoint
56
DtPoint
intersectionPoint()
const
;
57
void
setIntersectionPoint(
const
DtPoint
& pt);
58
59
int
elevation()
const
;
60
int
featureType()
const
;
61
unsigned
specificationID()
const
;
62
63
// Get a pointer to the intersecting feature.
64
DtNetworkSpecElement
* element()
const
;
65
void
setElement(
DtNetworkSpecElement
* element);
66
67
DtSurface
&surface();
68
void
setSurface(
const
DtSurface
&surf);
69
70
protected
:
71
72
void
calculateSurface();
73
74
bool
myIntersectionFound
;
75
DtPoint
myIntersectionPoint
;
76
double
myIntersectionTime
;
77
int
myElevation
;
78
DtNetworkSpecElement
*
myElement
;
79
int
myFeatureType
;
80
DtSpecificationID
mySpecificationID
;
81
DtSurface
mySurface
;
82
};
83
84
85
inline
bool
DtVectorNetworkIntersectionRecord::intersectionFound
()
const
86
{
87
return
myIntersectionFound
;
88
}
89
90
91
inline
void
DtVectorNetworkIntersectionRecord::setIntersectionFound
(
bool
arg)
92
{
93
myIntersectionFound
= arg;
94
}
95
96
97
inline
DtPoint
DtVectorNetworkIntersectionRecord::intersectionPoint
()
const
98
{
99
return
myIntersectionPoint
;
100
}
101
102
103
inline
void
DtVectorNetworkIntersectionRecord::setIntersectionPoint
(
const
DtPoint
& pt)
104
{
105
myIntersectionPoint
= pt;
106
}
107
108
109
inline
double
DtVectorNetworkIntersectionRecord::intersectionTime
()
const
110
{
111
return
myIntersectionTime
;
112
}
113
114
115
inline
void
DtVectorNetworkIntersectionRecord::setIntersectionTime
(
double
t)
116
{
117
myIntersectionTime
= t;
118
}
119
120
121
inline
int
DtVectorNetworkIntersectionRecord::elevation
()
const
122
{
123
return
myElevation
;
124
}
125
126
127
inline
int
DtVectorNetworkIntersectionRecord::featureType
()
const
128
{
129
return
myFeatureType
;
130
}
131
132
133
inline
unsigned
DtVectorNetworkIntersectionRecord::specificationID
()
const
134
{
135
return
mySpecificationID
;
136
}
137
138
139
inline
DtNetworkSpecElement
*
DtVectorNetworkIntersectionRecord::element
()
const
140
{
141
return
myElement
;
142
}
143
144
145
inline
DtSurface
&
DtVectorNetworkIntersectionRecord::surface
()
146
{
147
return
mySurface
;
148
}
149
150
151
inline
void
DtVectorNetworkIntersectionRecord::setSurface
(
const
DtSurface
&surf)
152
{
153
mySurface
= surf;
154
}
155
156
#endif
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)