[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model TransformStack.java, 1.1, 1.2 AxisRo
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2006-10-02 06:10:21
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv24356/src/net/sourceforge/bprocessor/model Modified Files: TransformStack.java AxisRotate.java Project.java Log Message: Reorganised Space Menu Draw coordinatesystem and grid in the transformed system Index: TransformStack.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/TransformStack.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TransformStack.java 27 Sep 2006 08:36:25 -0000 1.1 --- TransformStack.java 2 Oct 2006 06:10:10 -0000 1.2 *************** *** 53,56 **** --- 53,64 ---- /** + * + * @return true if empty + */ + public boolean empty() { + return stack.empty(); + } + + /** * Insert a transform * @param transform Transform Index: AxisRotate.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/AxisRotate.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** AxisRotate.java 27 Sep 2006 08:36:25 -0000 1.1 --- AxisRotate.java 2 Oct 2006 06:10:10 -0000 1.2 *************** *** 121,129 **** while (iter.hasNext()) { Attribute a = (Attribute)iter.next(); ! if (a.getName().equals("Rotate X")) { rx(((Double)a.getValue()).doubleValue()); ! } else if (a.getName().equals("Rotate Y")) { ry(((Double)a.getValue()).doubleValue()); ! } else if (a.getName().equals("Rotate Z")) { rz(((Double)a.getValue()).doubleValue()); } else if (a.getName().equals("Angle")) { --- 121,129 ---- while (iter.hasNext()) { Attribute a = (Attribute)iter.next(); ! if (a.getName().equals("Axis X")) { rx(((Double)a.getValue()).doubleValue()); ! } else if (a.getName().equals("Axis Y")) { ry(((Double)a.getValue()).doubleValue()); ! } else if (a.getName().equals("Axis Z")) { rz(((Double)a.getValue()).doubleValue()); } else if (a.getName().equals("Angle")) { *************** *** 140,146 **** public List getAttributes() { ArrayList res = new ArrayList(); ! res.add(new Attribute("Rotate X", new Double(rx()))); ! res.add(new Attribute("Rotate Y", new Double(ry()))); ! res.add(new Attribute("Rotate Z", new Double(rz()))); res.add(new Attribute("Angle", new Double(angle()))); return res; --- 140,146 ---- public List getAttributes() { ArrayList res = new ArrayList(); ! res.add(new Attribute("Axis X", new Double(rx()))); ! res.add(new Attribute("Axis Y", new Double(ry()))); ! res.add(new Attribute("Axis Z", new Double(rz()))); res.add(new Attribute("Angle", new Double(angle()))); return res; *************** *** 168,172 **** */ public String getGeneralName() { ! return "Rotate"; } } --- 168,172 ---- */ public String getGeneralName() { ! return "General Rotate"; } } Index: Project.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Project.java,v retrieving revision 1.76 retrieving revision 1.77 diff -C2 -d -r1.76 -r1.77 *** Project.java 29 Sep 2006 14:57:24 -0000 1.76 --- Project.java 2 Oct 2006 06:10:10 -0000 1.77 *************** *** 982,984 **** --- 982,992 ---- this.name = name; } + + /** + * + * @param object Object + */ + public static void info(Object object) { + log.info(object); + } } |