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.ProjectionModeNested classes/interfaces inherited from interface heronarts.lx.LXSerializable
LXSerializable.Utils -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal UIAxesfinal UIGridstatic final intfinal UIModelMeshesfinal UINormalizationBoundsfinal UIPointCloudfinal UISoundStageFields 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
ConstructorsConstructorDescriptionUIPreviewWindow(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 TypeMethodDescriptionvoiddispose()voidload(LX lx, JsonObject object) Restores this instance from a JSON objectprotected voidonMousePressed(MouseEvent mouseEvent, float mx, float my) Subclasses override to receive mouse eventsvoidsave(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, getRadius, getViewMatrix, getWidth, getX, getY, onKeyPressed, onMouseDragged, onMouseScroll, removeComponent, removeMovementListener, setCamera, setCameraAcceleration, setCameraVelocity, setCenter, setMaxRadius, setMinRadius, setPerspective, setPhi, setPosition, setRadius, setRadiusBounds, setRect, setRotationAcceleration, setRotationVelocity, setSize, setThetaMethods inherited from class heronarts.glx.ui.UIObject
addListener, addListener, addLoopTask, addLoopTask, blur, bringToFront, contains, focus, getDescription, getFocusedChild, getLX, getParent, getUI, hasDirectFocus, hasFocus, isVisible, isVisible, loop, onBlur, onFocus, onUIResize, removeLoopTask, requireUIThread, setConsumeMousePress, setDebugId, setDescription, setMouseCursor, setVisible, toggleVisible, toStringMethods inherited from class heronarts.glx.ui.UIEventHandler
onGamepadAxisChanged, onGamepadButtonPressed, onGamepadButtonReleased, onKeyReleased, onMouseMoved, onMouseOut, onMouseOver, onMouseReleased
-
Field Details
-
MIN_HEIGHT
public static final int MIN_HEIGHT- See Also:
-
modelMeshes
-
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:UIEventHandlerSubclasses override to receive mouse events- Overrides:
onMousePressedin classUI3dContext- Parameters:
mouseEvent- Mouse eventmx- x-coordinatemy- y-coordinate
-
dispose
public void dispose()- Overrides:
disposein classUI3dContext
-
save
Description copied from interface:LXSerializableSerializes this instance into the JSON object- Specified by:
savein interfaceLXSerializable- Overrides:
savein classUI3dContext- Parameters:
lx- LX instanceobject- Object to serialize into
-
load
Description copied from interface:LXSerializableRestores this instance from a JSON object- Specified by:
loadin interfaceLXSerializable- Overrides:
loadin classUI3dContext- Parameters:
lx- LX instanceobject- Object to deserialize
-