Package com.jme3.util
Class VRGuiManager
java.lang.Object
com.jme3.util.VRGuiManager
Deprecated.
The jme3-vr module is deprecated and will be removed in a future version (as it only supports OpenVR).
             For new Virtual Reality projects, use user libraries that provide OpenXR support.
             See Virtual Reality JME wiki section
             for more information.
A class dedicated to the management and the display of a Graphical User Interface (GUI) within a VR environment.
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionVRGuiManager(VREnvironment environment) Deprecated.Create a new GUI manager attached to the given app state.
- 
Method SummaryModifier and TypeMethodDescriptionvoidadjustGuiDistance(float adjustAmount) Deprecated.Adjust the GUI distance from the observer.Deprecated.Get the GUI canvas size.Deprecated.Get the ratio between theGUI canvas sizeand the application main windows (if available) or the screen size.floatDeprecated.Get the GUI distance from the observer.floatDeprecated.Get the GUI scale.floatDeprecated.Deprecated.Get the GUIpositioning mode.booleanDeprecated.Get if the GUI has to use curved surface.booleanDeprecated.Get if the GUI has to be displayed even if it is behind objects.booleanDeprecated.voidDeprecated.Inform this manager that it has to position the GUI.voidpositionGuiNow(float tpf) Deprecated.Position the GUI without delay.voidsetCurvedSurface(boolean set) Deprecated.Set if the GUI has to use curved surface.voidsetGuiDistance(float newGuiDistance) Deprecated.Set the GUI distance from the observer.voidsetGuiOverdraw(boolean set) Deprecated.Set if the GUI has to be displayed even if it is behind objects.voidsetGuiScale(float scale) Deprecated.Set the GUI scale.voidsetPositioningElasticity(float elastic) Deprecated.Makes auto GUI positioning happen not immediately, but like an elastic connected to the headset.voidDeprecated.Set the GUIpositioning mode.voidDeprecated.Set up the GUI.voidsetWantsReposition(boolean wantsReposition) Deprecated.voidDeprecated.Update the GUI geometric state.
- 
Field Details- 
wantsRepositionprotected boolean wantsRepositionDeprecated.
 
- 
- 
Constructor Details- 
VRGuiManagerDeprecated.Create a new GUI manager attached to the given app state.- Parameters:
- environment- the VR environment to which this manager is attached to.
 
 
- 
- 
Method Details- 
isWantsRepositionpublic boolean isWantsReposition()Deprecated.
- 
setWantsRepositionpublic void setWantsReposition(boolean wantsReposition) Deprecated.
- 
setPositioningElasticitypublic void setPositioningElasticity(float elastic) Deprecated.Makes auto GUI positioning happen not immediately, but like an elastic connected to the headset. Setting to 0 disables (default) Higher settings make it track the headset quicker.- Parameters:
- elastic- amount of elasticity
 
- 
getPositioningElasticitypublic float getPositioningElasticity()Deprecated.
- 
getPositioningModeDeprecated.Get the GUIpositioning mode.- Returns:
- the GUI positioning mode.
- See Also:
 
- 
setPositioningModeDeprecated.Set the GUIpositioning mode.- Parameters:
- mode- the GUI- positioning mode.
- See Also:
 
- 
getCanvasSizeDeprecated.Get the GUI canvas size. This method return the size in pixels of the GUI available area within the VR view.- Returns:
- the GUI canvas size. This method return the size in pixels of the GUI available area within the VR view.
 
- 
getCanvasToWindowRatioDeprecated.Get the ratio between theGUI canvas sizeand the application main windows (if available) or the screen size.- Returns:
- the ratio between the GUI canvas sizeand the application main windows (if available).
- See Also:
 
- 
positionGuipublic void positionGui()Deprecated.Inform this manager that it has to position the GUI.
- 
updateGuiQuadGeometricStatepublic void updateGuiQuadGeometricState()Deprecated.Update the GUI geometric state. This method should be called after GUI modification.
- 
positionGuiNowpublic void positionGuiNow(float tpf) Deprecated.Position the GUI without delay.- Parameters:
- tpf- the time per frame.
 
- 
getGuiDistancepublic float getGuiDistance()Deprecated.Get the GUI distance from the observer.- Returns:
- the GUI distance from the observer.
- See Also:
 
- 
setGuiDistancepublic void setGuiDistance(float newGuiDistance) Deprecated.Set the GUI distance from the observer.- Parameters:
- newGuiDistance- the GUI distance from the observer.
- See Also:
 
- 
getGUIScalepublic float getGUIScale()Deprecated.Get the GUI scale.- Returns:
- the GUI scale.
- See Also:
 
- 
setGuiScalepublic void setGuiScale(float scale) Deprecated.Set the GUI scale.- Parameters:
- scale- the GUI scale.
- See Also:
 
- 
adjustGuiDistancepublic void adjustGuiDistance(float adjustAmount) Deprecated.Adjust the GUI distance from the observer. This method increment / decrement theGUI distanceby the given value.- Parameters:
- adjustAmount- the increment (if positive) / decrement (if negative) value of the GUI distance.
 
- 
setupGuiDeprecated.Set up the GUI.- Parameters:
- leftCam- the left-eye camera.
- rightCam- the right-eye camera.
- left- the left-eye viewport.
- right- the right-eye viewport.
 
- 
isCurverSurfacepublic boolean isCurverSurface()Deprecated.Get if the GUI has to use curved surface.- Returns:
- trueif the GUI has to use curved surface and- falseotherwise.
- See Also:
 
- 
setCurvedSurfacepublic void setCurvedSurface(boolean set) Deprecated.Set if the GUI has to use curved surface.- Parameters:
- set-- trueif the GUI has to use curved surface and- falseotherwise.
- See Also:
 
- 
isGuiOverdrawpublic boolean isGuiOverdraw()Deprecated.Get if the GUI has to be displayed even if it is behind objects.- Returns:
- trueif the GUI has to use curved surface and- falseotherwise.
- See Also:
 
- 
setGuiOverdrawpublic void setGuiOverdraw(boolean set) Deprecated.Set if the GUI has to be displayed even if it is behind objects.- Parameters:
- set-- trueif the GUI has to use curved surface and- falseotherwise.
- See Also:
 
 
-