go
Class GoFeedback

java.lang.Object
  |
  +--go.GoFeedback

public class GoFeedback
extends java.lang.Object


Method Summary
 double b(int index)
          Returns the b value of the color at the specified vertex index.
 double g(int index)
          Returns the g value of the color at the specified vertex index.
 int name()
          Returns the name accosiated with the feedback.
 GoFeedback next()
          Returns a pointer to the next feedback item.
 double r(int index)
          Returns the r value of the color at the specified vertex index.
 int type()
          Returns the feedback type, which is either a LINE or TRIANGLE.
 double x(int index)
          Returns the x value of the coordinate at the specified vertex index.
 double y(int index)
          Returns the y value of the coordinate at the specified vertex index.
 double z(int index)
          Returns the z value of the coordinate at the specified vertex index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

type

public int type()
Returns the feedback type, which is either a LINE or TRIANGLE.

name

public int name()
Returns the name accosiated with the feedback.

When primitives are rendered, the current name value of the rendering context is saved with each feedback item. To set a specific name when rendering a primitive, use the method name(int).


x

public double x(int index)
Returns the x value of the coordinate at the specified vertex index.

If the feedback type is LINE, then since a line has two vertices, index is either 0 or 1.

If the feedback type is TRIANGLE, then since a triangle has three vertices, index is either 0, 1 or 2.


y

public double y(int index)
Returns the y value of the coordinate at the specified vertex index.

If the feedback type is LINE, then since a line has two vertices, index is either 0 or 1.

If the feedback type is TRIANGLE, then since a triangle has three vertices, index is either 0, 1 or 2.


z

public double z(int index)
Returns the z value of the coordinate at the specified vertex index.

If the feedback type is LINE, then since a line has two vertices, index is either 0 or 1.

If the feedback type is TRIANGLE, then since a triangle has three vertices, index is either 0, 1 or 2.


r

public double r(int index)
Returns the r value of the color at the specified vertex index.

If the feedback type is LINE, then since a line has two vertices, index is either 0 or 1.

If the feedback type is TRIANGLE, then since a triangle has three vertices, index is either 0, 1 or 2.


g

public double g(int index)
Returns the g value of the color at the specified vertex index.

If the feedback type is LINE, then since a line has two vertices, index is either 0 or 1.

If the feedback type is TRIANGLE, then since a triangle has three vertices, index is either 0, 1 or 2.


b

public double b(int index)
Returns the b value of the color at the specified vertex index.

If the feedback type is LINE, then since a line has two vertices, index is either 0 or 1.

If the feedback type is TRIANGLE, then since a triangle has three vertices, index is either 0, 1 or 2.


next

public GoFeedback next()
Returns a pointer to the next feedback item.

If null is returned, then the end of the feedback list has been reached.

For more information on traversing the feedback list, see feedback.