Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv5115/tool
Modified Files:
ToolFactory.java
Log Message:
using aspect in viewing entire model
Index: ToolFactory.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/ToolFactory.java,v
retrieving revision 1.48
retrieving revision 1.49
diff -C2 -d -r1.48 -r1.49
*** ToolFactory.java 13 Jun 2006 09:42:40 -0000 1.48
--- ToolFactory.java 16 Jun 2006 09:53:46 -0000 1.49
***************
*** 221,234 ****
Action zoomAction = new ToolAction(glv, 0, "Biconzomeall.gif") {
! public void actionPerformed(ActionEvent agr0) {
! Project.getInstance().getCurrentCamera().viewEntireModel();
! this.glv.repaint();
! }
! };
!
!
Toolbar.getInstance().registerPushButtonAction(zoomAction);
tb.addSeparator(10);
Action orthoAction = new ToolAction(glv, 0, "Borto.gif") {
--- 221,235 ----
Action zoomAction = new ToolAction(glv, 0, "Biconzomeall.gif") {
! public void actionPerformed(ActionEvent agr0) {
! double apsect = glv.getView().getAspect();
! Project.getInstance().getCurrentCamera().viewEntireModel(apsect);
! this.glv.repaint();
! }
! };
!
Toolbar.getInstance().registerPushButtonAction(zoomAction);
tb.addSeparator(10);
+
Action orthoAction = new ToolAction(glv, 0, "Borto.gif") {
|