Artificial Intelligence
Static Public Member Functions

OpenSteer::DistanceToPathAlikeMapping< PathAlike, Mapping, BaseDataExtractionPolicy > Class Template Reference

#include <QueryPathAlike.h>

List of all members.

Static Public Member Functions

static void map (PathAlike const &pathAlike, float distanceOnPath, Mapping &mapping)

Detailed Description

template<class PathAlike, class Mapping, class BaseDataExtractionPolicy = DistanceToPathAlikeBaseDataExtractionPolicy< PathAlike >>
class OpenSteer::DistanceToPathAlikeMapping< PathAlike, Mapping, BaseDataExtractionPolicy >

Provides functionality to map distances to path alikes and to extract the associated data.


Member Function Documentation

template<class PathAlike , class Mapping , class BaseDataExtractionPolicy = DistanceToPathAlikeBaseDataExtractionPolicy< PathAlike >>
static void OpenSteer::DistanceToPathAlikeMapping< PathAlike, Mapping, BaseDataExtractionPolicy >::map ( PathAlike const &  pathAlike,
float  distanceOnPath,
Mapping &  mapping 
) [inline, static]

Maps distanceOnPath to a path alike pathAlike and returns the queried data in mapping.

Mapping must provide the following member functions to set queried values. Member functions might be empty if the specific data isn't needed. A good compiler should optimize the empty member function calls and the associated calculations for its parameters away.

void setPointOnPathCenterLine( Vec3 const& ) void setRadius( float ) void setTangent( Vec3 const& ) void setSegmentIndex( typename SegmentedPathAlike::size_type ) void setDistanceOnPath( float ) void setDistanceOnSegment( float )


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines