se_core::BoundingBox Class Reference

#include <BoundingBox.hpp>

List of all members.

Public Member Functions

 BoundingBox ()
 BoundingBox (const Point3 &p, coor_t radius)
 BoundingBox (const Point3 &p, coor_t radius, coor_t height)
 BoundingBox (const Point3 &p, const BoundingBox &b)
void reset ()
void setMin (coor_t x, coor_t y, coor_t z)
void setMax (coor_t x, coor_t y, coor_t z)
bool isNull () const
void merge (BoundingBox &b)
bool hasInside (coor_t x, coor_t y, coor_t z) const
bool hasInside (const Point3 &p) const
bool isTouching (const Point3 &p) const
bool isTouching (const Point3 &p, coor_t epsilon) const
bool isTouchingXZ (const Point3 &p) const
bool hasInside (const Point3 &offset, const Point3 &p) const
void center (Point3 &out) const
bool isTouching (const BoundingBox &b) const
coor_t radius () const
coor_t smallRadius () const

Public Attributes

coor_t minX_
coor_t minY_
coor_t minZ_
coor_t maxX_
coor_t maxY_
coor_t maxZ_


Constructor & Destructor Documentation

se_core::BoundingBox::BoundingBox  )  [inline]
 

Definition at line 33 of file BoundingBox.hpp.

se_core::BoundingBox::BoundingBox const Point3 p,
coor_t  radius
[inline]
 

Definition at line 35 of file BoundingBox.hpp.

se_core::BoundingBox::BoundingBox const Point3 p,
coor_t  radius,
coor_t  height
[inline]
 

Definition at line 40 of file BoundingBox.hpp.

se_core::BoundingBox::BoundingBox const Point3 p,
const BoundingBox b
[inline]
 

Definition at line 45 of file BoundingBox.hpp.


Member Function Documentation

void se_core::BoundingBox::center Point3 out  )  const [inline]
 

Definition at line 133 of file BoundingBox.hpp.

References se_core::Tuple3::x_, se_core::Tuple3::y_, and se_core::Tuple3::z_.

Referenced by se_core::CollisionAreaComponent::_collisionCandidates(), se_core::CollisionAreaComponent::addCollideable(), se_ogre::ThingDebug::animate(), se_basic::NavMesh::findExit(), se_core::CollisionComponent::move(), and se_core::CollisionAreaComponent::removeCollideable().

bool se_core::BoundingBox::hasInside const Point3 offset,
const Point3 p
const [inline]
 

Definition at line 126 of file BoundingBox.hpp.

References se_core::Tuple3::x_, se_core::Tuple3::y_, and se_core::Tuple3::z_.

bool se_core::BoundingBox::hasInside const Point3 p  )  const [inline]
 

Definition at line 99 of file BoundingBox.hpp.

References se_core::Tuple3::x_, se_core::Tuple3::y_, and se_core::Tuple3::z_.

bool se_core::BoundingBox::hasInside coor_t  x,
coor_t  y,
coor_t  z
const [inline]
 

Definition at line 92 of file BoundingBox.hpp.

Referenced by se_core::Pos::hasInside().

bool se_core::BoundingBox::isNull  )  const [inline]
 

Definition at line 69 of file BoundingBox.hpp.

bool se_core::BoundingBox::isTouching const BoundingBox b  )  const [inline]
 

Definition at line 140 of file BoundingBox.hpp.

References maxX_, maxY_, maxZ_, minX_, minY_, and minZ_.

bool se_core::BoundingBox::isTouching const Point3 p,
coor_t  epsilon
const [inline]
 

Definition at line 112 of file BoundingBox.hpp.

References se_core::Tuple3::x_, se_core::Tuple3::y_, and se_core::Tuple3::z_.

bool se_core::BoundingBox::isTouching const Point3 p  )  const [inline]
 

Definition at line 105 of file BoundingBox.hpp.

References se_core::Tuple3::x_, se_core::Tuple3::y_, and se_core::Tuple3::z_.

Referenced by se_core::_testCollision(), se_core::CollisionAreaComponent::farthestLineOfSight(), and se_basic::NavMesh::findExit().

bool se_core::BoundingBox::isTouchingXZ const Point3 p  )  const [inline]
 

Definition at line 120 of file BoundingBox.hpp.

