Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv32003/src/net/sourceforge/bprocessor/gl/tool
Modified Files:
SelectStrategy.java
Log Message:
Added active to clippingplane as well so that it is now possible to disable a clippingplane, Added to Select double clicking of constructors and clippingplanes to negate the active boolean of the object. Changed the drawing of planes to be with constructor colors, (THERE ARE STILL ONE THING WITH THE GRID NOW IT IS CLIPPED BY THE CLIPPING PLANE COULD BE OK???)
Index: SelectStrategy.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/SelectStrategy.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** SelectStrategy.java 3 Aug 2006 14:35:28 -0000 1.2
--- SelectStrategy.java 9 Aug 2006 18:10:37 -0000 1.3
***************
*** 16,19 ****
--- 16,21 ----
import net.sourceforge.bprocessor.gl.view.Transformation;
import net.sourceforge.bprocessor.gl.view.View;
+ import net.sourceforge.bprocessor.model.ClippingPlane;
+ import net.sourceforge.bprocessor.model.Constructor;
import net.sourceforge.bprocessor.model.Edge;
import net.sourceforge.bprocessor.model.Selection;
***************
*** 99,110 ****
View view = glv.getView();
target = view.getObjectAtPoint(x, y);
!
! if (e.getClickCount() >= 2 && target instanceof Surface) {
! Surface surface = (Surface) target;
! if (surface.getBackDomain() != null) {
! selection.addAll(surface.getBackDomain().getEnvelope());
! }
! if (surface.getFrontDomain() != null) {
! selection.addAll(surface.getFrontDomain().getEnvelope());
}
} else {
--- 101,119 ----
View view = glv.getView();
target = view.getObjectAtPoint(x, y);
! if (e.getClickCount() >= 2) {
! if (target instanceof Surface) {
! Surface surface = (Surface) target;
! if (surface.getBackDomain() != null) {
! selection.addAll(surface.getBackDomain().getEnvelope());
! }
! if (surface.getFrontDomain() != null) {
! selection.addAll(surface.getFrontDomain().getEnvelope());
! }
! } else if (target instanceof Constructor) {
! Constructor c = (Constructor)target;
! c.setActive(!c.isActive());
! } else if (target instanceof ClippingPlane) {
! ClippingPlane cp = (ClippingPlane)target;
! cp.setActive(!cp.isActive());
}
} else {
|