[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/view Transformation.java,1.4,1.5
Status: Pre-Alpha
Brought to you by:
henryml
From: Jesper P. <je...@us...> - 2005-09-20 13:14:39
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16159 Modified Files: Transformation.java Log Message: Use a logger Index: Transformation.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/Transformation.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Transformation.java 31 Aug 2005 07:02:51 -0000 1.4 --- Transformation.java 20 Sep 2005 13:14:24 -0000 1.5 *************** *** 18,21 **** --- 18,23 ---- import net.sourceforge.bprocessor.model.Vertex; + import org.apache.log4j.Logger; + /** * The Transformation is represented by the two matrices *************** *** 25,28 **** --- 27,32 ---- */ public class Transformation { + /** The logger */ + private static Logger log = Logger.getLogger(Transformation.class); /** The glu */ *************** *** 108,112 **** boolean success = glu.gluProject(x, y, z, modelview, projection, viewport, view); if (!success) { ! System.out.println("error projecting"); } Vertex projection = new Vertex("projection of " + vertex.getName()); --- 112,116 ---- boolean success = glu.gluProject(x, y, z, modelview, projection, viewport, view); if (!success) { ! log.error("error projecting"); } Vertex projection = new Vertex("projection of " + vertex.getName()); *************** *** 161,165 **** boolean success = glu.gluUnProject(x, y, z, modelview, projection, viewport, view); if (!success) { ! System.out.println("error un-projecting"); } Vertex projection = new Vertex("un-projection of " + vertex.getName()); --- 165,169 ---- boolean success = glu.gluUnProject(x, y, z, modelview, projection, viewport, view); if (!success) { ! log.error("error un-projecting"); } Vertex projection = new Vertex("un-projection of " + vertex.getName()); |