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

TransparentTransformatable Class Reference

#include <transparenttransformatable.h>

Inheritance diagram for TransparentTransformatable:

Transformatable LightSource Material3D Media3D Object3D Pigment3D Texture3D PointLight Media3DMultiple Media3DSingle Box Cylinder Isosurface ObjectContainer Plane Sphere CameraPerspective Pigment3DConstant Pigment3DMapped List of all members.

Public Member Functions

 TransparentTransformatable ()
 TransparentTransformatable (const Vector3 &loc)
 TransparentTransformatable (const TransparentTransformatable &t)
virtual ~TransparentTransformatable ()
virtual void translate (const Vector3 &v)
virtual void scale (const Vector3 &v)
virtual void rotateDeg (const Vector3 &v)
virtual void rotateRad (const Vector3 &v)
virtual void applyOrthogonalMatrix (const Matrix &m)
virtual void applyMatrix (const Matrix &m)
virtual void transform (const TransparentTransformatable &t)
virtual void transformInverse (const TransparentTransformatable &t)
void transformPointIn (Vector3 &p) const
void transformPointOut (Vector3 &p) const
void transformNormalOut (Vector3 &p) const
void transformRayIn (Ray &r) const
Vector3 getTranslation () const
const MatrixgetTransformationMatrix () const
const MatrixgetInverseMatrix () const

Protected Member Functions

void clearTransformation ()
void setTranslation (const Vector3 &v)

Detailed Description

Implements the Transformatable interface in such a way that it hides the transformation from its subclasses.
Author:
Micha Riser


Constructor & Destructor Documentation

TransparentTransformatable::TransparentTransformatable  )  [inline]
 

Create untransformated TransparentTransformatable.

TransparentTransformatable::TransparentTransformatable const Vector3 loc  )  [inline]
 

Create TransparentTransformatable at given location.

TransparentTransformatable::TransparentTransformatable const TransparentTransformatable t  )  [inline]
 

Copy constructor.

virtual TransparentTransformatable::~TransparentTransformatable  )  [inline, virtual]
 

Destructor.


Member Function Documentation

void TransparentTransformatable::applyMatrix const Matrix m  )  [virtual]
 

Transform by non-singular matrix.

Parameters:
M matrix for which matrix L exists with M*L = I

Implements Transformatable.

Reimplemented in Object3D.

void TransparentTransformatable::applyOrthogonalMatrix const Matrix m  )  [virtual]
 

Transform by orthogonal matrix.

Parameters:
M matrix for which M * M^T = I holds

Implements Transformatable.

Reimplemented in Object3D, and Pigment3DConstant.

void TransparentTransformatable::clearTransformation  )  [inline, protected]
 

Clears all transformation information.

const Matrix* TransparentTransformatable::getInverseMatrix  )  const [inline]
 

Returns:
pointer to inverse transformation matrix

const Matrix* TransparentTransformatable::getTransformationMatrix  )  const [inline]
 

Returns:
pointer to transformation matrix

Vector3 TransparentTransformatable::getTranslation  )  const [inline]
 

Returns:
translation vector

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

Rotate around x,y and z axis.

Parameters:
v vector holding the rotation angles in degrees

Implements Transformatable.

Reimplemented in Box, Object3D, and Sphere.

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

Rotate around x,y and z axis.

Parameters:
v vector holding the rotation angles in radians

Implements Transformatable.

Reimplemented in Box, Object3D, and Sphere.

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

Scale by x,y,z factor from vector.

Implements Transformatable.

Reimplemented in Box, Object3D, Pigment3DConstant, and Sphere.

void TransparentTransformatable::setTranslation const Vector3 v  )  [inline, protected]
 

Change translation vector.

void TransparentTransformatable::transform const TransparentTransformatable t  )  [virtual]
 

Transform the same way as given Transformatable.

Reimplemented in Object3D.

void TransparentTransformatable::transformInverse const TransparentTransformatable t  )  [virtual]
 

Transform inverse as given Transformatble.

Reimplemented in Object3D.

void TransparentTransformatable::transformNormalOut Vector3 p  )  const [inline]
 

Transform normal vector from local space to outer space.

void TransparentTransformatable::transformPointIn Vector3 p  )  const [inline]
 

Transform point into local space.

void TransparentTransformatable::transformPointOut Vector3 p  )  const [inline]
 

Transform point out of local space.

void TransparentTransformatable::transformRayIn Ray r  )  const [inline]
 

Transform ray into local space.

virtual void TransparentTransformatable::translate const Vector3 v  )  [inline, virtual]
 

Translate by vector.

Implements Transformatable.

Reimplemented in Box, Object3D, and Pigment3DConstant.


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