public abstract class AbstractVRViewManager extends java.lang.Object implements VRViewManager
| Modifier and Type | Field and Description |
|---|---|
protected VREnvironment |
environment |
protected Camera |
leftCamera |
protected Texture2D |
leftEyeDepth |
protected Texture2D |
leftEyeTexture |
protected FilterPostProcessor |
leftPostProcessor |
protected ViewPort |
leftViewPort |
protected ViewPort |
mirrorViewPort |
protected Camera |
rightCamera |
protected Texture2D |
rightEyeDepth |
protected Texture2D |
rightEyeTexture |
protected FilterPostProcessor |
rightPostProcessor |
protected ViewPort |
rightViewPort |
LEFT_VIEW_NAME, RIGHT_VIEW_NAME| Constructor and Description |
|---|
AbstractVRViewManager() |
| Modifier and Type | Method and Description |
|---|---|
float |
getHeightAdjustment()
Get the height adjustment to apply to the cameras before rendering.
|
Camera |
getLeftCamera()
Get the
camera attached to the left eye. |
Texture2D |
getLeftDepth()
Get the depth texture attached to the left eye.
|
FilterPostProcessor |
getLeftPostProcessor()
Get the
filter post processor attached to the left eye. |
Texture2D |
getLeftTexture()
Get the texture attached to the left eye.
|
ViewPort |
getLeftViewPort()
Get the
viewport attached to the left eye. |
ViewPort |
getMirrorViewPort()
Get the
view port attached to the mirror display. |
float |
getResolutionMuliplier()
Get the resolution multiplier.
|
Camera |
getRightCamera()
Get the
camera attached to the right eye. |
Texture2D |
getRightDepth()
Get the depth texture attached to the right eye.
|
FilterPostProcessor |
getRightPostProcessor()
Get the
filter post processor attached to the right eye. |
Texture2D |
getRightTexture()
Get the texture attached to the right eye.
|
ViewPort |
getRightViewPort()
Get the
viewport attached to the right eye. |
VREnvironment |
getVREnvironment()
Get the
VR environment to which the view manager is attached. |
void |
moveScreenProcessingToEyes()
Handles moving filters from the main view to each eye
|
void |
setHeightAdjustment(float amount)
Set the height adjustment to apply to the cameras before rendering.
|
void |
setResolutionMultiplier(float resMult)
Set the resolution multiplier.
|
void |
syncScreenProcessing(ViewPort sourceViewport)
Sets the two views to use the list of
processors. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitialize, postRender, render, updateprotected VREnvironment environment
protected Camera leftCamera
protected ViewPort leftViewPort
protected FilterPostProcessor leftPostProcessor
protected Texture2D leftEyeTexture
protected Texture2D leftEyeDepth
protected Camera rightCamera
protected ViewPort rightViewPort
protected FilterPostProcessor rightPostProcessor
protected Texture2D rightEyeTexture
protected Texture2D rightEyeDepth
protected ViewPort mirrorViewPort
public Camera getLeftCamera()
VRViewManagercamera attached to the left eye.getLeftCamera in interface VRViewManagercamera attached to the left eye.VRViewManager.getRightCamera()public Camera getRightCamera()
VRViewManagercamera attached to the right eye.getRightCamera in interface VRViewManagercamera attached to the right eye.VRViewManager.getLeftCamera()public ViewPort getLeftViewPort()
VRViewManagerviewport attached to the left eye.getLeftViewPort in interface VRViewManagerviewport attached to the left eye.VRViewManager.getRightViewPort()public ViewPort getRightViewPort()
VRViewManagerviewport attached to the right eye.getRightViewPort in interface VRViewManagerviewport attached to the right eye.VRViewManager.getLeftViewPort()public ViewPort getMirrorViewPort()
view port attached to the mirror display.getMirrorViewPort in interface VRViewManagerVRViewManager.getLeftViewPort(),
VRViewManager.getRightViewPort()public Texture2D getLeftTexture()
VRViewManagergetLeftTexture in interface VRViewManagerVRViewManager.getRightTexture()public Texture2D getRightTexture()
VRViewManagergetRightTexture in interface VRViewManagerVRViewManager.getLeftTexture()public Texture2D getLeftDepth()
VRViewManagergetLeftDepth in interface VRViewManagerVRViewManager.getRightTexture()public Texture2D getRightDepth()
VRViewManagergetRightDepth in interface VRViewManagerVRViewManager.getLeftTexture()public FilterPostProcessor getLeftPostProcessor()
VRViewManagerfilter post processor attached to the left eye.getLeftPostProcessor in interface VRViewManagerfilter post processor attached to the left eye.VRViewManager.getRightPostProcessor()public FilterPostProcessor getRightPostProcessor()
VRViewManagerfilter post processor attached to the right eye.getRightPostProcessor in interface VRViewManagerfilter post processor attached to the right eye.VRViewManager.getLeftPostProcessor()public float getResolutionMuliplier()
VRViewManagergetResolutionMuliplier in interface VRViewManagerVRViewManager.setResolutionMultiplier(float)public void setResolutionMultiplier(float resMult)
VRViewManagersetResolutionMultiplier in interface VRViewManagerresMult - the resolution multiplier.VRViewManager.getResolutionMuliplier()public float getHeightAdjustment()
VRViewManagergetHeightAdjustment in interface VRViewManagerVRViewManager.setHeightAdjustment(float)public void setHeightAdjustment(float amount)
VRViewManagersetHeightAdjustment in interface VRViewManageramount - the height adjustment to apply to the cameras before rendering.VRViewManager.getHeightAdjustment()public VREnvironment getVREnvironment()
VRViewManagerVR environment to which the view manager is attached.getVREnvironment in interface VRViewManagerVR environment to which the view manager is attached.public void moveScreenProcessingToEyes()
moveScreenProcessingToEyes in interface VRViewManagerpublic void syncScreenProcessing(ViewPort sourceViewport)
processors.sourceViewport - the viewport that contains the processors to use.