[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model Camera.java, 1.24, 1.25
Status: Pre-Alpha
Brought to you by:
henryml
From: rimestad <rim...@us...> - 2006-10-31 14:22:53
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv16054/src/net/sourceforge/bprocessor/model Modified Files: Camera.java Log Message: changed viewentiremodel to zoomon which takes a colelction and a aspect. changed the implementation to reflect that. Now the focus on method choose the closest edge in the surface in respect to angle... Index: Camera.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Camera.java,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** Camera.java 29 Sep 2006 15:07:32 -0000 1.24 --- Camera.java 31 Oct 2006 14:22:51 -0000 1.25 *************** *** 403,416 **** * Moves the camera to a position where the entire model is visible. * @param aspect the acspect ratio of the view. */ ! public void viewEntireModel(double aspect) { ! Set allVertices; ! ! if (Selection.primary().isEmpty()) { ! Space space = Project.getInstance().getActiveSpace(); ! allVertices = space.collect(); ! } else { ! allVertices = Selection.primary().collect(); ! } if (!allVertices.isEmpty()) { --- 403,410 ---- * Moves the camera to a position where the entire model is visible. * @param aspect the acspect ratio of the view. + * @param c the Collection of object to zoom on to. */ ! public void zoomOn(Collection c, double aspect) { ! Set allVertices = Geometry.collect(c); if (!allVertices.isEmpty()) { |