de.jreality.scene
Class ClippingPlane

java.lang.Object
  extended by de.jreality.scene.SceneGraphNode
      extended by de.jreality.scene.Geometry
          extended by de.jreality.scene.ClippingPlane

public class ClippingPlane
extends Geometry

A clipping plane through the origin with normal pointing in positive z direction. All points with positive z will be clipped away. Insert into scene graph using SceneGraphComponent.setGeometry(Geometry) and use transformations to get clipping plane into arbitrary position. To flip the clipped side, attach a reflection in z=0 to the ScneGraphComponent containing the clipping plane. planes

Author:
timh

Field Summary
 
Fields inherited from class de.jreality.scene.Geometry
CATEGORY_EDGE, CATEGORY_FACE, CATEGORY_VERTEX
 
Constructor Summary
ClippingPlane()
           
ClippingPlane(String name)
           
 
Method Summary
 void accept(SceneGraphVisitor v)
          The accept method for a SceneGraphVisitor.
 boolean isLocal()
           
 void setLocal(boolean local)
           
 
Methods inherited from class de.jreality.scene.Geometry
addGeometryListener, getAttributes, getAttributes, getGeometryAttributeCathegories, getGeometryAttributes, getGeometryAttributes, getNumEntries, removeGeometryListener, setAttributes, setAttributes, setCountAndAttributes, setCountAndAttributes, setGeometryAttributes, setGeometryAttributes, setNumEntries
 
Methods inherited from class de.jreality.scene.SceneGraphNode
getName, getOwner, getThreadSafe, isReadOnly, setName, setOwner, setReadOnly, setThreadSafe, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClippingPlane

public ClippingPlane(String name)

ClippingPlane

public ClippingPlane()
Method Detail

isLocal

public boolean isLocal()

setLocal

public void setLocal(boolean local)

accept

public void accept(SceneGraphVisitor v)
Description copied from class: SceneGraphNode
The accept method for a SceneGraphVisitor.

Overrides:
accept in class Geometry