Artificial Intelligence
Public Member Functions | Public Attributes

OpenSteer::RectangleObstacle Class Reference

#include <Obstacle.h>

Inheritance diagram for OpenSteer::RectangleObstacle:
OpenSteer::PlaneObstacle OpenSteer::LocalSpaceMixin< Super >

List of all members.

Public Member Functions

 RectangleObstacle (float w, float h)
 RectangleObstacle (void)
 RectangleObstacle (float w, float h, const Vec3 &s, const Vec3 &u, const Vec3 &f, const Vec3 &p, seenFromState sf)
virtual ~RectangleObstacle ()
bool xyPointInsideShape (const Vec3 &point, float radius) const
void findIntersectionWithVehiclePath (const AbstractVehicle &vehicle, PathIntersection &pi) const
Vec3 side (void) const
Vec3 up (void) const
Vec3 forward (void) const
Vec3 position (void) const
Vec3 setSide (Vec3 s)
Vec3 setSide (float x, float y, float z)
Vec3 setUp (Vec3 u)
Vec3 setUp (float x, float y, float z)
Vec3 setForward (Vec3 f)
Vec3 setForward (float x, float y, float z)
Vec3 setPosition (Vec3 p)
Vec3 setPosition (float x, float y, float z)
bool rightHanded (void) const
void resetLocalSpace (void)
Vec3 localizeDirection (const Vec3 &globalDirection) const
Vec3 localizePosition (const Vec3 &globalPosition) const
Vec3 globalizePosition (const Vec3 &localPosition) const
Vec3 globalizeDirection (const Vec3 &localDirection) const
void setUnitSideFromForwardAndUp (void)
void regenerateOrthonormalBasisUF (const Vec3 &newUnitForward)
void regenerateOrthonormalBasis (const Vec3 &newForward)
void regenerateOrthonormalBasis (const Vec3 &newForward, const Vec3 &newUp)
Vec3 localRotateForwardToSide (const Vec3 &v) const
Vec3 globalRotateForwardToSide (const Vec3 &globalForward) const

Public Attributes

float width
float height

Constructor & Destructor Documentation

OpenSteer::RectangleObstacle::RectangleObstacle ( float  w,
float  h 
) [inline]
OpenSteer::RectangleObstacle::RectangleObstacle ( void  ) [inline]
OpenSteer::RectangleObstacle::RectangleObstacle ( float  w,
float  h,
const Vec3 s,
const Vec3 u,
const Vec3 f,
const Vec3 p,
seenFromState  sf 
) [inline]
virtual OpenSteer::RectangleObstacle::~RectangleObstacle ( ) [inline, virtual]

Member Function Documentation

void OpenSteer::PlaneObstacle::findIntersectionWithVehiclePath ( const AbstractVehicle vehicle,
PathIntersection &  pi 
) const [inherited]
template<class Super >
Vec3 OpenSteer::LocalSpaceMixin< Super >::forward ( void  ) const [inline, inherited]
template<class Super >
Vec3 OpenSteer::LocalSpaceMixin< Super >::globalizeDirection ( const Vec3 localDirection) const [inline, inherited]
template<class Super >
Vec3 OpenSteer::LocalSpaceMixin< Super >::globalizePosition ( const Vec3 localPosition) const [inline, inherited]
template<class Super >
Vec3 OpenSteer::LocalSpaceMixin< Super >::globalRotateForwardToSide ( const Vec3 globalForward) const [inline, inherited]
template<class Super >
Vec3 OpenSteer::LocalSpaceMixin< Super >::localizeDirection ( const Vec3 globalDirection) const [inline, inherited]
template<class Super >
Vec3 OpenSteer::LocalSpaceMixin< Super >::localizePosition ( const Vec3 globalPosition) const [inline, inherited]
template<class Super >
Vec3 OpenSteer::LocalSpaceMixin< Super >::localRotateForwardToSide ( const Vec3 v) const [inline, inherited]
template<class Super >
Vec3 OpenSteer::LocalSpaceMixin< Super >::position ( void  ) const [inline, inherited]
template<class Super >
void OpenSteer::LocalSpaceMixin< Super >::regenerateOrthonormalBasis ( const Vec3 newForward) [inline, inherited]
template<class Super >
void OpenSteer::LocalSpaceMixin< Super >::regenerateOrthonormalBasis ( const Vec3 newForward,
const Vec3 newUp 
) [inline, inherited]
template<class Super >
void OpenSteer::LocalSpaceMixin< Super >::regenerateOrthonormalBasisUF ( const Vec3 newUnitForward) [inline, inherited]
template<class Super >
void OpenSteer::LocalSpaceMixin< Super >::resetLocalSpace ( void  ) [inline, inherited]
template<class Super >
bool OpenSteer::LocalSpaceMixin< Super >::rightHanded ( void  ) const [inline, inherited]
template<class Super >
Vec3 OpenSteer::LocalSpaceMixin< Super >::setForward ( float  x,
float  y,
float  z 
) [inline, inherited]
template<class Super >
Vec3 OpenSteer::LocalSpaceMixin< Super >::setForward ( Vec3  f) [inline, inherited]
template<class Super >
Vec3 OpenSteer::LocalSpaceMixin< Super >::setPosition ( Vec3  p) [inline, inherited]
template<class Super >
Vec3 OpenSteer::LocalSpaceMixin< Super >::setPosition ( float  x,
float  y,
float  z 
) [inline, inherited]
template<class Super >
Vec3 OpenSteer::LocalSpaceMixin< Super >::setSide ( float  x,
float  y,
float  z 
) [inline, inherited]
template<class Super >
Vec3 OpenSteer::LocalSpaceMixin< Super >::setSide ( Vec3  s) [inline, inherited]
template<class Super >
void OpenSteer::LocalSpaceMixin< Super >::setUnitSideFromForwardAndUp ( void  ) [inline, inherited]
template<class Super >
Vec3 OpenSteer::LocalSpaceMixin< Super >::setUp ( float  x,
float  y,
float  z 
) [inline, inherited]
template<class Super >
Vec3 OpenSteer::LocalSpaceMixin< Super >::setUp ( Vec3  u) [inline, inherited]
template<class Super >
Vec3 OpenSteer::LocalSpaceMixin< Super >::side ( void  ) const [inline, inherited]
template<class Super >
Vec3 OpenSteer::LocalSpaceMixin< Super >::up ( void  ) const [inline, inherited]
bool OpenSteer::RectangleObstacle::xyPointInsideShape ( const Vec3 point,
float  radius 
) const [virtual]

Reimplemented from OpenSteer::PlaneObstacle.


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