|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectobjects.Object
public abstract class Object
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 |
---|
public TransformationMatrix4x4 trans
Constructor Detail |
---|
public Object()
Method Detail |
---|
public void assignMaterial(IMaterial material_)
IObject
assignMaterial
in interface IObject
public IMaterial getMaterial()
getMaterial
in interface IObject
public void move(Vector3D v)
IObject
move
in interface IObject
v
- translation vectorpublic void rotate(Vector3D v, double alpha)
IObject
rotate
in interface IObject
v
- vectoralpha
- anglepublic void rotateAroundX(double alpha)
IObject
rotateAroundX
in interface IObject
alpha
- anglepublic void rotateAroundY(double beta)
IObject
rotateAroundY
in interface IObject
beta
- anglepublic void rotateAroundZ(double gamma)
IObject
rotateAroundZ
in interface IObject
gamma
- anglepublic void scale(double s)
IObject
scale
in interface IObject
s
- scale factorpublic void scale(double sx, double sy, double sz)
IObject
scale
in interface IObject
sx
- x scalesy
- y scalesz
- z scalepublic void UniformRandomPoint(Point3D point, Vector3D normal, Point3D prand)
IObject
UniformRandomPoint
in interface IObject
point
- [out] point on the surfacenormal
- [out] normal at the point on the surfaceprand
- [in] prand variables used in point generationpublic double getArea()
getArea
in interface IObject
public TransformationMatrix4x4 getTransformationMatrix()
public void setTransformationMatrix(TransformationMatrix4x4 m)
public Map getMap()
getMap
in interface IObject
public void assignMap(Map bumpmap_)
assignMap
in interface IObject
bumpmap_
- the bump or normal map
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |