JAL-617 - new menu items for exporting current view or complete PCA pointset
[jalview.git] / src / jalview / gui / RotatableCanvas.java
index 883a4c9..3b983fe 100755 (executable)
@@ -815,4 +815,19 @@ public class RotatableCanvas extends JPanel implements MouseListener,
       { ap };
     }
   }
+
+  /**
+   * 
+   * @return x,y,z positions of point s (index into points) under current transform.
+   */
+  public double[] getPointPosition(int s)
+  {
+    double pts[] = new double[3];
+    float[] p = ((SequencePoint)points.elementAt(s)).coord;
+    pts[0] = p[0];
+    pts[1] = p[1];
+    pts[2] = p[2];
+    return pts;
+  }
+
 }