Physics::RayHandler Class Reference

GeometryHandler for finite rays (Defines a ray aligned with the Z axis (up), starting at (0,0,0)). More...

#include <GeometryHandlers.h>

Inheritance diagram for Physics::RayHandler:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 RayHandler (dReal length)
 RayHandler (dReal length, graphVec3 startPoint, graphVec3 dir)
virtual EGeomType type () const
void setLength (dReal length)
dReal getLength () const
void setRay (graphVec3 startPoint, graphVec3 dir)
 Convinience method that modifies the geom it belongs to : it sets the rotation so that it will match given parameters.
graphVec3 getStartPoint ()
graphVec3 getDir ()
virtual GeometryHandlerclone () const

Protected Member Functions

virtual dGeomID create (dSpaceID spaceId)

Protected Attributes

dReal length
graphVec3 startPoint
graphVec3 dir


Detailed Description

GeometryHandler for finite rays (Defines a ray aligned with the Z axis (up), starting at (0,0,0)).

Please note that setting ray parameters (Start point and direction) will affect the geom it belongs to (rotation matrix), not the ray itself ; so if you attach it to a body, it will be reset to a "Z-axis" ray.

Definition at line 287 of file GeometryHandlers.h.


Constructor & Destructor Documentation

Physics::RayHandler::RayHandler ( dReal  length  )  [inline]

Definition at line 289 of file GeometryHandlers.h.

Physics::RayHandler::RayHandler ( dReal  length,
graphVec3  startPoint,
graphVec3  dir 
) [inline]

Definition at line 290 of file GeometryHandlers.h.


Member Function Documentation

virtual GeometryHandler* Physics::RayHandler::clone (  )  const [inline, virtual]

Implements Physics::GeometryHandler.

Definition at line 322 of file GeometryHandlers.h.

virtual dGeomID Physics::RayHandler::create ( dSpaceID  spaceId  )  [inline, protected, virtual]

Implements Physics::GeometryHandler.

Definition at line 325 of file GeometryHandlers.h.

graphVec3 Physics::RayHandler::getDir (  )  [inline]

Definition at line 315 of file GeometryHandlers.h.

References Physics::toGraphVec3().

dReal Physics::RayHandler::getLength (  )  const [inline]

Definition at line 299 of file GeometryHandlers.h.

graphVec3 Physics::RayHandler::getStartPoint (  )  [inline]

Definition at line 309 of file GeometryHandlers.h.

References Physics::toGraphVec3().

void Physics::RayHandler::setLength ( dReal  length  )  [inline]

Definition at line 293 of file GeometryHandlers.h.

void Physics::RayHandler::setRay ( graphVec3  startPoint,
graphVec3  dir 
) [inline]

Convinience method that modifies the geom it belongs to : it sets the rotation so that it will match given parameters.

Definition at line 302 of file GeometryHandlers.h.

virtual EGeomType Physics::RayHandler::type (  )  const [inline, virtual]

Implements Physics::GeometryHandler.

Definition at line 291 of file GeometryHandlers.h.


Member Data Documentation

graphVec3 Physics::RayHandler::dir [protected]

Definition at line 332 of file GeometryHandlers.h.

dReal Physics::RayHandler::length [protected]

Definition at line 331 of file GeometryHandlers.h.

graphVec3 Physics::RayHandler::startPoint [protected]

Definition at line 332 of file GeometryHandlers.h.


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

Generated on Sun Jan 17 11:39:36 2010 for PVLE (Pro-Vocation Light Engine) by  doxygen 1.5.9