org.xith3d.picking
Class PickPool

java.lang.Object
  extended by org.xith3d.picking.PickPool

public final class PickPool
extends java.lang.Object

Simply stores instances of picking related objects.


Method Summary
static java.util.List<GroupNode> allocateGroupList()
          Allocates a new Group-List instance.
static java.util.Stack<Node> allocateNodeStack()
          Allocates a new Node-Stack instance.
static PickRay allocatePickRay()
          Allocates a new PickRay instance.
static PickRequest allocatePickRequest(RenderPass renderPass, GroupNode group, Canvas3D canvas, org.jagatoo.input.devices.components.MouseButton button, int mouseX, int mouseY, java.lang.Object pl, java.lang.Object userObject, boolean pickAll)
           
static PickRequest allocatePickRequest(RenderPass renderPass, java.util.List<? extends GroupNode> groups, Canvas3D canvas, org.jagatoo.input.devices.components.MouseButton button, int mouseX, int mouseY, java.lang.Object pl, java.lang.Object userObject, boolean pickAll)
           
static PickResult allocatePickResult()
          Allocates a new PickResult instance.
static SortableList<PickResult> allocatePickResultList()
          Allocates a new PickResult-List instance.
static org.openmali.vecmath2.Ray3f allocateRay3f()
          Allocates a new Ray3f instance.
static org.openmali.spatial.polygons.Triangle allocateTriangle()
          Allocates a new Triangle instance.
static void deallocateGroupList(java.util.List<GroupNode> groupList)
          Deallocates a Group-List instance and stores it in a LinkedList.
static void deallocateNodeStack(java.util.Stack<Node> nodeStack)
          Deallocates a Node-Stack instance and stores it in a LinkedList.
static void deallocatePickRay(PickRay pickRay)
          Deallocates a PickRay instance and stores it in a LinkedList.
static void deallocatePickRequest(PickRequest preq)
           
static void deallocatePickResult(PickResult pickResult)
          Deallocates a PickResult instance and stores it in a LinkedList.
static void deallocatePickResultList(SortableList<PickResult> prList)
          Deallocates a PickResult-List instance and stores it in a LinkedList.
static void deallocateRay3f(org.openmali.vecmath2.Ray3f ray)
          Deallocates a Ray3f instance and stores it in a LinkedList.
static void deallocateTriangle(org.openmali.spatial.polygons.Triangle triangle)
          Deallocates a Triangle instance and stores it in a LinkedList.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

allocatePickRequest

public static PickRequest allocatePickRequest(RenderPass renderPass,
                                              java.util.List<? extends GroupNode> groups,
                                              Canvas3D canvas,
                                              org.jagatoo.input.devices.components.MouseButton button,
                                              int mouseX,
                                              int mouseY,
                                              java.lang.Object pl,
                                              java.lang.Object userObject,
                                              boolean pickAll)

allocatePickRequest

public static PickRequest allocatePickRequest(RenderPass renderPass,
                                              GroupNode group,
                                              Canvas3D canvas,
                                              org.jagatoo.input.devices.components.MouseButton button,
                                              int mouseX,
                                              int mouseY,
                                              java.lang.Object pl,
                                              java.lang.Object userObject,
                                              boolean pickAll)

deallocatePickRequest

public static void deallocatePickRequest(PickRequest preq)

allocateGroupList

public static java.util.List<GroupNode> allocateGroupList()
Allocates a new Group-List instance.


deallocateGroupList

public static void deallocateGroupList(java.util.List<GroupNode> groupList)
Deallocates a Group-List instance and stores it in a LinkedList.


allocatePickRay

public static PickRay allocatePickRay()
Allocates a new PickRay instance.


deallocatePickRay

public static void deallocatePickRay(PickRay pickRay)
Deallocates a PickRay instance and stores it in a LinkedList.


allocateRay3f

public static org.openmali.vecmath2.Ray3f allocateRay3f()
Allocates a new Ray3f instance.


deallocateRay3f

public static void deallocateRay3f(org.openmali.vecmath2.Ray3f ray)
Deallocates a Ray3f instance and stores it in a LinkedList.


allocateTriangle

public static org.openmali.spatial.polygons.Triangle allocateTriangle()
Allocates a new Triangle instance.


deallocateTriangle

public static void deallocateTriangle(org.openmali.spatial.polygons.Triangle triangle)
Deallocates a Triangle instance and stores it in a LinkedList.


allocatePickResultList

public static SortableList<PickResult> allocatePickResultList()
Allocates a new PickResult-List instance.


deallocatePickResultList

public static void deallocatePickResultList(SortableList<PickResult> prList)
Deallocates a PickResult-List instance and stores it in a LinkedList.


allocateNodeStack

public static java.util.Stack<Node> allocateNodeStack()
Allocates a new Node-Stack instance.


deallocateNodeStack

public static void deallocateNodeStack(java.util.Stack<Node> nodeStack)
Deallocates a Node-Stack instance and stores it in a LinkedList.


allocatePickResult

public static PickResult allocatePickResult()
Allocates a new PickResult instance.


deallocatePickResult

public static void deallocatePickResult(PickResult pickResult)
Deallocates a PickResult instance and stores it in a LinkedList.