Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv29709/src/net/sourceforge/bprocessor/gl/tool
Modified Files:
Protractor.java RotationTool.java
Log Message:
Added handles to GlObjects
Index: Protractor.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/Protractor.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** Protractor.java 15 Nov 2007 12:53:56 -0000 1.13
--- Protractor.java 15 Nov 2007 13:07:41 -0000 1.14
***************
*** 340,343 ****
--- 340,358 ----
}
}
+
+ /** {@inheritDoc} */
+ public List<Vertex> handles() {
+ List<Vertex> handles = new LinkedList();
+ Camera camera = Project.getInstance().getCurrentCamera();
+ double distance = camera.distance(origin);
+ double radius = 3 * distance;
+ double n = 24;
+ for (int i = 0; i < n; i++) {
+ double angle = 2 * Math.PI * i / n;
+ Vertex p = radian(radius * 0.97, angle);
+ handles.add(p);
+ }
+ return handles;
+ }
}
}
Index: RotationTool.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/RotationTool.java,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** RotationTool.java 15 Nov 2007 12:21:43 -0000 1.29
--- RotationTool.java 15 Nov 2007 13:07:41 -0000 1.30
***************
*** 391,394 ****
--- 391,399 ----
}
+ /** {@inheritDoc} */
+ public List<Vertex> handles() {
+ return new LinkedList();
+ }
+
/**
* @inheritDoc
|