VR-Forces 4.1 Class Documentation
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 
19 
20 // class DtVectorNetworkIntersectionRecord:
21 //
22 // Instances of DtVectorNetworkIntersectionRecord are used to record the
23 // results of chord/primitive intersection attempts.
24 
26 {
27 public:
28 
29  // default constructor
31 
32  //additional constructor
33  DtVectorNetworkIntersectionRecord(const DtPoint& intersectionPoint,
34  double intersectionTime,
35  DtNetworkSpecElement* element);
36 
37  // destructor
39 
40  // copy constructor
42 
43  // assignment operator
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 
82 };
83 
84 
86 {
87  return myIntersectionFound;
88 }
89 
90 
92 {
93  myIntersectionFound = arg;
94 }
95 
96 
98 {
99  return myIntersectionPoint;
100 }
101 
102 
104 {
105  myIntersectionPoint = pt;
106 }
107 
108 
110 {
111  return myIntersectionTime;
112 }
113 
114 
116 {
117  myIntersectionTime = t;
118 }
119 
120 
122 {
123  return myElevation;
124 }
125 
126 
128 {
129  return myFeatureType;
130 }
131 
132 
134 {
135  return mySpecificationID;
136 }
137 
138 
140 {
141  return myElement;
142 }
143 
144 
146 {
147  return mySurface;
148 }
149 
150 
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)