de.grogra.imp3d.ray
public class RTSphere extends RaytracerLeaf implements RTObject, ExportableToVRML
RTObject.RTObjectUserDatainterior, shaderasNode, object, pathIdnext| Constructor and Description |
|---|
RTSphere(java.lang.Object object,
boolean asNode,
long pathId,
float radius) |
| Modifier and Type | Method and Description |
|---|---|
void |
exportToVRML(java.io.BufferedWriter writer) |
BoundingVolume |
getBoundingVolume() |
float |
getDistance(Ray ray,
RayContext context) |
void |
getIntersectionDescription(IntersectionDescription desc) |
RTMedium |
getMedium() |
float |
getRadius() |
boolean |
isConvex() |
boolean |
isShadeable() |
boolean |
isSolid() |
void |
setRadius(double value) |
void |
setTransformation(Matrix4f mat) |
getRTMedium, getRTShader, getShader, getTransformation, getUserData, setMedium, setShadersetInterioraccept, getBoolean, getByte, getChar, getDouble, getFloat, getInt, getLong, getObject, getObject, getShort, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetShader, getUserDatapublic RTSphere(java.lang.Object object,
boolean asNode,
long pathId,
float radius)
public void exportToVRML(java.io.BufferedWriter writer)
exportToVRML in interface ExportableToVRMLpublic BoundingVolume getBoundingVolume()
getBoundingVolume in interface RTObjectpublic float getDistance(Ray ray, RayContext context)
getDistance in interface RTObjectpublic void getIntersectionDescription(IntersectionDescription desc)
getIntersectionDescription in interface RTObjectpublic RTMedium getMedium()
getMedium in interface RTObjectgetMedium in class RaytracerLeafpublic float getRadius()
public boolean isShadeable()
isShadeable in interface RTObjectpublic void setRadius(double value)
public void setTransformation(Matrix4f mat)
setTransformation in class RaytracerLeaf