Main Page | Class Hierarchy | Class List | File List | Class Members

Box Class Reference

#include <box.h>

Inheritance diagram for Box:

Object3D SurfacePatch3D TransparentTransformatable Transformatable List of all members.

Public Member Functions

 Box (const Vector3 &min, const Vector3 &max)
bool hasFinitBounding () const
Vector3 getBoundingMin () const
Vector3 getBoundingMax () const
void rotateRad (const Vector3 &v)
void rotateDeg (const Vector3 &v)
void scale (const Vector3 &v)
void translate (const Vector3 &v)
Object3Dduplicate () const
IntersectionintersectLocalLimitedTime (const Ray &r, DBL maxtime) const
bool isInsideAt (const Vector3 &locallocation) const

Detailed Description

Box object.
Author:
Micha Riser


Constructor & Destructor Documentation

Box::Box const Vector3 min,
const Vector3 max
[inline]
 

Creates new box.


Member Function Documentation

Object3D* Box::duplicate  )  const [inline, virtual]
 

Create a duplicate of the object. Must be of the same type!

Returns:
An exact duplicate of the object.

Implements SurfacePatch3D.

Vector3 Box::getBoundingMax  )  const [virtual]
 

Get bounding dimension (maximum edge).

Reimplemented from Object3D.

Vector3 Box::getBoundingMin  )  const [virtual]
 

Get bounding dimension (minimum edge).

Reimplemented from Object3D.

bool Box::hasFinitBounding  )  const [virtual]
 

Returns true if the surface can be enclosed by a finit box.

Reimplemented from Object3D.

bool Box::isInsideAt const Vector3 locallocation  )  const [virtual]
 

Test point for insideness.

Parameters:
locallocation point in object space to test
Returns:
true if point is inside the object else false

Implements Object3D.

void Box::rotateDeg const Vector3 v  )  [virtual]
 

Rotate around x,y and z axis.

Parameters:
v vector holding the rotation angles in degrees

Reimplemented from Object3D.

void Box::rotateRad const Vector3 v  )  [virtual]
 

Rotate around x,y and z axis.

Parameters:
v vector holding the rotation angles in radians

Reimplemented from Object3D.

void Box::scale const Vector3 v  )  [virtual]
 

Scale by x,y,z factor from vector.

Reimplemented from Object3D.

void Box::translate const Vector3 v  )  [virtual]
 

Translate by vector.

Reimplemented from Object3D.


The documentation for this class was generated from the following files:
Generated on Thu Jan 27 12:16:06 2005 for raytracer.kdevelop by doxygen 1.3.8