objects
Class Object

java.lang.Object
  extended by objects.Object
All Implemented Interfaces:
IObject
Direct Known Subclasses:
Assembly, HalfSpace, Intersection, Quadric

public abstract class Object
extends java.lang.Object
implements IObject


Field Summary
 TransformationMatrix4x4 trans
           
 
Constructor Summary
Object()
          constructor
 
Method Summary
 void assignMap(Map bumpmap_)
           
 void assignMaterial(IMaterial material_)
          assigns the material to the object
 double getArea()
           
 Map getMap()
           
 IMaterial getMaterial()
           
 TransformationMatrix4x4 getTransformationMatrix()
           
 void move(Vector3D v)
          translate the object with vector v
 void rotate(Vector3D v, double alpha)
          rotate around vector v with angle alpha
 void rotateAroundX(double alpha)
          rotate around the x axis with angle alpha
 void rotateAroundY(double beta)
          rotate around the y axis with angle beta
 void rotateAroundZ(double gamma)
          rotate around the z axis with angle gamma
 void scale(double s)
          scale with factor s
 void scale(double sx, double sy, double sz)
          scale each axis
 void setTransformationMatrix(TransformationMatrix4x4 m)
           
 void UniformRandomPoint(Point3D point, Vector3D normal, Point3D prand)
          creates a random point on the surface of the object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface objects.IObject
calcIntersection, calculateTextureCoordinates, getCopy, isInside, normal, q, transform
 

Field Detail

trans

public TransformationMatrix4x4 trans
Constructor Detail

Object

public Object()
constructor

Method Detail

assignMaterial

public void assignMaterial(IMaterial material_)
Description copied from interface: IObject
assigns the material to the object

Specified by:
assignMaterial in interface IObject

getMaterial

public IMaterial getMaterial()
Specified by:
getMaterial in interface IObject
Returns:
material of the object

move

public void move(Vector3D v)
Description copied from interface: IObject
translate the object with vector v

Specified by:
move in interface IObject
Parameters:
v - translation vector

rotate

public void rotate(Vector3D v,
                   double alpha)
Description copied from interface: IObject
rotate around vector v with angle alpha

Specified by:
rotate in interface IObject
Parameters:
v - vector
alpha - angle

rotateAroundX

public void rotateAroundX(double alpha)
Description copied from interface: IObject
rotate around the x axis with angle alpha

Specified by:
rotateAroundX in interface IObject
Parameters:
alpha - angle

rotateAroundY

public void rotateAroundY(double beta)
Description copied from interface: IObject
rotate around the y axis with angle beta

Specified by:
rotateAroundY in interface IObject
Parameters:
beta - angle

rotateAroundZ

public void rotateAroundZ(double gamma)
Description copied from interface: IObject
rotate around the z axis with angle gamma

Specified by:
rotateAroundZ in interface IObject
Parameters:
gamma - angle

scale

public void scale(double s)
Description copied from interface: IObject
scale with factor s

Specified by:
scale in interface IObject
Parameters:
s - scale factor

scale

public void scale(double sx,
                  double sy,
                  double sz)
Description copied from interface: IObject
scale each axis

Specified by:
scale in interface IObject
Parameters:
sx - x scale
sy - y scale
sz - z scale

UniformRandomPoint

public void UniformRandomPoint(Point3D point,
                               Vector3D normal,
                               Point3D prand)
Description copied from interface: IObject
creates a random point on the surface of the object

Specified by:
UniformRandomPoint in interface IObject
Parameters:
point - [out] point on the surface
normal - [out] normal at the point on the surface
prand - [in] prand variables used in point generation

getArea

public double getArea()
Specified by:
getArea in interface IObject
Returns:
the area of the object

getTransformationMatrix

public TransformationMatrix4x4 getTransformationMatrix()

setTransformationMatrix

public void setTransformationMatrix(TransformationMatrix4x4 m)

getMap

public Map getMap()
Specified by:
getMap in interface IObject
Returns:
the used map or null if not used

assignMap

public void assignMap(Map bumpmap_)
Specified by:
assignMap in interface IObject
Parameters:
bumpmap_ - the bump or normal map