$search

bodies::Box Class Reference

Definition of a box. More...

#include <bodies.h>

Inheritance diagram for bodies::Box:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Box (const shapes::Shape *shape)
 Box (void)
virtual void computeBoundingCylinder (BoundingCylinder &cylinder) const
 Compute the bounding cylinder for the body, in its current pose. Scaling and padding are accounted for.
virtual void computeBoundingSphere (BoundingSphere &sphere) const
 Compute the bounding radius for the body, in its current pose. Scaling and padding are accounted for.
virtual double computeVolume (void) const
 Compute the volume of the body. This method includes changes induced by scaling and padding.
virtual bool containsPoint (const btVector3 &p, bool verbose=false) const
 Check is a point is inside the body.
virtual bool intersectsRay (const btVector3 &origin, const btVector3 &dir, std::vector< btVector3 > *intersections=NULL, unsigned int count=0) const
 Check is a ray intersects the body, and find the set of intersections, in order, along the ray. A maximum number of intersections can be specified as well. If that number is 0, all intersections are returned.
virtual ~Box (void)

Protected Member Functions

virtual void updateInternalData (void)
virtual void useDimensions (const shapes::Shape *shape)

Protected Attributes

btVector3 m_center
btVector3 m_corner1
btVector3 m_corner2
double m_height
double m_height2
double m_length
double m_length2
btVector3 m_normalH
btVector3 m_normalL
btVector3 m_normalW
double m_radius2
double m_radiusB
double m_width
double m_width2

Detailed Description

Definition of a box.

Definition at line 265 of file bodies.h.


Constructor & Destructor Documentation

bodies::Box::Box ( void   )  [inline]

Definition at line 268 of file bodies.h.

bodies::Box::Box ( const shapes::Shape shape  )  [inline]

Definition at line 273 of file bodies.h.

virtual bodies::Box::~Box ( void   )  [inline, virtual]

Definition at line 279 of file bodies.h.


Member Function Documentation

void bodies::Box::computeBoundingCylinder ( BoundingCylinder cylinder  )  const [virtual]

Compute the bounding cylinder for the body, in its current pose. Scaling and padding are accounted for.

Implements bodies::Body.

Definition at line 462 of file bodies.cpp.

void bodies::Box::computeBoundingSphere ( BoundingSphere sphere  )  const [virtual]

Compute the bounding radius for the body, in its current pose. Scaling and padding are accounted for.

Implements bodies::Body.

Definition at line 456 of file bodies.cpp.

double bodies::Box::computeVolume ( void   )  const [virtual]

Compute the volume of the body. This method includes changes induced by scaling and padding.

Implements bodies::Body.

Definition at line 451 of file bodies.cpp.

bool bodies::Box::containsPoint ( const btVector3 &  p,
bool  verbose = false 
) const [virtual]

Check is a point is inside the body.

Implements bodies::Body.

Definition at line 398 of file bodies.cpp.

bool bodies::Box::intersectsRay ( const btVector3 &  origin,
const btVector3 &  dir,
std::vector< btVector3 > *  intersections = NULL,
unsigned int  count = 0 
) const [virtual]

Check is a ray intersects the body, and find the set of intersections, in order, along the ray. A maximum number of intersections can be specified as well. If that number is 0, all intersections are returned.

Implements bodies::Body.

Definition at line 489 of file bodies.cpp.

void bodies::Box::updateInternalData ( void   )  [protected, virtual]

Implements bodies::Body.

Definition at line 429 of file bodies.cpp.

void bodies::Box::useDimensions ( const shapes::Shape shape  )  [protected, virtual]

Implements bodies::Body.

Definition at line 421 of file bodies.cpp.


Member Data Documentation

btVector3 bodies::Box::m_center [protected]

Definition at line 294 of file bodies.h.

btVector3 bodies::Box::m_corner1 [protected]

Definition at line 299 of file bodies.h.

btVector3 bodies::Box::m_corner2 [protected]

Definition at line 300 of file bodies.h.

double bodies::Box::m_height [protected]

Definition at line 304 of file bodies.h.

double bodies::Box::m_height2 [protected]

Definition at line 307 of file bodies.h.

double bodies::Box::m_length [protected]

Definition at line 302 of file bodies.h.

double bodies::Box::m_length2 [protected]

Definition at line 305 of file bodies.h.

btVector3 bodies::Box::m_normalH [protected]

Definition at line 297 of file bodies.h.

btVector3 bodies::Box::m_normalL [protected]

Definition at line 295 of file bodies.h.

btVector3 bodies::Box::m_normalW [protected]

Definition at line 296 of file bodies.h.

double bodies::Box::m_radius2 [protected]

Definition at line 309 of file bodies.h.

double bodies::Box::m_radiusB [protected]

Definition at line 308 of file bodies.h.

double bodies::Box::m_width [protected]

Definition at line 303 of file bodies.h.

double bodies::Box::m_width2 [protected]

Definition at line 306 of file bodies.h.


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


geometric_shapes
Author(s): Ioan Sucan
autogenerated on Fri Mar 1 14:16:11 2013