Artificial Intelligence
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes

OpenSteer::SphereObstacle Class Reference

#include <Obstacle.h>

Inheritance diagram for OpenSteer::SphereObstacle:
OpenSteer::Obstacle OpenSteer::AbstractObstacle

List of all members.

Public Types

enum  seenFromState { outside, inside, both }

Public Member Functions

 SphereObstacle (float r, Vec3 c)
 SphereObstacle (void)
virtual ~SphereObstacle ()
void findIntersectionWithVehiclePath (const AbstractVehicle &vehicle, PathIntersection &pi) const
Vec3 steerToAvoid (const AbstractVehicle &v, const float minTimeToCollision) const
void draw (const bool, const Color &, const Vec3 &) const
seenFromState seenFrom (void) const
void setSeenFrom (seenFromState s)
virtual void setSeenFrom (seenFromState s)=0

Static Public Member Functions

static Vec3 steerToAvoidObstacles (const AbstractVehicle &vehicle, const float minTimeToCollision, const ObstacleGroup &obstacles)
static void firstPathIntersectionWithObstacleGroup (const AbstractVehicle &vehicle, const ObstacleGroup &obstacles, PathIntersection &nearest, PathIntersection &next)

Public Attributes

float radius
Vec3 center

Member Enumeration Documentation

Enumerator:
outside 
inside 
both 

Constructor & Destructor Documentation

OpenSteer::SphereObstacle::SphereObstacle ( float  r,
Vec3  c 
) [inline]
OpenSteer::SphereObstacle::SphereObstacle ( void  ) [inline]
virtual OpenSteer::SphereObstacle::~SphereObstacle ( ) [inline, virtual]

Member Function Documentation

void OpenSteer::Obstacle::draw ( const bool  ,
const Color ,
const Vec3  
) const [inline, virtual, inherited]
void OpenSteer::SphereObstacle::findIntersectionWithVehiclePath ( const AbstractVehicle vehicle,
PathIntersection pi 
) const [virtual]
void OpenSteer::Obstacle::firstPathIntersectionWithObstacleGroup ( const AbstractVehicle vehicle,
const ObstacleGroup obstacles,
PathIntersection nearest,
PathIntersection next 
) [static, inherited]
seenFromState OpenSteer::Obstacle::seenFrom ( void  ) const [inline, virtual, inherited]
void OpenSteer::Obstacle::setSeenFrom ( seenFromState  s) [inline, inherited]
virtual void OpenSteer::AbstractObstacle::setSeenFrom ( seenFromState  s) [pure virtual, inherited]
OpenSteer::Vec3 OpenSteer::Obstacle::steerToAvoid ( const AbstractVehicle v,
const float  minTimeToCollision 
) const [virtual, inherited]
OpenSteer::Vec3 OpenSteer::Obstacle::steerToAvoidObstacles ( const AbstractVehicle vehicle,
const float  minTimeToCollision,
const ObstacleGroup obstacles 
) [static, inherited]

Member Data Documentation


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