Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv12640/src/net/sourceforge/bprocessor/model
Modified Files:
Space.java Project.java
Log Message:
Added setting of activecoordinatesystem to the clear method of Project and fixed a misspell and boolean check in space
Index: Space.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Space.java,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -d -r1.42 -r1.43
*** Space.java 27 Jul 2006 10:27:37 -0000 1.42
--- Space.java 31 Jul 2006 11:29:40 -0000 1.43
***************
*** 82,87 ****
private long nextSurfaceId;
! /** The co0nstructors */
! private HashMap constructors;
/** The next constructor id */
private long nextConstructorId;
--- 82,87 ----
private long nextSurfaceId;
! /** The constructors */
! private Map constructors;
/** The next constructor id */
private long nextConstructorId;
***************
*** 330,334 ****
*/
public Collection getConstructors() {
! if (container) {
return constructors.values();
} else {
--- 330,334 ----
*/
public Collection getConstructors() {
! if (this.isContainer()) {
return constructors.values();
} else {
***************
*** 338,341 ****
--- 338,348 ----
/**
+ * Set the set of connstructors in the map to the given map
+ * @param constructors the constructors
+ */
+ public void setConstructors(Map constructors) {
+ this.constructors = constructors;
+ }
+ /**
* Add a vertex
* @param vertex The vertex
Index: Project.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Project.java,v
retrieving revision 1.67
retrieving revision 1.68
diff -C2 -d -r1.67 -r1.68
*** Project.java 26 Jul 2006 14:45:55 -0000 1.67
--- Project.java 31 Jul 2006 11:29:40 -0000 1.68
***************
*** 183,186 ****
--- 183,190 ----
world.clear();
this.setActiveSpace(null);
+ CoordinateSystem cs = new CoordinateSystem(new Vertex(1, 0, 0),
+ new Vertex(0, 1, 0), new Vertex(0, 0, 1), new Vertex(0, 0, 0));
+ world.add(cs);
+ this.setActiveCoordinateSystem(cs);
changed(this);
}
|