de.grogra.imp3d.ray
Class RTBox

java.lang.Object
  extended by de.grogra.imp3d.objects.SceneTree.Node
      extended by de.grogra.imp3d.objects.SceneTree.Leaf
          extended by de.grogra.imp3d.objects.SceneTreeWithShader.Leaf
              extended by de.grogra.imp3d.ray.RaytracerLeaf
                  extended by de.grogra.imp3d.ray.RTBox
All Implemented Interfaces:
ExportableToVRML, RTObject

public class RTBox
extends RaytracerLeaf
implements RTObject, ExportableToVRML


Nested Class Summary
 
Nested classes/interfaces inherited from interface de.grogra.ray.RTObject
RTObject.RTObjectUserData
 
Field Summary
 Intersections.BoxInput m_boxInput
           
 Intersections.BoxLocalVariables m_boxLocalVariables
           
 Intersections.ObjectOutput m_boxOutput
           
 
Fields inherited from class de.grogra.imp3d.objects.SceneTreeWithShader.Leaf
interior, shader
 
Fields inherited from class de.grogra.imp3d.objects.SceneTree.Leaf
asNode, object, pathId
 
Fields inherited from class de.grogra.imp3d.objects.SceneTree.Node
next
 
Constructor Summary
RTBox(java.lang.Object object, boolean asNode, long pathId, float expansionX, float expansionY, float expansionZ)
           
 
Method Summary
 void exportToVRML(java.io.BufferedWriter writer)
           
 BoundingVolume getBoundingVolume()
           
 float getDistance(Ray ray, RayContext context)
           
 void getIntersectionDescription(IntersectionDescription desc)
           
 boolean isConvex()
           
 boolean isShadeable()
           
 boolean isSolid()
           
 void setTransformation(Matrix4f mat)
           
 
Methods inherited from class de.grogra.imp3d.ray.RaytracerLeaf
getMedium, getRTMedium, getRTShader, getShader, getTransformation, getUserData, setMedium, setShader
 
Methods inherited from class de.grogra.imp3d.objects.SceneTreeWithShader.Leaf
setInterior
 
Methods inherited from class de.grogra.imp3d.objects.SceneTree.Leaf
accept, getBoolean, getByte, getChar, getDouble, getFloat, getInt, getLong, getObject, getObject, getShort, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.grogra.ray.RTObject
getMedium, getShader, getUserData
 

Field Detail

m_boxInput

public final Intersections.BoxInput m_boxInput

m_boxLocalVariables

public final Intersections.BoxLocalVariables m_boxLocalVariables

m_boxOutput

public final Intersections.ObjectOutput m_boxOutput
Constructor Detail

RTBox

public RTBox(java.lang.Object object,
             boolean asNode,
             long pathId,
             float expansionX,
             float expansionY,
             float expansionZ)
Method Detail

exportToVRML

public void exportToVRML(java.io.BufferedWriter writer)
Specified by:
exportToVRML in interface ExportableToVRML

getBoundingVolume

public BoundingVolume getBoundingVolume()
Specified by:
getBoundingVolume in interface RTObject

getDistance

public float getDistance(Ray ray,
                         RayContext context)
Specified by:
getDistance in interface RTObject

getIntersectionDescription

public void getIntersectionDescription(IntersectionDescription desc)
Specified by:
getIntersectionDescription in interface RTObject

isConvex

public boolean isConvex()
Specified by:
isConvex in interface RTObject

isShadeable

public boolean isShadeable()
Specified by:
isShadeable in interface RTObject

isSolid

public boolean isSolid()
Specified by:
isSolid in interface RTObject

setTransformation

public void setTransformation(Matrix4f mat)
Overrides:
setTransformation in class RaytracerLeaf