net.java.joglutils.msg.nodes
Class TriangleBasedShape

java.lang.Object
  extended by net.java.joglutils.msg.nodes.Node
      extended by net.java.joglutils.msg.nodes.Shape
          extended by 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.


Constructor Summary
TriangleBasedShape()
           
 
Method Summary
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.
 void rayPick(RayPickAction action)
          Support for the built-in RayPickAction.
 
Methods inherited from class net.java.joglutils.msg.nodes.Node
doAction, render
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TriangleBasedShape

public TriangleBasedShape()
Method Detail

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