[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/tool ToolFactory.java, 1.62, 1.63
Status: Pre-Alpha
Brought to you by:
henryml
From: rimestad <rim...@us...> - 2006-10-31 14:22:51
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv16042/src/net/sourceforge/bprocessor/gl/tool Modified Files: ToolFactory.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: ToolFactory.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/ToolFactory.java,v retrieving revision 1.62 retrieving revision 1.63 diff -C2 -d -r1.62 -r1.63 *** ToolFactory.java 22 Oct 2006 14:32:55 -0000 1.62 --- ToolFactory.java 31 Oct 2006 14:22:46 -0000 1.63 *************** *** 12,17 **** --- 12,19 ---- import net.sourceforge.bprocessor.model.Camera; import net.sourceforge.bprocessor.model.Project; + import net.sourceforge.bprocessor.model.Selection; import java.net.URL; + import java.util.Collection; import java.util.HashMap; import java.util.Map; *************** *** 222,226 **** public void actionPerformed(ActionEvent agr0) { double aspect = glv.getView().getAspect(); ! Project.getInstance().getCurrentCamera().viewEntireModel(aspect); this.glv.repaint(); } --- 224,232 ---- public void actionPerformed(ActionEvent agr0) { double aspect = glv.getView().getAspect(); ! Collection c = Selection.primary(); ! if (c.isEmpty()) { ! c.add(Project.getInstance().getActiveSpace()); ! } ! Project.getInstance().getCurrentCamera().zoomOn(Selection.primary(), aspect); this.glv.repaint(); } |