Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19010
Modified Files:
ClipplaneTool.java
Log Message:
The right file
Index: ClipplaneTool.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/ClipplaneTool.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ClipplaneTool.java 3 Nov 2005 12:25:13 -0000 1.1
--- ClipplaneTool.java 3 Nov 2005 20:56:57 -0000 1.2
***************
*** 31,37 ****
* Invoked when a mouse button has been pressed on a component.
* @param e The MouseEvent object
! */
protected void pressed(MouseEvent e) {
super.pressed(e);
}
}
--- 31,43 ----
* Invoked when a mouse button has been pressed on a component.
* @param e The MouseEvent object
! */
protected void pressed(MouseEvent e) {
super.pressed(e);
+ if (e.getButton() == MouseEvent.BUTTON1) {
+ if (target instanceof Surface) {
+ ClippingPlane cp = new ClippingPlane(((Surface)target).plane());
+ (glv.getView()).addClippingPlane(cp);
+ }
+ }
}
}
|