[Bprocessor-commit] /model/src/net/sourceforge/bprocessor/model CoordinateSystem.java, 1.73, 1.74
Status: Pre-Alpha
Brought to you by:
henryml
From: rimestad <rim...@us...> - 2007-12-30 23:26:00
|
Update of /cvsroot/bprocessor//model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv16848/src/net/sourceforge/bprocessor/model Modified Files: CoordinateSystem.java Log Message: when hoovering over a coordinatesystem it is shows its xy plane... still need to implement intersection with it... Index: CoordinateSystem.java =================================================================== RCS file: /cvsroot/bprocessor//model/src/net/sourceforge/bprocessor/model/CoordinateSystem.java,v retrieving revision 1.73 retrieving revision 1.74 diff -C2 -d -r1.73 -r1.74 *** CoordinateSystem.java 17 Dec 2007 18:35:22 -0000 1.73 --- CoordinateSystem.java 30 Dec 2007 23:24:27 -0000 1.74 *************** *** 41,45 **** /** True if the coordinate system should be treated as a plane */ ! private boolean onlyPlane; /** Relations */ --- 41,45 ---- /** True if the coordinate system should be treated as a plane */ ! private boolean showPlane; /** Relations */ *************** *** 201,205 **** j = new Vertex(0, 1, 0); n = new Vertex(0, 0, 1); ! onlyPlane = false; relations = new LinkedList<Relation>(); } --- 201,205 ---- j = new Vertex(0, 1, 0); n = new Vertex(0, 0, 1); ! showPlane = false; relations = new LinkedList<Relation>(); } *************** *** 217,221 **** this.j = j; this.n = n; ! onlyPlane = false; relations = new LinkedList<Relation>(); } --- 217,221 ---- this.j = j; this.n = n; ! showPlane = false; relations = new LinkedList<Relation>(); } *************** *** 719,725 **** this.n = n; } ! setActive(((Boolean)(((Attribute)attributes.get(16)).getValue())).booleanValue()); ! onlyPlane(((Boolean)(((Attribute)attributes.get(17)).getValue())).booleanValue()); ! setEditable(((Boolean)(((Attribute)attributes.get(18)).getValue())).booleanValue()); update(); } --- 719,725 ---- this.n = n; } ! //setActive(((Boolean)(((Attribute)attributes.get(16)).getValue())).booleanValue()); ! onlyPlane(((Boolean)(((Attribute)attributes.get(16)).getValue())).booleanValue()); ! setEditable(((Boolean)(((Attribute)attributes.get(17)).getValue())).booleanValue()); update(); } *************** *** 745,757 **** res.add(new Attribute("z", new Double(getN().getZ()))); ! if (isActive()) { res.add(new Attribute("Active", Boolean.TRUE)); } else { res.add(new Attribute("Active", Boolean.FALSE)); ! } if (onlyPlane()) { ! res.add(new Attribute("Only plane", Boolean.TRUE)); } else { ! res.add(new Attribute("Only plane", Boolean.FALSE)); } res.add(new Attribute("Editable", Boolean.valueOf(isEditable()))); --- 745,757 ---- res.add(new Attribute("z", new Double(getN().getZ()))); ! /*if (isActive()) { res.add(new Attribute("Active", Boolean.TRUE)); } else { res.add(new Attribute("Active", Boolean.FALSE)); ! }*/ if (onlyPlane()) { ! res.add(new Attribute("Show plane", Boolean.TRUE)); } else { ! res.add(new Attribute("Show plane", Boolean.FALSE)); } res.add(new Attribute("Editable", Boolean.valueOf(isEditable()))); *************** *** 769,773 **** */ public boolean onlyPlane() { ! return onlyPlane; } --- 769,773 ---- */ public boolean onlyPlane() { ! return showPlane; } *************** *** 777,781 **** */ public void onlyPlane(boolean what) { ! onlyPlane = what; } --- 777,781 ---- */ public void onlyPlane(boolean what) { ! showPlane = what; } |