VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Protected Attributes
DtRailPathMetric Class Reference

It finds the shortest route to the goal. More...

Inheritance diagram for DtRailPathMetric:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtRailPathMetric (DtVrfObject *entity)
virtual ~DtRailPathMetric ()
virtual bool init ()
 Call immediately after constructor.
virtual double transitionCost (const DtPoint &startPoint, const DtPoint &endPoint) const
 Just returns the distance between points.
virtual double transitionCost (const DtPoint &startPoint, DtNetworkEdge *edge)
 Just returns the length of the edge.
virtual double turningCost (double cosAngle) const
 Returns a cost based on the turning radius of the vehicle.
virtual double multiplierForPoint (const DtPoint &point) const
 Override this function to add your own cost calculations to the path.

Static Public Member Functions

static DtPathMetriccreator (DtVrfObject *entity)

Protected Attributes

DtPhysicalWorldmyPhysicalWorld

Detailed Description

It finds the shortest route to the goal.

The returned cost is the distance across the segment.


Constructor & Destructor Documentation

virtual DtRailPathMetric::~DtRailPathMetric ( ) [virtual]

Member Function Documentation

virtual bool DtRailPathMetric::init ( ) [virtual]

Call immediately after constructor.

Reimplemented from DtPathMetric.

virtual double DtRailPathMetric::transitionCost ( const DtPoint startPoint,
const DtPoint endPoint 
) const [virtual]

Just returns the distance between points.

Implements DtPathMetric.

virtual double DtRailPathMetric::transitionCost ( const DtPoint startPoint,
DtNetworkEdge edge 
) [virtual]

Just returns the length of the edge.

virtual double DtRailPathMetric::turningCost ( double  cosAngle) const [virtual]

Returns a cost based on the turning radius of the vehicle.

Implements DtPathMetric.

virtual double DtRailPathMetric::multiplierForPoint ( const DtPoint point) const [virtual]

Override this function to add your own cost calculations to the path.

Default implementation return 1.0. To further customize this metric, override this method and return a multiplier for each point. Do not return less than 1.0 in order to keep the optimistic heuristic rule.

static DtPathMetric* DtRailPathMetric::creator ( DtVrfObject entity) [static]

Member Data Documentation


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)