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, wait
initialize, postRender, render, update
protected 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()
VRViewManager
camera
attached to the left eye.getLeftCamera
in interface VRViewManager
camera
attached to the left eye.VRViewManager.getRightCamera()
public Camera getRightCamera()
VRViewManager
camera
attached to the right eye.getRightCamera
in interface VRViewManager
camera
attached to the right eye.VRViewManager.getLeftCamera()
public ViewPort getLeftViewPort()
VRViewManager
viewport
attached to the left eye.getLeftViewPort
in interface VRViewManager
viewport
attached to the left eye.VRViewManager.getRightViewPort()
public ViewPort getRightViewPort()
VRViewManager
viewport
attached to the right eye.getRightViewPort
in interface VRViewManager
viewport
attached to the right eye.VRViewManager.getLeftViewPort()
public ViewPort getMirrorViewPort()
view port
attached to the mirror display.getMirrorViewPort
in interface VRViewManager
VRViewManager.getLeftViewPort()
,
VRViewManager.getRightViewPort()
public Texture2D getLeftTexture()
VRViewManager
getLeftTexture
in interface VRViewManager
VRViewManager.getRightTexture()
public Texture2D getRightTexture()
VRViewManager
getRightTexture
in interface VRViewManager
VRViewManager.getLeftTexture()
public Texture2D getLeftDepth()
VRViewManager
getLeftDepth
in interface VRViewManager
VRViewManager.getRightTexture()
public Texture2D getRightDepth()
VRViewManager
getRightDepth
in interface VRViewManager
VRViewManager.getLeftTexture()
public FilterPostProcessor getLeftPostProcessor()
VRViewManager
filter post processor
attached to the left eye.getLeftPostProcessor
in interface VRViewManager
filter post processor
attached to the left eye.VRViewManager.getRightPostProcessor()
public FilterPostProcessor getRightPostProcessor()
VRViewManager
filter post processor
attached to the right eye.getRightPostProcessor
in interface VRViewManager
filter post processor
attached to the right eye.VRViewManager.getLeftPostProcessor()
public float getResolutionMuliplier()
VRViewManager
getResolutionMuliplier
in interface VRViewManager
VRViewManager.setResolutionMultiplier(float)
public void setResolutionMultiplier(float resMult)
VRViewManager
setResolutionMultiplier
in interface VRViewManager
resMult
- the resolution multiplier.VRViewManager.getResolutionMuliplier()
public float getHeightAdjustment()
VRViewManager
getHeightAdjustment
in interface VRViewManager
VRViewManager.setHeightAdjustment(float)
public void setHeightAdjustment(float amount)
VRViewManager
setHeightAdjustment
in interface VRViewManager
amount
- the height adjustment to apply to the cameras before rendering.VRViewManager.getHeightAdjustment()
public VREnvironment getVREnvironment()
VRViewManager
VR environment
to which the view manager is attached.getVREnvironment
in interface VRViewManager
VR environment
to which the view manager is attached.public void moveScreenProcessingToEyes()
moveScreenProcessingToEyes
in interface VRViewManager
public void syncScreenProcessing(ViewPort sourceViewport)
processors
.sourceViewport
- the viewport
that contains the processors to use.