References se_core::Tuple3::x_, and se_core::Tuple3::z_.

void se_core::BoundingBox::merge BoundingBox b  )  [inline]
 

Definition at line 74 of file BoundingBox.hpp.

References maxX_, maxY_, maxZ_, minX_, minY_, and minZ_.

Referenced by se_core::CollisionComponent::updateAreaCovered().

coor_t se_core::BoundingBox::radius  )  const [inline]
 

Definition at line 161 of file BoundingBox.hpp.

References coor_t.

Referenced by se_core::CollisionAreaComponent::_collisionCandidates(), se_core::CollisionAreaComponent::addCollideable(), se_core::CollisionComponent::move(), and se_core::CollisionAreaComponent::removeCollideable().

void se_core::BoundingBox::reset  )  [inline]
 

Definition at line 50 of file BoundingBox.hpp.

Referenced by se_core::Pos::reset().

void se_core::BoundingBox::setMax coor_t  x,
coor_t  y,
coor_t  z
[inline]
 

Definition at line 62 of file BoundingBox.hpp.

Referenced by se_core::Area::Area(), and se_basic::SimpleActorParser::parse().

void se_core::BoundingBox::setMin coor_t  x,
coor_t  y,
coor_t  z
[inline]
 

Definition at line 55 of file BoundingBox.hpp.

Referenced by se_core::Area::Area(), and se_basic::SimpleActorParser::parse().

coor_t se_core::BoundingBox::smallRadius  )  const [inline]
 

Definition at line 165 of file BoundingBox.hpp.

References coor_t.

Referenced by se_core::CollisionComponent::whenDoesGeometryCollide().


Member Data Documentation

coor_t se_core::BoundingBox::maxX_
 

Definition at line 170 of file BoundingBox.hpp.

Referenced by se_ogre::ThingDebug::animate(), se_core::CollisionComponent::geometryType(), se_core::BoundingCylinder::isTouching(), isTouching(), merge(), se_core::operator<<(), se_basic::SimpleActorParser::parse(), and se_core::CollisionComponent::updateAreaCovered().

coor_t se_core::BoundingBox::maxY_
 

Definition at line 170 of file BoundingBox.hpp.

Referenced by se_ogre::ThingDebug::animate(), se_core::CollisionAreaComponent::farthestLineOfSight(), se_core::BoundingCylinder::isTouching(), isTouching(), merge(), se_core::operator<<(), se_basic::SimpleActorParser::parse(), and se_core::CollisionComponent::updateAreaCovered().

coor_t se_core::BoundingBox::maxZ_
 

Definition at line 170 of file BoundingBox.hpp.

Referenced by se_ogre::ThingDebug::animate(), se_core::CollisionComponent::geometryType(), se_core::BoundingCylinder::isTouching(), isTouching(), merge(), se_core::operator<<(), se_basic::SimpleActorParser::parse(), and se_core::CollisionComponent::updateAreaCovered().

coor_t se_core::BoundingBox::minX_
 

Definition at line 169 of file BoundingBox.hpp.

Referenced by se_ogre::ThingDebug::animate(), se_core::CollisionComponent::geometryType(), se_core::BoundingCylinder::isTouching(), isTouching(), merge(), se_core::operator<<(), se_basic::SimpleActorParser::parse(), and se_core::CollisionComponent::updateAreaCovered().

coor_t se_core::BoundingBox::minY_
 

Definition at line 169 of file BoundingBox.hpp.

Referenced by se_ogre::ThingDebug::animate(), se_core::BoundingCylinder::isTouching(), isTouching(), merge(), se_core::operator<<(), se_basic::SimpleActorParser::parse(), and se_core::CollisionComponent::updateAreaCovered().

coor_t se_core::BoundingBox::minZ_
 

Definition at line 169 of file BoundingBox.hpp.

Referenced by se_ogre::ThingDebug::animate(), se_core::CollisionComponent::geometryType(), se_core::BoundingCylinder::isTouching(), isTouching(), merge(), se_core::operator<<(), se_basic::SimpleActorParser::parse(), and se_core::CollisionComponent::updateAreaCovered().


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

Home Page | SagaEngine trunk (updated nightly) reference generated Sun Dec 2 20:06:30 2007 by Doxygen version 1.3.9.1.

SourceForge.net Logo