com.threed.jpct
Class VisList

java.lang.Object
  extended bycom.threed.jpct.VisList
All Implemented Interfaces:
java.io.Serializable

public final class VisList
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Method Summary
 void getData(int at, int[] data)
          Fills the given int[]-array with the object number and polygon ID at a position.
 int getMaxSize()
          Gets the maximum size of the visibility list.
 int getSize()
          Gets the current size of the visibility list.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSize

public int getSize()
Gets the current size of the visibility list. This is in fact the polygon count of the last frame.

Returns:
the size of the visibility list

getMaxSize

public int getMaxSize()
Gets the maximum size of the visibility list. If polygon count for a frame exceeds this value, further polygons will be rejected.

Returns:
the maximum size of the visibility list

getData

public void getData(int at,
                    int[] data)
Fills the given int[]-array with the object number and polygon ID at a position. The array has to be in the same format as Interact2D.pickPolygon() would return it, i.e int[2]. Consider this to be a half official method.

Parameters:
at - the position in the list
data - the array to fill