Package heronarts.lx.studio.ui.preview
Class UIPreviewWindow
java.lang.Object
heronarts.glx.ui.UIEventHandler
heronarts.glx.ui.UIObject
heronarts.glx.ui.UI3dContext
heronarts.lx.studio.ui.preview.UIPreviewWindow
- All Implemented Interfaces:
UILayer
,UITabFocus
,LXLoopTask
,LXSerializable
-
Nested Class Summary
Nested classes/interfaces inherited from class heronarts.glx.ui.UI3dContext
UI3dContext.Camera, UI3dContext.MouseMode, UI3dContext.MovementListener, UI3dContext.ProjectionMode
Nested classes/interfaces inherited from interface heronarts.lx.LXSerializable
LXSerializable.Utils
-
Field Summary
Modifier and TypeFieldDescriptionfinal UIAxes
final UIGrid
final UINormalizationBounds
final UIPointCloud
final UISoundStage
Fields inherited from class heronarts.glx.ui.UI3dContext
animation, animationProgress, animationTime, camera, cameraAcceleration, cameraVelocity, cue, depth, focusCamera, mouseMode, NUM_CAMERA_POSITIONS, perspective, projection, rotationAcceleration, rotationVelocity, view
-
Constructor Summary
ConstructorDescriptionUIPreviewWindow
(LXStudio.UI ui, LXStudio lx, float x, float y, float w, float h) UIPreviewWindow
(LXStudio.UI ui, LXStudio lx, float x, float y, float w, float h, UIPointCloud global) -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
void
load
(LX lx, JsonObject object) Restores this instance from a JSON objectprotected void
onMousePressed
(MouseEvent mouseEvent, float mx, float my) Subclasses override to receive mouse eventsvoid
save
(LX lx, JsonObject object) Serializes this instance into the JSON objectMethods inherited from class heronarts.glx.ui.UI3dContext
addComponent, addMovementListener, clearCamera, draw, getCenter, getEye, getHeight, getProjectionMatrix, getViewMatrix, getWidth, getX, getY, onKeyPressed, onMouseDragged, onMouseScroll, removeComponent, removeMovementListener, setCamera, setCameraAcceleration, setCameraVelocity, setCenter, setMaxRadius, setMinRadius, setPerspective, setPhi, setPosition, setRadius, setRadiusBounds, setRect, setRotationAcceleration, setRotationVelocity, setSize, setTheta
Methods inherited from class heronarts.glx.ui.UIObject
addListener, addListener, addLoopTask, blur, bringToFront, contains, focus, getDescription, getFocusedChild, getLX, getParent, getUI, hasDirectFocus, hasFocus, isVisible, loop, onBlur, onFocus, onUIResize, removeLoopTask, requireUIThread, setConsumeMousePress, setDebugId, setDescription, setVisible, toggleVisible, toString
Methods inherited from class heronarts.glx.ui.UIEventHandler
onKeyReleased, onMouseMoved, onMouseOut, onMouseOver, onMouseReleased
-
Field Details
-
pointCloud
-
grid
-
axes
-
soundStage
-
normalizationBounds
-
-
Constructor Details
-
UIPreviewWindow
public UIPreviewWindow(LXStudio.UI ui, LXStudio lx, float x, float y, float w, float h) throws IOException - Throws:
IOException
-
UIPreviewWindow
public UIPreviewWindow(LXStudio.UI ui, LXStudio lx, float x, float y, float w, float h, UIPointCloud global) throws IOException - Throws:
IOException
-
-
Method Details
-
onMousePressed
Description copied from class:UIEventHandler
Subclasses override to receive mouse events- Overrides:
onMousePressed
in classUI3dContext
- Parameters:
mouseEvent
- Mouse eventmx
- x-coordinatemy
- y-coordinate
-
dispose
public void dispose()- Overrides:
dispose
in classUI3dContext
-
save
Description copied from interface:LXSerializable
Serializes this instance into the JSON object- Specified by:
save
in interfaceLXSerializable
- Overrides:
save
in classUI3dContext
- Parameters:
lx
- LX instanceobject
- Object to serialize into
-
load
Description copied from interface:LXSerializable
Restores this instance from a JSON object- Specified by:
load
in interfaceLXSerializable
- Overrides:
load
in classUI3dContext
- Parameters:
lx
- LX instanceobject
- Object to deserialize
-