Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/model
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9513
Modified Files:
ClippingPlane.java
Log Message:
Implemented the collect method but move still does not work because the clipping plane is not defined by its vertices. Added delete hack to make compile
Index: ClippingPlane.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/model/ClippingPlane.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** ClippingPlane.java 11 Feb 2006 18:14:15 -0000 1.7
--- ClippingPlane.java 13 Apr 2006 13:52:26 -0000 1.8
***************
*** 10,13 ****
--- 10,15 ----
import java.util.Iterator;
import java.util.ArrayList;
+ import java.util.Set;
+ import java.util.HashSet;
import net.sourceforge.bprocessor.model.CoordinateSystem;
***************
*** 16,19 ****
--- 18,22 ----
import net.sourceforge.bprocessor.model.Edge;
import net.sourceforge.bprocessor.model.Project;
+ import net.sourceforge.bprocessor.model.Geometric;
import org.apache.log4j.Logger;
***************
*** 21,25 ****
* The Clippingplane
*/
! public class ClippingPlane {
/** The logger */
private static Logger log = Logger.getLogger(ClippingPlane.class);
--- 24,28 ----
* The Clippingplane
*/
! public class ClippingPlane extends Geometric {
/** The logger */
private static Logger log = Logger.getLogger(ClippingPlane.class);
***************
*** 72,75 ****
--- 75,86 ----
/**
+ * gets the center
+ * @return center
+ */
+ public Vertex center() {
+ return origin();
+ }
+
+ /**
* Update this clipping from the defining coordinatesystem attribute
*
***************
*** 182,185 ****
--- 193,214 ----
return corners;
}
+
+ /**
+ * collects the vertices for this clipplane
+ * @return the set of vertices
+ */
+ public Set collect() {
+ Set result = new HashSet();
+ result.add(origin());
+ return result;
+ }
+
+ /**
+ * FIXME: empty implementation to make compile
+ * (pfff make sure stuff compiles before you check in please)
+ */
+ public void delete() {
+ return;
+ }
/**
|