Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv23100/src/net/sourceforge/bprocessor/model
Modified Files:
CoordinateSystem.java Constructor.java
Log Message:
added boolean to constructors isActive that tells if the extended version of the constructor should be shown... and added onlyPlane to coordinatesystem that should be true if the coordinatesystem should only be shown as a plane
Index: Constructor.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Constructor.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Constructor.java 4 Jul 2006 11:53:43 -0000 1.4
--- Constructor.java 20 Jul 2006 13:00:40 -0000 1.5
***************
*** 17,20 ****
--- 17,38 ----
private Vertex origin;
+ /** Tells if the constructor is extended for hit or not */
+ private boolean active;
+
+ /**
+ * True if the constructor is active
+ * @return Returns the active.
+ */
+ public boolean isActive() {
+ return active;
+ }
+
+ /**
+ * @param active The active to set.
+ */
+ public void setActive(boolean active) {
+ this.active = active;
+ }
+
/**
* The constructor method
***************
*** 23,26 ****
--- 41,45 ----
public Constructor(Vertex origin) {
this.origin = origin;
+ this.active = false;
}
***************
*** 34,37 ****
--- 53,64 ----
/**
+ * Setter for origin
+ * @param origin the new origin
+ */
+ public void setOrigin(Vertex origin) {
+ this.origin = origin;
+ }
+
+ /**
* @see net.sourceforge.bprocessor.model.Geometric#collect()
*/
Index: CoordinateSystem.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/CoordinateSystem.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** CoordinateSystem.java 13 Jul 2006 13:30:14 -0000 1.13
--- CoordinateSystem.java 20 Jul 2006 13:00:40 -0000 1.14
***************
*** 33,36 ****
--- 33,39 ----
/** The n unit vector (z-direction) */
protected Vertex n;
+
+ /** True if the coordinate system should be treated as a plane */
+ private boolean onlyPlane;
/**
***************
*** 43,49 ****
--- 46,56 ----
public CoordinateSystem(Vertex i, Vertex j, Vertex n, Vertex origin) {
super(origin);
+ i.normalize();
+ j.normalize();
+ n.normalize();
this.i = i;
this.j = j;
this.n = n;
+ onlyPlane = false;
}
***************
*** 260,263 ****
--- 267,285 ----
return "Constructor-Coordinatesystem";
}
+
+ /**
+ * Check of onlyPlane boolean
+ * @return True if coordinatesystem only should be drawn as a plane
+ */
+ public boolean onlyPlane() {
+ return onlyPlane;
+ }
+ /**
+ * Setter for onlyPlane
+ * @param what The value for onlyPlane
+ */
+ public void onlyPlane(boolean what) {
+ onlyPlane = what;
+ }
}
|