|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectobjects.Object
objects.Assembly
public class Assembly
a unit of objects
Field Summary | |
---|---|
java.util.ArrayList<IObject> |
list
|
Fields inherited from class objects.Object |
---|
trans |
Constructor Summary | |
---|---|
Assembly()
constructor |
Method Summary | |
---|---|
void |
addObject(IObject o)
adds a object |
void |
assignBoundingObject(IObject o)
assigns the bounding object |
void |
assignMap(Map bumpmap_)
|
void |
assignMaterial(IMaterial material_)
assigns the material to the object |
IntersectionInfo |
calcIntersection(Ray ray)
calculates the intersection with an ray |
void |
calculateTextureCoordinates(IntersectionInfo ri)
calculates the coordinates at ri.nextPosition |
IObject |
getBoundingObject()
|
IObject |
getCopy()
|
boolean |
isInside(Point3D p)
|
Vector3D |
normal(Point3D p)
calculate normal via gradient |
double |
q(Point3D p)
calculate the value of the quadric at point p |
void |
transform(TransformationMatrix4x4 m)
transforms the object with the matrix m |
Methods inherited from class objects.Object |
---|
getArea, getMap, getMaterial, getTransformationMatrix, move, rotate, rotateAroundX, rotateAroundY, rotateAroundZ, scale, scale, setTransformationMatrix, UniformRandomPoint |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.util.ArrayList<IObject> list
Constructor Detail |
---|
public Assembly()
Method Detail |
---|
public double q(Point3D p)
IObject
p
- point
public void addObject(IObject o)
o
- object to addpublic void assignBoundingObject(IObject o)
o
- the bounding objectpublic IObject getBoundingObject()
public IntersectionInfo calcIntersection(Ray ray)
IObject
public boolean isInside(Point3D p)
public Vector3D normal(Point3D p)
IObject
p
- the point
public void transform(TransformationMatrix4x4 m)
IObject
m
- the transformation matrixpublic void assignMaterial(IMaterial material_)
IObject
assignMaterial
in interface IObject
assignMaterial
in class Object
public void calculateTextureCoordinates(IntersectionInfo ri)
IObject
ri
- intersection informationpublic IObject getCopy()
public void assignMap(Map bumpmap_)
assignMap
in interface IObject
assignMap
in class Object
bumpmap_
- the bump or normal map
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |