y25.view.realizer
Class ArrowPainter
java.lang.Object
y25.view.realizer.ArrowPainter
- public class ArrowPainter
- extends Object
Paints Arrow
s into an OpenGL context.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
standardArrowSides
public static int standardArrowSides
- The number of sides for the painted arrows.
ArrowPainter
public ArrowPainter()
paintGL
public static void paintGL(GLAutoDrawable drawable,
Camera camera,
Arrow arrow,
Point3D tip,
Vector3D tipToBase,
float radius)
- Paints the given
arrow
into the given OpenGL context.
- Parameters:
drawable
- the drawable the drawing operations go to.camera
- the camera that is used to view the scene.arrow
- the arrow that has to be painted.tip
- the position of the tip of the arrow.tipToBase
- a vector from the tip to the base of the arrow.radius
- the radius of the arrow base.