VrPanoramaView.Options

public static class VrPanoramaView.Options

Configure the VrPanoramaView's parameters for loading images.

Constants

int TYPE_MONO Image contains a single equirectangular panorama.
int TYPE_STEREO_OVER_UNDER Image contains a pair of equally-sized equirectangular vertically-stacked panoramas.

Fields

public int inputType Should be one of the TYPE_* constants.

Public Constructors

Inherited Methods

Constants

public static final int TYPE_MONO

Image contains a single equirectangular panorama.

The image is expected to cover 360 degrees along its horizontal axis, while the vertical range is computed according to the image's aspect ratio. For example, if a 1000x250 pixels image is given, the panorama will cover 360x90 degrees with the vertical range being -45 to +45 degrees.

Constant Value: 1

public static final int TYPE_STEREO_OVER_UNDER

Image contains a pair of equally-sized equirectangular vertically-stacked panoramas. The top image is displayed to the left eye and the bottom image is displayed to the right eye.

The image is expected to cover 360 degrees along its horizontal axis, while the vertical range is computed according to the image's aspect ratio. For example, if a 1000x500 pixels image is given (i.e 1000x250 pixels for each eye), the panorama will cover 360x90 degrees with the vertical range being -45 to +45 degrees.

Constant Value: 2

Fields

public int inputType

Should be one of the TYPE_* constants. {#TYPE_MONO} by default.

Public Constructors

public VrPanoramaView.Options ()