net.java.joglutils.msg.nodes
Class TriangleBasedShape
java.lang.Object
net.java.joglutils.msg.nodes.Node
net.java.joglutils.msg.nodes.Shape
net.java.joglutils.msg.nodes.TriangleBasedShape
- Direct Known Subclasses:
- IndexedTriangleSet, TriangleSet
public abstract class TriangleBasedShape
- extends Shape
The abstract base class for all shapes in the scene graph which
render themselves as a collection of triangles.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TriangleBasedShape
public TriangleBasedShape()
generateTriangles
public abstract void generateTriangles(Action action,
TriangleCallback cb)
- Based on the state in the given Action, calls the specified
triangle callback for each triangle in the shape. Coordinates
are specified in the local coordinate system of this shape; the
caller must transform them into the world coordinate system if
necessary.
rayPick
public void rayPick(RayPickAction action)
- Description copied from class:
Node
- Support for the built-in RayPickAction. Note that supplying
virtual methods in Node subclasses to support various actions is
not required due to the framework supporting action methods, but
for built-in actions it may make it simpler.
- Overrides:
rayPick
in class Node