Google cardBoard Android API (十):HeadMountedDisplay

来源:互联网 发布:vb 双引号转义字符 编辑:程序博客网 时间:2024/06/10 01:57
public class HeadMountedDisplay

Encapsulates the parameters describing a head mounted stereoscopic display device composed of a screen and a Cardboard-compatible device holding it.

Instead of creating an instance of this class yourself, consider usingHeadMountedDisplayManager instead.

Public Constructors

HeadMountedDisplay(ScreenParams screenParams, CardboardDeviceParams cardboardDevice)
HeadMountedDisplay(HeadMountedDisplay hmd)

Public Methods

boolean
equals(Object other)
CardboardDeviceParams
getCardboardDeviceParams()
ScreenParams
getScreenParams()
void
setCardboardDeviceParams(CardboardDeviceParams cardboardDeviceParams)
void
setScreenParams(ScreenParams screen)

Inherited Methods

Public Constructors

public HeadMountedDisplay (ScreenParams screenParams, CardboardDeviceParamscardboardDevice)

Creates a new head mounted display object with the provided objects.

Parameters
screenParamsScreen params to use.cardboardDeviceCardboard device params to use.

public HeadMountedDisplay (HeadMountedDisplay hmd)

Creates a new head mounted display object by copying the contents of another.

Parameters
hmdHead 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
otherThe object to compare this instance with.
Returns
  • true if the objects are equal, false otherwise.

public CardboardDeviceParams getCardboardDeviceParams ()

Returns the parameters describing the Cardboard device.

Returns
  • The parameters describing the Cardboard device.

public ScreenParams getScreenParams ()

Returns the parameters describing the screen.

Returns
  • The parameters describing the screen.

public void setCardboardDeviceParams (CardboardDeviceParamscardboardDeviceParams)

Sets the parameters describing the Cardboard device.

Parameters
cardboardDeviceParamsThe parameters describing the Cardboard device.

public void setScreenParams (ScreenParams screen)

Sets the parameters describing the screen.

Parameters
screenThe parameters describing the screen.
0 0