C# Class OVRCameraController, StereoAR-for-Unity

Inheritance: OVRComponent
Afficher le fichier Open project: hecomi/StereoAR-for-Unity Class Usage Examples

Méthodes publiques

Свойство Type Description
BackgroundColor Color
CallInPreRender bool
CameraRootPosition Vector3
Chromatic bool
EyeCenterPosition Vector3
FarClipPlane float
FollowOrientation Transform
LensCorrection bool
NearClipPlane float
NeckPosition Vector3
PortraitMode bool
PredictionOn bool
TrackerRotatesY bool
UsePlayerEyeHeight bool
WireMode bool

Méthodes publiques

Méthode Description
AttachGameObjectToCamera ( GameObject &gameObject ) : bool
ConfigureCameraLensCorrection ( Camera &camera ) : void
DetachGameObjectFromCamera ( GameObject &gameObject ) : bool
GetAspectRatio ( float &aspecRatio ) : void
GetCamera ( Camera &camera ) : void
GetCameraOrientation ( Quaternion &quaternion ) : bool
GetCameraOrientationEulerAngles ( Vector3 &angles ) : bool
GetCameraPosition ( Vector3 &position ) : bool
GetCameraRootPosition ( Vector3 &cameraRootPosition ) : void
GetDistortionCoefs ( float &distK0, float &distK1, float &distK2, float &distK3 ) : void
GetEyeCenterPosition ( Vector3 &eyeCenterPosition ) : void
GetIPD ( float &ipd ) : void
GetNeckPosition ( Vector3 &neckPosition ) : void
GetOrientationOffset ( Quaternion &orientationOffset ) : void
GetPlayerEyeHeight ( float &eyeHeight ) : bool
GetTrackerRotatesY ( bool &trackerRotatesY ) : void
GetVerticalFOV ( float &verticalFOV ) : void
GetYRotation ( float &yRotation ) : void
InitCameraControllerVariables ( ) : void
SetAspectRatio ( float aspectRatio ) : void
SetCameraRootPosition ( Vector3 &cameraRootPosition ) : void
SetCameras ( Camera &cameraLeft, Camera &cameraRight ) : void
SetDistortionCoefs ( float distK0, float distK1, float distK2, float distK3 ) : void
SetEyeCenterPosition ( Vector3 eyeCenterPosition ) : void
SetIPD ( float ipd ) : void
SetMaximumVisualQuality ( ) : void
SetNeckPosition ( Vector3 neckPosition ) : void
SetOrientationOffset ( Quaternion orientationOffset ) : void
SetPortraitMode ( ) : void
SetTrackerRotatesY ( bool trackerRotatesY ) : void
SetVerticalFOV ( float verticalFOV ) : void
SetYRotation ( float yRotation ) : void
UpdateCameras ( ) : void
UpdatePlayerEyeHeight ( ) : void

Private Methods

Méthode Description
Awake ( ) : void
ConfigureCamera ( Camera &camera, float distOffset, float perspOffset, float eyePositionOffset ) : bool
Start ( ) : void
Update ( ) : void

Method Details

AttachGameObjectToCamera() public méthode

public AttachGameObjectToCamera ( GameObject &gameObject ) : bool
gameObject GameObject
Résultat bool

ConfigureCameraLensCorrection() public méthode

public ConfigureCameraLensCorrection ( Camera &camera ) : void
camera Camera
Résultat void

DetachGameObjectFromCamera() public méthode

public DetachGameObjectFromCamera ( GameObject &gameObject ) : bool
gameObject GameObject
Résultat bool

GetAspectRatio() public méthode

public GetAspectRatio ( float &aspecRatio ) : void
aspecRatio float
Résultat void

GetCamera() public méthode

public GetCamera ( Camera &camera ) : void
camera Camera
Résultat void

GetCameraOrientation() public méthode

public GetCameraOrientation ( Quaternion &quaternion ) : bool
quaternion Quaternion
Résultat bool

GetCameraOrientationEulerAngles() public méthode

public GetCameraOrientationEulerAngles ( Vector3 &angles ) : bool
angles Vector3
Résultat bool

GetCameraPosition() public méthode

public GetCameraPosition ( Vector3 &position ) : bool
position Vector3
Résultat bool

GetCameraRootPosition() public méthode

public GetCameraRootPosition ( Vector3 &cameraRootPosition ) : void
cameraRootPosition Vector3
Résultat void

GetDistortionCoefs() public méthode

public GetDistortionCoefs ( float &distK0, float &distK1, float &distK2, float &distK3 ) : void
distK0 float
distK1 float
distK2 float
distK3 float
Résultat void

