[Bprocessor-commit] /gl/src/net/sourceforge/bprocessor/gl/tool ToolFactory.java, 1.72, 1.73
Status: Pre-Alpha
Brought to you by:
henryml
|
From: rimestad <rim...@us...> - 2007-01-20 21:24:57
|
Update of /cvsroot/bprocessor//gl/src/net/sourceforge/bprocessor/gl/tool In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv23448/src/net/sourceforge/bprocessor/gl/tool Modified Files: ToolFactory.java Log Message: made several smaller fixes to the scalefactor for cameras, including saving of it and visualization in attribute view... This alongside with better feedback when altering the current cam and copying cameras... Index: ToolFactory.java =================================================================== RCS file: /cvsroot/bprocessor//gl/src/net/sourceforge/bprocessor/gl/tool/ToolFactory.java,v retrieving revision 1.72 retrieving revision 1.73 diff -C2 -d -r1.72 -r1.73 *** ToolFactory.java 14 Jan 2007 23:33:28 -0000 1.72 --- ToolFactory.java 20 Jan 2007 21:24:56 -0000 1.73 *************** *** 268,274 **** Action orthoAction = new ToolAction(glv, 0, "Borto.gif") { public void actionPerformed(ActionEvent agr0) { ! if (Project.getInstance().getCurrentCamera().getType() != Camera.ORTHOGRAPHIC) { ! Project.getInstance().getCurrentCamera().setType(Camera.ORTHOGRAPHIC); ! int fac = (int)glv.getView().calcFactor(); Project.getInstance().getCurrentCamera().setFactor(fac); glv.setFactor(fac); --- 268,275 ---- Action orthoAction = new ToolAction(glv, 0, "Borto.gif") { public void actionPerformed(ActionEvent agr0) { ! Camera cam = Project.getInstance().getCurrentCamera(); ! if (cam.getType() != Camera.ORTHOGRAPHIC) { ! cam.setType(Camera.ORTHOGRAPHIC); ! int fac = (int)cam.calcFactor(); Project.getInstance().getCurrentCamera().setFactor(fac); glv.setFactor(fac); *************** *** 281,288 **** Action perspAction = new ToolAction(glv, 0, "Bpers.gif") { public void actionPerformed(ActionEvent agr0) { ! if (Project.getInstance().getCurrentCamera().getType() != Camera.PERSPECTIVE) { ! Project.getInstance().getCurrentCamera().setType(Camera.PERSPECTIVE); glv.disableFactor(); ! glv.getView().invertFactor(); glv.repaint(); } --- 282,290 ---- Action perspAction = new ToolAction(glv, 0, "Bpers.gif") { public void actionPerformed(ActionEvent agr0) { ! Camera cam = Project.getInstance().getCurrentCamera(); ! if (cam.getType() != Camera.PERSPECTIVE) { ! cam.setType(Camera.PERSPECTIVE); glv.disableFactor(); ! cam.invertFactor(); glv.repaint(); } |