Author: paperwing
Date: 2011-07-21 08:32:57 -0700 (Thu, 21 Jul 2011)
New Revision: 26236
Modified:
csplugins/trunk/toronto/yuedong/paperwing-impl/src/main/java/org/cytoscape/paperwing/internal/Graphics.java
Log:
removed text rendering; added P key to toggle real-time picking
Modified:
csplugins/trunk/toronto/yuedong/paperwing-impl/src/main/java/org/cytoscape/paperwing/internal/Graphics.java
===================================================================
---
csplugins/trunk/toronto/yuedong/paperwing-impl/src/main/java/org/cytoscape/paperwing/internal/Graphics.java
2011-07-21 14:26:00 UTC (rev 26235)
+++
csplugins/trunk/toronto/yuedong/paperwing-impl/src/main/java/org/cytoscape/paperwing/internal/Graphics.java
2011-07-21 15:32:57 UTC (rev 26236)
@@ -149,6 +149,7 @@
private boolean latch_1;
private boolean lowerQuality = false;
+ private boolean skipHover = false;
private Vector3 currentSelectedProjection;
private Vector3 previousSelectedProjection;
@@ -338,7 +339,7 @@
//gl.glColor3f(0.73f, 0.73f, 0.73f);
drawEdges(gl, DrawStateModifier.NORMAL);
- drawNodeNames(gl);
+ // drawNodeNames(gl);
framesElapsed++;
}
@@ -408,6 +409,10 @@
}
}
+ if (pressed.contains(KeyEvent.VK_P)) {
+ skipHover = !skipHover;
+ }
+
// Roll camera clockwise
if (held.contains(KeyEvent.VK_Z)) {
camera.rollClockwise();
@@ -572,7 +577,12 @@
// Perform picking-related operations
// ----------------------------------
- PickResults pickResults = performPick(gl, mouse.x(), mouse.y(),
2, 2, false);
+ PickResults pickResults;
+ if (skipHover) {
+ pickResults = new PickResults();
+ } else {
+ pickResults = performPick(gl, mouse.x(), mouse.y(), 2,
2, false);
+ }
int newHoverNodeIndex = NO_INDEX;
int newHoverEdgeIndex = NO_INDEX;
--
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.