[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/view AbstractView.java,1.19,1.20 View.java,
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2005-09-06 08:36:30
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30564/src/net/sourceforge/bprocessor/gl/view Modified Files: AbstractView.java View.java View3D.java Log Message: The d2 view buttons now just change the rotation of the 3d view Index: AbstractView.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/AbstractView.java,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** AbstractView.java 2 Sep 2005 13:21:19 -0000 1.19 --- AbstractView.java 6 Sep 2005 08:36:22 -0000 1.20 *************** *** 646,649 **** --- 646,655 ---- } } + + /** + * Change view to 3d, XY, XZ, or YZ + * @param value One of 3d_VIEW, XY_VIEW, XZ_VIEW, YZ_VIEW + */ + public void changeView(int value) { } /** *************** *** 829,834 **** selectMode = VERTICES; //repainting to get selection buffer - //display(glv.getGLDrawable()); - glv.repaint(true); id = processSelect(); --- 835,838 ---- Index: View3D.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/View3D.java,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** View3D.java 2 Sep 2005 13:21:19 -0000 1.14 --- View3D.java 6 Sep 2005 08:36:22 -0000 1.15 *************** *** 119,122 **** --- 119,152 ---- /** + * Change view to 3d, XY, XZ, or YZ + * @param value One of 3d_VIEW, XY_VIEW, XZ_VIEW, YZ_VIEW + */ + public void changeView(int value) { + if (value == View.VIEW_XY) { + rotationZ = 180; + rotationX = -90; + } + if (value == View.VIEW_XZ) { + rotationZ = 180; + rotationX = 0; + } + if (value == View.VIEW_YZ) { + rotationZ = 90; + rotationX = 0; + } + if (value == View.VIEW_3D) { + rotationZ = 130; + rotationX = -30; + } + + } + + /** + * Resets the working attributes of the view + */ + public void reset() { + super.reset(); + } + /** * Draw a grid */ Index: View.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/View.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** View.java 2 Sep 2005 13:21:19 -0000 1.9 --- View.java 6 Sep 2005 08:36:22 -0000 1.10 *************** *** 117,120 **** --- 117,126 ---- /** + * Change view to 3d, XY, XZ, or YZ + * @param value One of 3d_VIEW, XY_VIEW, XZ_VIEW, YZ_VIEW + */ + public void changeView(int value); + + /** * Set activeEdge * @param e The activeEdge |