Author: paperwing
Date: 2011-12-14 11:03:58 -0800 (Wed, 14 Dec 2011)
New Revision: 27788

Modified:
   
csplugins/trunk/toronto/yuedong/paperwing-impl/src/main/java/org/cytoscape/paperwing/internal/graphics/ShapePickingPerformer.java
Log:
commit before separating opengl picking setup and finish

Modified: 
csplugins/trunk/toronto/yuedong/paperwing-impl/src/main/java/org/cytoscape/paperwing/internal/graphics/ShapePickingPerformer.java
===================================================================
--- 
csplugins/trunk/toronto/yuedong/paperwing-impl/src/main/java/org/cytoscape/paperwing/internal/graphics/ShapePickingPerformer.java
   2011-12-14 18:20:44 UTC (rev 27787)
+++ 
csplugins/trunk/toronto/yuedong/paperwing-impl/src/main/java/org/cytoscape/paperwing/internal/graphics/ShapePickingPerformer.java
   2011-12-14 19:03:58 UTC (rev 27788)
@@ -16,6 +16,20 @@
 
 public class ShapePickingPerformer {
        
+       /** A constant that stands for "no type is here" */
+       private static final int NO_TYPE = -1;
+       
+       /** A constant representing the type node */
+       private static final int NODE_TYPE = 0;
+       
+       /** A constant representing the type edge */
+       private static final int EDGE_TYPE = 1;
+       
+       /** A constant that stands for "no index is here" */
+       // TODO: NO_INDEX relies on cytoscape's guarantee that node and edge 
indices are nonnegative
+       private static final int NO_INDEX = -1; // Value representing that no 
node or edge index is being held
+       
+       
        /** A class capable of storing the edge and node indices of edges and 
nodes
         * that were found to be selected using the shape picking methods
         */
@@ -83,7 +97,7 @@
 
                gl.glPushName(NODE_TYPE);
                gl.glPushName(NO_INDEX);
-               
+       
                // Render nodes for picking
                drawNodes(gl);
                

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to