Class JoglDrawer

java.lang.Object
one.empty3.apps.opad.Drawer
one.empty3.apps.opad.JoglDrawer
All Implemented Interfaces:
com.jogamp.opengl.GLEventListener, EventListener
Direct Known Subclasses:
Example, JoglDrawerBoardGame

public class JoglDrawer extends Drawer implements com.jogamp.opengl.GLEventListener
  • Field Details

    • component

      protected final Frame component
    • animator

      protected final com.jogamp.opengl.util.Animator animator
    • glCanvas

      protected com.jogamp.opengl.awt.GLCanvas glCanvas
    • maximize

      protected final double maximize
    • minimize

      protected final double minimize
    • glu

      protected com.jogamp.opengl.glu.GLU glu
    • mover

      protected PositionUpdate mover
    • terrain

      protected Terrain terrain
    • bonus

      protected Bonus bonus
    • renderer

      protected com.jogamp.opengl.util.awt.TextRenderer renderer
    • vaisseau

      protected Vaisseau vaisseau
    • textureRenderer

      protected com.jogamp.opengl.util.awt.TextureRenderer textureRenderer
    • locked

      protected boolean locked
    • circuit

      protected Circuit circuit
    • BUFSIZE

      protected int BUFSIZE
    • pickPoint

      protected Point2D pickPoint
    • piloteAuto

      protected PiloteAuto piloteAuto
    • del

      protected Point3D del
    • diff

      protected Point3D diff
    • gl

      protected com.jogamp.opengl.GL2 gl
    • plotter3D

      protected Plotter3D plotter3D
    • millis

      protected long millis
    • millis0

      protected long millis0
    • wasAnimating

      protected boolean wasAnimating
  • Constructor Details

  • Method Details

    • display

      public void display(com.jogamp.opengl.GLAutoDrawable gLDrawable)
      Specified by:
      display in interface com.jogamp.opengl.GLEventListener
    • piloteAuto

      public PiloteAuto piloteAuto()
    • piloteAuto

      public void piloteAuto(PiloteAuto pa)
    • color

      public void color(com.jogamp.opengl.GL2 gl, Color c)
    • draw

      protected void draw(LineSegment segd, com.jogamp.opengl.glu.GLU glu, com.jogamp.opengl.GL2 gl)
    • draw

      public void draw(TRI tri, com.jogamp.opengl.glu.GLU glu, com.jogamp.opengl.GL2 gl)
    • draw2

      public void draw2(TRI tri, com.jogamp.opengl.glu.GLU glu, com.jogamp.opengl.GL2 gl, boolean guard)
    • draw

      public void draw(TRIObjetGenerateur s, com.jogamp.opengl.glu.GLU glu, com.jogamp.opengl.GL2 gl)
    • draw2

      public void draw2(TRIObjetGenerateur s, com.jogamp.opengl.glu.GLU glu, com.jogamp.opengl.GL2 gl)
    • draw

      public void draw(TRIGenerable gen, com.jogamp.opengl.glu.GLU glu, com.jogamp.opengl.GL2 gl)
    • draw

      public void draw(TRIObject gen, com.jogamp.opengl.glu.GLU glu, com.jogamp.opengl.GL2 gl)
    • draw

      public void draw(RepresentableConteneur rc, com.jogamp.opengl.glu.GLU glu, com.jogamp.opengl.GL2 gl)
    • draw

      protected void draw(ParametricSurface s, com.jogamp.opengl.glu.GLU glu, com.jogamp.opengl.GL2 gl)
    • draw

      protected void draw(Terrain t, ParametricSurface s, com.jogamp.opengl.glu.GLU glu, com.jogamp.opengl.GL2 gl)
    • draw

      public void draw(TRIConteneur con, com.jogamp.opengl.glu.GLU glu, com.jogamp.opengl.GL2 gl)
    • draw

      public void draw(Cube c, com.jogamp.opengl.glu.GLU glu, com.jogamp.opengl.GL2 gl)
    • draw

      public void draw(String text, Color textColor, com.jogamp.opengl.glu.GLU glu, com.jogamp.opengl.GL2 gl)
    • drawToggleMenu

      public void drawToggleMenu(com.jogamp.opengl.glu.GLU glu, com.jogamp.opengl.GL2 gl)
    • draw

      public void draw(String text, Dimension place, Color textColor, com.jogamp.opengl.glu.GLU glu, com.jogamp.opengl.GL2 gl)
    • displayArcs

      protected void displayArcs(com.jogamp.opengl.glu.GLU glu, com.jogamp.opengl.GL2 gl)
    • displayTerrain

      protected void displayTerrain(com.jogamp.opengl.glu.GLU glu, com.jogamp.opengl.GL2 gl)
    • displayGround

      protected void displayGround(com.jogamp.opengl.glu.GLU glu, com.jogamp.opengl.GL2 gl)
    • isClose

      protected boolean isClose(double maxDistance, TRI toDraw)
    • drawTriLines

      protected void drawTriLines(TRI triCourant, com.jogamp.opengl.glu.GLU glu, com.jogamp.opengl.GL2 gl, boolean b)
    • draw

      protected void draw(ParametricCurve courbeParametriquePolynomiale, com.jogamp.opengl.glu.GLU glu, com.jogamp.opengl.GL2 gl)
    • draw

      protected void draw(Polygon polygon, com.jogamp.opengl.glu.GLU glu, com.jogamp.opengl.GL2 gl)
    • drawTrajectory

      protected void drawTrajectory(Plotter3D plotter3D, com.jogamp.opengl.glu.GLU glu, com.jogamp.opengl.GL2 gl)
    • displayChanged

      public void displayChanged(com.jogamp.opengl.GLAutoDrawable gLDrawable, boolean modeChanged, boolean deviceChanged)
    • init

      public void init(com.jogamp.opengl.GLAutoDrawable gLDrawable)
      Specified by:
      init in interface com.jogamp.opengl.GLEventListener
    • reshape

      public void reshape(com.jogamp.opengl.GLAutoDrawable gLDrawable, int x, int y, int width, int height)
      Specified by:
      reshape in interface com.jogamp.opengl.GLEventListener
    • dispose

      public void dispose(com.jogamp.opengl.GLAutoDrawable arg0)
      Specified by:
      dispose in interface com.jogamp.opengl.GLEventListener
    • setLogic

      public void setLogic(PositionUpdate m)
      Specified by:
      setLogic in class Drawer
    • locked

      protected boolean locked()
    • time

      protected double time()
    • click

      public LineSegment click(Point2D p)
      Specified by:
      click in class Drawer
    • getGlu

      public com.jogamp.opengl.glu.GLU getGlu()
    • getComponent

      public Object getComponent()
    • getMover

      public PositionUpdate getMover()
    • getTerrain

      public Terrain getTerrain()
    • getBonus

      public Bonus getBonus()
    • getRenderer

      public com.jogamp.opengl.util.awt.TextRenderer getRenderer()
    • getVaisseau

      public Vaisseau getVaisseau()
    • isLocked

      public boolean isLocked()
    • setLocked

      protected void setLocked(boolean l)
    • getCircuit

      public Circuit getCircuit()
    • getTimer

      public Timer getTimer()
    • getGlcanvas

      public com.jogamp.opengl.awt.GLCanvas getGlcanvas()
    • getBUFSIZE

      public int getBUFSIZE()
    • getPickPoint

      public Point2D getPickPoint()
    • getPiloteAuto

      public PiloteAuto getPiloteAuto()
    • getPlotter3D

      public Plotter3D getPlotter3D()
    • setPlotter3D

      public void setPlotter3D(Plotter3D plotter3D)
    • getAnimator

      public com.jogamp.opengl.util.Animator getAnimator()
    • isRunning

      protected boolean isRunning()