y25.view.realizer
Class ArrowPainter

java.lang.Object
  extended byy25.view.realizer.ArrowPainter

public class ArrowPainter
extends Object

Paints Arrows into an OpenGL context.


Field Summary
static int standardArrowSides
          The number of sides for the painted arrows.
 
Constructor Summary
ArrowPainter()
           
 
Method Summary
static void paintGL(GLAutoDrawable drawable, Camera camera, Arrow arrow, Point3D tip, Vector3D tipToBase, float radius)
          Paints the given arrow into the given OpenGL context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

standardArrowSides

public static int standardArrowSides
The number of sides for the painted arrows.

Constructor Detail

ArrowPainter

public ArrowPainter()
Method Detail

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.