15 #include <matrix/vlVector.h>
36 virtual void setStartPoint(
const DtVector& start);
37 virtual const DtVector & startPoint()
const;
42 virtual void setEndPoint(
const DtVector & end);
43 virtual const DtVector & endPoint()
const;
50 virtual void setSegmentSpeed(
double speed);
51 virtual double segmentSpeed()
const;
56 virtual double defaultSegmentSpeedLimit()
const;
60 virtual void setLaneWidth(
double width);
61 virtual double laneWidth()
const;
66 virtual void setNumberOfLanes(
unsigned int lanes);
67 virtual unsigned int numberOfLanes()
const;
76 virtual int leftLaneOfLane(
int lane)
const;
77 virtual int rightLaneOfLane(
int lane)
const;
82 virtual double findLaneShift(
const int fromLane,
const int toLane)
const;
94 virtual double laneOffset(
int lanePos)
const;
100 virtual double laneCenterOffset(
int lane)
const;
104 virtual void setIsOneWay(
bool way);
105 virtual bool isOneWay()
const;
109 virtual std::list<int> availableLanes()
const;
129 virtual void setPathId(
const unsigned int id);
130 virtual const unsigned int pathId()
const;
143 virtual void setMedianWidth(
const double width);
144 virtual double medianWidth()
const;
149 virtual void setRoadName(
const DtString name);
157 virtual double length()
const;
159 static unsigned int nextPathId();
198 namespace DtBufferSerialize
DtVrfWeatherPrecipitationType
Definition: vrfWeatherStateEnums.h:13
DT_DLL_readerWriter int getSize(const DtString &val)
The number of bytes required to encode the value.
double length(const dvec3 &theVec)
Definition: DtVecUtils.h:20
unsigned int DtSpecificationID
Definition: specificationManager.h:22
DtRailSegmentList::iterator DtRailSegmentListIterator
Definition: railSegment.h:195
DtRailSegmentList::const_iterator DtRailSegmentListConstIterator
Definition: railSegment.h:196
std::list< DtRailSegment * > DtRailSegmentList
Definition: railSegment.h:194
bool myIsOneWay
Default is false. Allowing traffic in each direction.
Definition: railSegment.h:173
DtSpecificationID mySpecId
Default is 0. It will be set based on whatever feature it was created from.
Definition: railSegment.h:178
double myLaneWidth
Default is 3.66m. This is U.S. Highway standard.
Definition: railSegment.h:169
DtRailSegment are segments entities can follow when using the rail movement system.
Definition: railSegment.h:20
unsigned int myNumberOfLanes
Default is 2 allowing a lane for each direction of traffic.
Definition: railSegment.h:171
static unsigned int theNextPathId
Definition: railSegment.h:191
DtVector myStartPoint
Definition: railSegment.h:163
DtVrfWeatherPrecipitationType mySurfaceCondition
Default is 0–No precipitation.
Definition: railSegment.h:180
double myMedianWidth
In a two-way segment, the width of the median (impassable area) down the center.
Definition: railSegment.h:183
double myLength
These values are calculated when needed and cached.
Definition: railSegment.h:188
double mySpeed
Default is 50 m/s. Make it high so default is to not interfere with driving and let user choose speed...
Definition: railSegment.h:167
bool myRecomputeLength
Definition: railSegment.h:189
DT_DLL_readerWriter char * encode(const DtFilename &val, char *buffer)
Serializes the provided value val into buffer. buffer must have at least the number of bytes returned...
DtString myRoadName
The name, if present.
Definition: railSegment.h:185
DtVector myEndPoint
Definition: railSegment.h:164
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34
DT_DLL_readerWriter const char * decode(DtString &val, const char *buffer)
Decodes a value from buffer and places the result in val of the type specified by val...
unsigned int myPathId
Keep track of if this segment is just a continuation of the current road. Upon reaching an intersecti...
Definition: railSegment.h:176