Class ClipPlane

  extended by org.j3d.aviatrix3d.SceneGraphObject
      extended by org.j3d.aviatrix3d.Node
          extended by org.j3d.aviatrix3d.Leaf
              extended by org.j3d.aviatrix3d.ClipPlane
All Implemented Interfaces:
java.lang.Comparable, CascadeRenderable, ComponentRenderable, Cullable, EffectRenderable, LeafCullable, Renderable

public class ClipPlane
extends Leaf
implements LeafCullable, ComponentRenderable, EffectRenderable, java.lang.Comparable

Representation of a single clip plane that can be used to clip a model in addition to the normal view volume clipping.

ClipPlane objects may be placed at any point in the scene graph heirarchy and is effected by all parent transforms. Each clip plane is accumulated and pushed to the leaf node, in a similar manner that lights are. As such, there is no requirement to provide the clip plane index as this will be assigned automatically at rendering time. A benefit of this feature is that it allows you to specify several different clip planes at different locations in the heirarchy and have them apply to the local coordinate system.

Rendering Implementation Tips

The external data passed to the ComponentRenderable calls shall be an Integer instance that represents the GL identifier of the clip plane (GL_CLIPPLANE0 + i) this instance is working with.

See the EffectRenderable interface for definition of the scoping and effects bounds.

Internationalisation Resource Names