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, startpublic DayflowerApplication()
TestApplication instance.public void init()
TestApplication instance.init in class javafx.application.Applicationpublic void pitchChanged(Camera camera, AngleF pitch)
Camera instance when its pitch has changed.pitchChanged in interface CameraObservercamera - 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 CameraObservercamera - 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 AbstractApplicationmenuBar - the MenuBar to configureprotected void configurePixels(byte[] pixels)
configurePixels in class AbstractApplicationpixels - a byte array with pixel dataprotected void configureStage(javafx.stage.Stage stage)
Stage can be configured.configureStage in class AbstractApplicationstage - the primary Stage to configureprotected void configureStatusBar(javafx.scene.layout.HBox hBox)
configureStatusBar in class AbstractApplicationhBox - a HBox that acts as a status barprotected void configureTabPane(javafx.scene.control.TabPane tabPane)
TabPane can be configured.configureTabPane in class AbstractApplicationtabPane - the TabPane to configureprotected void onExit()
DayflowerApplication is finally exiting.onExit in class AbstractApplicationprotected void onMouseDragged(float x,
float y)
onMouseDragged in class AbstractApplicationx - the new X-coordinatey - the new Y-coordinateprotected void onMouseMoved(float x,
float y)
onMouseMoved in class AbstractApplicationx - the new X-coordinatey - the new Y-coordinateprotected void render()
render in class AbstractApplicationprotected void update()
update in class AbstractApplication