[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model IDTransform.java, NONE, 1.1 Transfor
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2006-10-11 14:05:20
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv25466/src/net/sourceforge/bprocessor/model Modified Files: TransformStack.java Scale.java Added Files: IDTransform.java Log Message: push, pop, translate, rotate and scale implemented in b-script Index: TransformStack.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/TransformStack.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** TransformStack.java 2 Oct 2006 06:10:10 -0000 1.2 --- TransformStack.java 11 Oct 2006 14:05:16 -0000 1.3 *************** *** 46,53 **** /** * Pop a transform ! * */ ! public void pop() { ! stack.pop(); } --- 46,53 ---- /** * Pop a transform ! * @return Trasnform */ ! public Transform pop() { ! return (Transform) stack.pop(); } --- NEW FILE: IDTransform.java --- //--------------------------------------------------------------------------------- // $Id: IDTransform.java,v 1.1 2006/10/11 14:05:16 henryml Exp $ // // Copyright (c) 2005 The BProcessor Team (http://bprocessor.sourceforge.net) // Released under the Lesser GNU Public License v2.1 //--------------------------------------------------------------------------------- package net.sourceforge.bprocessor.model; import java.util.List; /** * ID Transform */ public class IDTransform extends Transform { /** * Constructor */ public IDTransform() { super(); } /** * @param vertex Vertex * @return vertex */ public Vertex transform(Vertex vertex) { return vertex; } /** * @param attributes List */ public void setAttributes(List attributes) { } /** * @return List */ public List getAttributes() { return null; } /** * @return String */ public String getGeneralName() { return "ID"; } } Index: Scale.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Scale.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Scale.java 27 Sep 2006 08:36:25 -0000 1.2 --- Scale.java 11 Oct 2006 14:05:16 -0000 1.3 *************** *** 37,40 **** --- 37,53 ---- /** + * Constructor + * @param x Double + * @param y Double + * @param z Double + */ + public Scale(double x, double y, double z) { + super(); + sx = x; + sy = y; + sz = z; + } + + /** * @param value new value */ |