|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectobjects.Object
objects.Intersection
public class Intersection
Field Summary |
---|
Fields inherited from class objects.Object |
---|
trans |
Constructor Summary | |
---|---|
Intersection()
constructor |
Method Summary | |
---|---|
void |
addObject(IObject o)
adds an object to the list |
void |
assignMap(Map bumpmap_)
|
void |
assignMaterial(IMaterial material)
assign a global material, so that all sub-objects have the same material should be used when all objects have been placed in the intersection |
IntersectionInfo |
calcIntersection(Ray ray)
calculates the intersection with an ray |
void |
calculateTextureCoordinates(IntersectionInfo ri)
calculates the coordinates at ri.nextPosition |
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 |
Constructor Detail |
---|
public Intersection()
Method Detail |
---|
public void addObject(IObject o)
o
- the object too addpublic 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)
assignMaterial
in interface IObject
assignMaterial
in class Object
material
- public double q(Point3D p)
IObject
p
- point
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 |