[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/view View.java, 1.112, 1.113
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2006-07-18 14:04:46
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv14167/src/net/sourceforge/bprocessor/gl/view Modified Files: View.java Log Message: Implemented strategy to rotate a vector by moving the tip Index: View.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/View.java,v retrieving revision 1.112 retrieving revision 1.113 diff -C2 -d -r1.112 -r1.113 *** View.java 18 Jul 2006 12:43:13 -0000 1.112 --- View.java 18 Jul 2006 14:04:41 -0000 1.113 *************** *** 21,24 **** --- 21,25 ---- import net.sourceforge.bprocessor.model.Camera; import net.sourceforge.bprocessor.model.Edge; + import net.sourceforge.bprocessor.model.Point; import net.sourceforge.bprocessor.model.Project; import net.sourceforge.bprocessor.model.Space; *************** *** 952,957 **** dist = (c.getOrigin().minus(v)).length() * scale; } ! if (o instanceof net.sourceforge.bprocessor.model.Point) { ! drawConstructorPoint(((net.sourceforge.bprocessor.model.Point)o).getOrigin(), dist); } else if (o instanceof Line) { Line l = (Line)o; --- 953,958 ---- dist = (c.getOrigin().minus(v)).length() * scale; } ! if (o instanceof Point) { ! drawConstructorPoint(((Point)o).getOrigin(), dist); } else if (o instanceof Line) { Line l = (Line)o; *************** *** 1035,1042 **** gl.glEnd(); gl.glDisable(GL.GL_LINE_STIPPLE); ! } ! } ! /** * --- 1036,1042 ---- gl.glEnd(); gl.glDisable(GL.GL_LINE_STIPPLE); ! } } ! /** * *************** *** 1597,1602 **** drawVertexHit(current.getOrigin()); popName(gl); } - } } --- 1597,1608 ---- drawVertexHit(current.getOrigin()); popName(gl); + if (current instanceof Line) { + Line line = (Line) current; + Vertex tip = line.tip(); + pushName(gl, tip); + drawVertexHit(tip); + popName(gl); + } } } } |