edu.ohiou.cs456_badabing.sceneapi
Class HW6ARenderer

java.lang.Object
  extended by edu.ohiou.cs456_badabing.sceneapi.HW6ARenderer
All Implemented Interfaces:
java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener

 class HW6ARenderer
extends java.lang.Object
implements java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener

GLEventListener for HW6A

Description: Experimentation with JOGL

Copyright: Copyright (c) 2008, Lev A Neiman

Company: Ohio University EECS


Field Summary
 PieChart chart
           
private  int cur_m_button
          current mouse button.
private static GLU glu
           
private  LightNode light
           
private  int mX
           
private  int mY
           
private static float scale
          scale for the chart.
private static float xtilt
           
private static float ytilt
           
 
Constructor Summary
HW6ARenderer()
           
 
Method Summary
 void display(GLAutoDrawable gLDrawable)
           
 void displayChanged(GLAutoDrawable gLDrawable, boolean modeChanged, boolean deviceChanged)
           
 void init(GLAutoDrawable gLDrawable)
          Set up our scene.
 void keyPressed(java.awt.event.KeyEvent e)
           
 void keyReleased(java.awt.event.KeyEvent e)
           
 void keyTyped(java.awt.event.KeyEvent e)
           
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseDragged(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mouseMoved(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void reshape(GLAutoDrawable gLDrawable, int x, int y, int width, int height)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

glu

private static final GLU glu

light

private LightNode light

chart

public PieChart chart

mX

private int mX

mY

private int mY

xtilt

private static float xtilt

ytilt

private static float ytilt

scale

private static float scale
scale for the chart.


cur_m_button

private int cur_m_button
current mouse button.

Constructor Detail

HW6ARenderer

HW6ARenderer()
Method Detail

display

public void display(GLAutoDrawable gLDrawable)

displayChanged

public void displayChanged(GLAutoDrawable gLDrawable,
                           boolean modeChanged,
                           boolean deviceChanged)

init

public void init(GLAutoDrawable gLDrawable)
Set up our scene.

Parameters:
gLDrawable - GLAutoDrawable

reshape

public void reshape(GLAutoDrawable gLDrawable,
                    int x,
                    int y,
                    int width,
                    int height)

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Specified by:
keyPressed in interface java.awt.event.KeyListener

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
Specified by:
keyReleased in interface java.awt.event.KeyListener

keyTyped

public void keyTyped(java.awt.event.KeyEvent e)
Specified by:
keyTyped in interface java.awt.event.KeyListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener