class Transformatable

Supperclass for everything that is in space an can be translated and transformed. More...

Definition#include <raytracer/transformatable.h>
Inherited byBox, CSG, CameraPerspective, Isosurface, LightSource, Material3D, Media3D, Media3DMultiple, Media3DSingle, Object3D, Pigment3D, Pigment3DConstant, Pigment3DMapped, Plane, PointLight, Sphere, Texture3D
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Members

Private Methods


Detailed Description

Supperclass for everything that is in space an can be translated and transformed.

 Transformatable ()

Transformatable

Create untransformated Transformatable.

 Transformatable (Vector3 loc)

Transformatable

 Transformatable (const Transformatable &t)

Transformatable

Copy constructor.

 ~Transformatable ()

~Transformatable

[virtual]

Transformatable&  operator= (const Transformatable&)

operator=

[private]

Vector3  getTranslation ()

getTranslation

[const]

Returns: translation vector

const Matrix*  getTransformationMatrix ()

getTransformationMatrix

[const]

Returns: pointer to transformation matrix

const Matrix*  getInverseMatrix ()

getInverseMatrix

[const]

Returns: pointer to inverse transformation matrix

void  translate (const Vector3 &v)

translate

[virtual]

Translate by vector.

void  scale (Vector3 v)

scale

[virtual]

Scale by x,y,z factor from vector.

void  rotate (const Vector3 &v)

rotate

[virtual]

Rotate around x,y,z axe.

Parameters:
vvector holding the rotation angles in degrees

void  applyOrthogonalMatrix (const Matrix &m)

applyOrthogonalMatrix

[virtual]

Transform by orthogonal matrix.

void  transform (const Transformatable& t)

transform

[virtual]

Transform the same way as given Transformatable.

void  transformInverse (const Transformatable& t)

transformInverse

[virtual]

Transform inverse as given Transformatble.

void  transformPointIn (Vector3 &p)

transformPointIn

[const]

Transform point into local space.

void  transformNormalIn (Vector3 &p)

transformNormalIn

[const]

Transform normal vector into local space.

void  transformNormalOut (Vector3 &p)

transformNormalOut

[const]

Transform normal vector from local space to outer space.

void  transformRayIn (Ray &r)

transformRayIn

[const]

Transform ray into local space.

Vector3 translation

translation

[protected]

Matrix* transformation

transformation

[protected]

Matrix* inverse

inverse

[protected]