Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv31983/src/net/sourceforge/bprocessor/model
Modified Files:
ClippingPlane.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: ClippingPlane.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/ClippingPlane.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** ClippingPlane.java 3 Aug 2006 14:35:21 -0000 1.5
--- ClippingPlane.java 9 Aug 2006 18:10:31 -0000 1.6
***************
*** 37,40 ****
--- 37,43 ----
private Plane plane;
+ /** If the clippingplane is on or off */
+ private boolean isActive;
+
/**
* The constructor
***************
*** 43,46 ****
--- 46,50 ----
public ClippingPlane(CoordinateSystem system) {
this.cs = system;
+ this.isActive = true;
plane = cs.plane();
update();
***************
*** 258,260 ****
--- 262,278 ----
}
}
+
+ /**
+ * @return Returns the isActive.
+ */
+ public boolean isActive() {
+ return isActive;
+ }
+
+ /**
+ * @param isActive The isActive to set.
+ */
+ public void setActive(boolean isActive) {
+ this.isActive = isActive;
+ }
}
|