Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Obstacle Class Reference

#include <obstacle.h>

Inherits Collidable.

Inherited by _classes_ [private].

Inheritance diagram for Obstacle:

Inheritance graph
[legend]
Collaboration diagram for Obstacle:

Collaboration graph
[legend]
List of all members.

Public Methods

 Obstacle (std::string filename, const Matrix &mat)
 The constructor for Obstacle that takes in a filename, and calls Obstacle 's constructor with it, but also sets its Bounding Box Vector s. More...

const VectorGetMinVector () const
 This is the lowest local Vector in the Model . More...

const VectorGetMaxVector () const
 This is the highest local Vector in the Model . More...


Private Methods

void recalculatebb ()

Private Attributes

Vector lastminbb
Vector lastmaxbb
bool bbchanged

Constructor & Destructor Documentation

Obstacle::Obstacle std::string    filename,
const Matrix   mat
[inline]
 

The constructor for Obstacle that takes in a filename, and calls Obstacle 's constructor with it, but also sets its Bounding Box Vector s.

00011 : Collidable (filename, mat) {recalculatebb();}


Member Function Documentation

const Vector& Obstacle::GetMaxVector   const [inline]
 

This is the highest local Vector in the Model .

00015 {return lastmaxbb;}

const Vector& Obstacle::GetMinVector   const [inline]
 

This is the lowest local Vector in the Model .

00013 {return lastminbb;}

void Obstacle::recalculatebb   [private]
 

00117                               {
00118     printf ("Obstacle::calcbb = ");
00119     this->lastminbb=model->getMin();
00120     this->lastmaxbb=model->getMax();
00121     printf("<%f,%f,%f>,<%f,%f,%f>\n",lastminbb.i,lastminbb.j,lastminbb.k,lastmaxbb.i,lastmaxbb.j,lastmaxbb.k);
00122 }


Member Data Documentation

bool Obstacle::bbchanged [private]
 

Vector Obstacle::lastmaxbb [private]
 

Vector Obstacle::lastminbb [private]
 


The documentation for this class was generated from the following files:
Generated on Mon Jul 7 21:13:54 2003 for Ethereal by doxygen1.2.15