GetEyeCenterPosition() public méthode

public GetEyeCenterPosition ( Vector3 &eyeCenterPosition ) : void
eyeCenterPosition Vector3
Résultat void

GetIPD() public méthode

public GetIPD ( float &ipd ) : void
ipd float
Résultat void

GetNeckPosition() public méthode

public GetNeckPosition ( Vector3 &neckPosition ) : void
neckPosition Vector3
Résultat void

GetOrientationOffset() public méthode

public GetOrientationOffset ( Quaternion &orientationOffset ) : void
orientationOffset Quaternion
Résultat void

GetPlayerEyeHeight() public méthode

public GetPlayerEyeHeight ( float &eyeHeight ) : bool
eyeHeight float
Résultat bool

GetTrackerRotatesY() public méthode

public GetTrackerRotatesY ( bool &trackerRotatesY ) : void
trackerRotatesY bool
Résultat void

GetVerticalFOV() public méthode

public GetVerticalFOV ( float &verticalFOV ) : void
verticalFOV float
Résultat void

GetYRotation() public méthode

public GetYRotation ( float &yRotation ) : void
yRotation float
Résultat void

InitCameraControllerVariables() public méthode

public InitCameraControllerVariables ( ) : void
Résultat void

SetAspectRatio() public méthode

public SetAspectRatio ( float aspectRatio ) : void
aspectRatio float
Résultat void

SetCameraRootPosition() public méthode

public SetCameraRootPosition ( Vector3 &cameraRootPosition ) : void
cameraRootPosition Vector3
Résultat void

SetCameras() public méthode

public SetCameras ( Camera &cameraLeft, Camera &cameraRight ) : void
cameraLeft Camera
cameraRight Camera
Résultat void

SetDistortionCoefs() public méthode

public SetDistortionCoefs ( float distK0, float distK1, float distK2, float distK3 ) : void
distK0 float
distK1 float
distK2 float
distK3 float
Résultat void

SetEyeCenterPosition() public méthode

public SetEyeCenterPosition ( Vector3 eyeCenterPosition ) : void
eyeCenterPosition Vector3
Résultat void

SetIPD() public méthode

public SetIPD ( float ipd ) : void
ipd float
Résultat void

SetMaximumVisualQuality() public méthode

public SetMaximumVisualQuality ( ) : void
Résultat void

SetNeckPosition() public méthode

public SetNeckPosition ( Vector3 neckPosition ) : void
neckPosition Vector3
Résultat void

SetOrientationOffset() public méthode

public SetOrientationOffset ( Quaternion orientationOffset ) : void
orientationOffset Quaternion
Résultat void

SetPortraitMode() public méthode

public SetPortraitMode ( ) : void
Résultat void

SetTrackerRotatesY() public méthode

public SetTrackerRotatesY ( bool trackerRotatesY ) : void
trackerRotatesY bool
Résultat void

SetVerticalFOV() public méthode

public SetVerticalFOV ( float verticalFOV ) : void
verticalFOV float
Résultat void

SetYRotation() public méthode

public SetYRotation ( float yRotation ) : void
yRotation float
Résultat void

UpdateCameras() public méthode

public UpdateCameras ( ) : void
Résultat void

UpdatePlayerEyeHeight() public méthode

public UpdatePlayerEyeHeight ( ) : void
Résultat void

Property Details

BackgroundColor public_oe property

public Color BackgroundColor
Résultat Color

CallInPreRender public_oe property

public bool CallInPreRender
Résultat bool

CameraRootPosition public_oe property

public Vector3 CameraRootPosition
Résultat Vector3

Chromatic public_oe property

public bool Chromatic
Résultat bool

EyeCenterPosition public_oe property

public Vector3 EyeCenterPosition
Résultat Vector3

FarClipPlane public_oe property

public float FarClipPlane
Résultat float

FollowOrientation public_oe property

public Transform FollowOrientation
Résultat Transform

LensCorrection public_oe property

public bool LensCorrection
Résultat bool

NearClipPlane public_oe property

public float NearClipPlane
Résultat float

NeckPosition public_oe property

public Vector3 NeckPosition
Résultat Vector3

PortraitMode public_oe property

public bool PortraitMode
Résultat bool

PredictionOn public_oe property

public bool PredictionOn
Résultat bool

TrackerRotatesY public_oe property

public bool TrackerRotatesY
Résultat bool

UsePlayerEyeHeight public_oe property

public bool UsePlayerEyeHeight
Résultat bool

WireMode public_oe property

public bool WireMode
Résultat bool