anar

Class Scene

java.lang.Object
  extended by anar.Scene

public class Scene
extends java.lang.Object

Scene is an interface for viewer of the SceneGraph.


Field Summary
 Camera actualView
           
static float autoRotateX
           
static float autoRotateZ
           
static boolean autoSeek
           
static AColor backgroundColor1
           
static AColor backgroundColor2
           
static boolean blinkingAxis
           
static boolean drawAxis
           
static boolean drawReferenceFrame
           
static float drawReferenceFrameLength
           
static boolean earthQuake
           
static boolean isKeysEnabled
           
static boolean lights
           
static boolean myOpenGLBackground
           
 java.util.Vector views
           
 
Constructor Summary
Scene(PApplet p5)
           
 
Method Summary
 void drawAxis()
           
 void drawAxisIntersection(AColor a, AColor b)
          Display axis for coordinates representation
 void drawReferenceFrame()
          drawReferenceFrame - draw coordinate referential system in red green blue.
 void init()
          Setup Loop.
 void initLights()
           
 void orientedDrawBegin(XYZ q)
           
 void orientedDrawEnd()
           
 void postDraw()
           
 void screenDrawBegin()
           
 void screenDrawEnd()
           
 void setCamera(float f, float g)
           
 void setCamera(float f, float g, float h)
           
 void setCenter(float f, float g)
           
 void setCenter(float f, float g, float h)
           
 void setCenter(XYZ c)
           
 void setHorizon(float f, float g)
           
 void setHorizon(float f, float g, float h)
           
 void update()
          Main Loop.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

actualView

public Camera actualView

isKeysEnabled

public static boolean isKeysEnabled

autoSeek

public static boolean autoSeek

earthQuake

public static boolean earthQuake

myOpenGLBackground

public static boolean myOpenGLBackground

lights

public static boolean lights

blinkingAxis

public static boolean blinkingAxis

autoRotateZ

public static float autoRotateZ

autoRotateX

public static float autoRotateX

drawAxis

public static boolean drawAxis

drawReferenceFrame

public static boolean drawReferenceFrame

backgroundColor1

public static AColor backgroundColor1

backgroundColor2

public static AColor backgroundColor2

views

public java.util.Vector views

drawReferenceFrameLength

public static float drawReferenceFrameLength
Constructor Detail

Scene

public Scene(PApplet p5)
Method Detail

init

public void init()
Setup Loop. Remplace setup().


update

public void update()
Main Loop. Cette fonction est un remplacement pour draw() du main loop.Principalement, cette fonction est utilisé pour replacer le centre de référence au centre de l'applet.


postDraw

public void postDraw()

initLights

public void initLights()

drawAxis

public void drawAxis()

drawAxisIntersection

public void drawAxisIntersection(AColor a,
                                 AColor b)
Display axis for coordinates representation

Parameters:
a -
b -

drawReferenceFrame

public void drawReferenceFrame()
drawReferenceFrame - draw coordinate referential system in red green blue.


screenDrawBegin

public void screenDrawBegin()

screenDrawEnd

public void screenDrawEnd()

orientedDrawBegin

public void orientedDrawBegin(XYZ q)

orientedDrawEnd

public void orientedDrawEnd()

setCenter

public void setCenter(float f,
                      float g,
                      float h)
Parameters:
f -
g -
h -

setCenter

public void setCenter(XYZ c)
Parameters:
boundCenter -

setCenter

public void setCenter(float f,
                      float g)
Parameters:
_x -
_y -

setCamera

public void setCamera(float f,
                      float g,
                      float h)

setCamera

public void setCamera(float f,
                      float g)

setHorizon

public void setHorizon(float f,
                       float g,
                       float h)

setHorizon

public void setHorizon(float f,
                       float g)