VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
railMovementDescriptor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
14 #include "vrfutil/rwBoolean.h"
15 #include "vrfutil/rwObjectType.h"
17 #include "vrfutil/rwUnsigned.h"
18 
20 
25 {
26 public:
29  parentRegistry = 0);
30 
33  DtReaderWriterRegistry * parentRegistry = 0);
34 
38 
40  virtual ~DtRailMovementDescriptor();
41 
44  virtual DtString type() const;
45 
48  virtual void setUseTurnSmoothing(bool smooth);
49  virtual bool useTurnSmoothing() const;
51 
54  virtual void setUseAcceleration(bool acc);
55  virtual bool useAcceleration() const;
57 
60  virtual void setTurnSpeed(double speed);
61  virtual const double turnSpeed() const;
62 
65  virtual void setAllowToPass(bool pass);
66  virtual bool allowToPass() const;
68 
71  virtual bool useHighFidelityGroundClamping() const;
72  virtual void setUseHighFidelityGroundClamping(bool yesOrNo);
74 
78  virtual bool drawDebugTurnSplinePoints() const;
79  virtual void setDrawDebugTurnSplinePoints(bool draw);
81 
87  virtual const double maxFollowThreshold() const;
88  virtual void setMaxFollowThreshold(const double threshold);
90 
94  virtual const double convoyFollowSpeedFactor() const;
95  virtual void setConvoyFollowSpeedFactor(const double factor);
97 
100  virtual const double lookAheadDistance() const;
101  virtual void setLookAheadDistance(const double distance);
103 
106  virtual const double hitTimeLaneChange() const;
107  virtual void setHitTimeLaneChange(const double time);
109 
112  virtual void setPassableObjectTypes(const DtRwObjectTypeList& objectTypes);
113  virtual DtRwObjectTypeList& passableObjectTypes();
114  virtual const DtRwObjectTypeList& passableObjectTypes() const;
116 
119  virtual void setExtraLanesEachDirection(unsigned);
120  virtual unsigned extraLanesEachDirection() const;
122 
125  virtual void setDrivingLane(unsigned);
126  virtual unsigned drivingLane() const;
128 
129  virtual DtComponentDescriptor * clone(DtReaderWriterRegistry * parentRegistry
130  = 0) const;
131 
133  static DtComponentDescriptor * creator();
134 
135 protected:
138 
139 protected:
140 
144 
151 
157 
163 
169 
185 
190 
198 
204 
209 
214 
219 
224 
229 
231 };
232 
233 
234 
235 

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)