Page Summary
-
HeadMountedDisplayencapsulates parameters for a head-mounted stereoscopic display, including screen and viewer details. -
It provides methods to access screen and GVR viewer parameters.
-
Objects can be created using provided screen and viewer parameters or by copying an existing
HeadMountedDisplayobject. -
It includes a method for comparing instances for equality.
Encapsulates the parameters describing a head mounted stereoscopic display composed of a screen and a GVR-compatible viewer holding it.
Public Constructors
|
HeadMountedDisplay(ScreenParams screenParams, GvrViewerParams gvrViewerParams)
Creates a new head mounted display object with the provided objects.
|
|
|
HeadMountedDisplay(HeadMountedDisplay hmd)
Creates a new head mounted display object by copying the contents of another.
|
Public Methods
| boolean | |
| GvrViewerParams |
getGvrViewerParams()
Returns the parameters describing the GVR viewer.
|
| ScreenParams |
getScreenParams()
Returns the parameters describing the screen.
|
Inherited Methods
Public Constructors
public HeadMountedDisplay (ScreenParams screenParams, GvrViewerParams gvrViewerParams)
Creates a new head mounted display object with the provided objects.
Parameters
| screenParams | Screen params to use. |
|---|---|
| gvrViewerParams | GVR viewer params to use. |
public HeadMountedDisplay (HeadMountedDisplay hmd)
Creates a new head mounted display object by copying the contents of another.
Parameters
| hmd | Head mounted display object to copy from. |
|---|
Public Methods
public boolean equals (Object other)
Compares this instance with the specified object and indicates if they are equal.
Parameters
| other | The object to compare this instance with. |
|---|
Returns
trueif the objects are equal,falseotherwise.
public GvrViewerParams getGvrViewerParams ()
Returns the parameters describing the GVR viewer.
Returns
- The parameters describing the GVR viewer.
public ScreenParams getScreenParams ()
Returns the parameters describing the screen.
Returns
- The parameters describing the screen.