public final class DayflowerApplication extends AbstractApplication implements CameraObserver
AbstractApplication
that performs Ambient Occlusion, Path Tracing, Ray Casting, Ray Marching or Ray Tracing.AbstractApplication.Setting
Constructor and Description |
---|
DayflowerApplication()
Constructs a new
TestApplication instance. |
Modifier and Type | Method and Description |
---|---|
protected void |
configureMenuBar(javafx.scene.control.MenuBar menuBar)
Called when the
MenuBar can be configured. |
protected void |
configurePixels(byte[] pixels)
Called when pixels can be configured at start.
|
protected void |
configureStage(javafx.stage.Stage stage)
Called when the primary
Stage can be configured. |
protected void |
configureStatusBar(javafx.scene.layout.HBox hBox)
Called when the status bar can be configured.
|
protected void |
configureTabPane(javafx.scene.control.TabPane tabPane)
Called when the
TabPane can be configured. |
void |
init()
Initializes this
TestApplication instance. |
static void |
main(java.lang.String[] args)
Starts this program.
|
protected void |
onExit()
Called before this
DayflowerApplication is finally exiting. |
protected void |
onMouseDragged(float x,
float y)
Called when the mouse is dragged.
|
protected void |
onMouseMoved(float x,
float y)
Called when the mouse is moved.
|
void |
pitchChanged(Camera camera,
AngleF pitch)
Called by a
Camera instance when its pitch has changed. |
protected void |
render()
Called when rendering.
|
protected void |
update()
Called when updating.
|
void |
yawChanged(Camera camera,
AngleF yaw)
Called by a
Camera instance when its yaw has changed. |
enter, exit, getCanvasHeight, getCanvasWidth, getFPSCounter, getKernelHeight, getKernelWidth, getMouseX, getMouseY, hasEntered, hasRequestedToExit, isCursorHidden, isKeyPressed, isKeyPressed, isKeyPressed, isMouseDragging, isMouseMoving, isMouseRecentering, leave, setCanvasHeight, setCanvasWidth, setCursorHidden, setKernelHeight, setKernelWidth, setMouseRecentering, start
public DayflowerApplication()
TestApplication
instance.public void init()
TestApplication
instance.init
in class javafx.application.Application
public void pitchChanged(Camera camera, AngleF pitch)
Camera
instance when its pitch has changed.pitchChanged
in interface CameraObserver
camera
- the Camera
that called this methodpitch
- the new pitchpublic void yawChanged(Camera camera, AngleF yaw)
Camera
instance when its yaw has changed.yawChanged
in interface CameraObserver
camera
- the Camera
that called this methodyaw
- the new yawpublic static void main(java.lang.String[] args)
args
- the arguments to this programprotected void configureMenuBar(javafx.scene.control.MenuBar menuBar)
MenuBar
can be configured.configureMenuBar
in class AbstractApplication
menuBar
- the MenuBar
to configureprotected void configurePixels(byte[] pixels)
configurePixels
in class AbstractApplication
pixels
- a byte
array with pixel dataprotected void configureStage(javafx.stage.Stage stage)
Stage
can be configured.configureStage
in class AbstractApplication
stage
- the primary Stage
to configureprotected void configureStatusBar(javafx.scene.layout.HBox hBox)
configureStatusBar
in class AbstractApplication
hBox
- a HBox
that acts as a status barprotected void configureTabPane(javafx.scene.control.TabPane tabPane)
TabPane
can be configured.configureTabPane
in class AbstractApplication
tabPane
- the TabPane
to configureprotected void onExit()
DayflowerApplication
is finally exiting.onExit
in class AbstractApplication
protected void onMouseDragged(float x, float y)
onMouseDragged
in class AbstractApplication
x
- the new X-coordinatey
- the new Y-coordinateprotected void onMouseMoved(float x, float y)
onMouseMoved
in class AbstractApplication
x
- the new X-coordinatey
- the new Y-coordinateprotected void render()
render
in class AbstractApplication
protected void update()
update
in class AbstractApplication