[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model ClippingPlane.java, 1.6, 1.7 Surface
Status: Pre-Alpha
Brought to you by:
henryml
From: rimestad <rim...@us...> - 2006-08-21 14:18:53
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv20266/src/net/sourceforge/bprocessor/model Modified Files: ClippingPlane.java Surface.java Space.java Geometric.java Log Message: Made the move command a part of Geometric and implemented it in clippingplane, space and surface Index: Surface.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Surface.java,v retrieving revision 1.102 retrieving revision 1.103 diff -C2 -d -r1.102 -r1.103 *** Surface.java 9 Jul 2006 16:24:39 -0000 1.102 --- Surface.java 21 Aug 2006 14:18:50 -0000 1.103 *************** *** 901,905 **** } } - changed(); } --- 901,904 ---- Index: Space.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Space.java,v retrieving revision 1.46 retrieving revision 1.47 diff -C2 -d -r1.46 -r1.47 *** Space.java 10 Aug 2006 13:13:26 -0000 1.46 --- Space.java 21 Aug 2006 14:18:50 -0000 1.47 *************** *** 1085,1088 **** --- 1085,1091 ---- } res.add(new Attribute("Description", getDescription())); + if (getModellor() != null) { + res.add(new Attribute("Modellor", getModellor(), false)); + } return res; } *************** *** 1625,1627 **** --- 1628,1638 ---- } } + + /** @see net.sourceforge.bprocessor.model.Geometric#move(double, double, double)*/ + public void move(double x, double y, double z) { + Iterator iter = getVertices().iterator(); + while (iter.hasNext()) { + ((Vertex)iter.next()).move(x, y, z); + } + } } Index: ClippingPlane.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/ClippingPlane.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** ClippingPlane.java 9 Aug 2006 18:10:31 -0000 1.6 --- ClippingPlane.java 21 Aug 2006 14:18:50 -0000 1.7 *************** *** 276,278 **** --- 276,283 ---- this.isActive = isActive; } + + /** @see net.sourceforge.bprocessor.model.Geometric#move(double, double, double) */ + public void move(double x, double y, double z) { + center().move(x, y, z); + } } Index: Geometric.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Geometric.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** Geometric.java 9 Aug 2006 15:14:58 -0000 1.9 --- Geometric.java 21 Aug 2006 14:18:50 -0000 1.10 *************** *** 75,77 **** --- 75,85 ---- */ public abstract Vertex center(); + + /** + * Move the geometric object x,y,z + * @param x the distance in x + * @param y the distance in y + * @param z the distance in z + */ + public abstract void move(double x, double y, double z); } |