HeadMountedDisplay

public class HeadMountedDisplay

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
equals(Object other)
Compares this instance with the specified object and indicates if they are equal.
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
  • true if the objects are equal, false otherwise.

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.