VIS2 SS2013 CVD DVR
 All Classes Namespaces Functions Enumerations Properties
Public Member Functions | Protected Member Functions | Protected Attributes | Properties | List of all members
visLU.InteractiveCamera Class Reference

Interactive Camera class. More...

Inheritance diagram for visLU.InteractiveCamera:
visLU.Camera

Public Member Functions

 InteractiveCamera ()
 Creates new interactive camera instance. More...
 
override void Initialize ()
 Sets initial View, Projection and ViewProjection matrices for the camera. More...
 
override void Update ()
 Updates the camera position and oriantation according to the mouse input. Updates the View matrix and the ViewProjection matrix. More...
 
- Public Member Functions inherited from visLU.Camera
 Camera ()
 Creates new camera instance. More...
 

Protected Member Functions

override void updateView ()
 Updates the View matrix. More...
 
- Protected Member Functions inherited from visLU.Camera
void updateProjection ()
 Updates the Projection matrix. More...
 

Protected Attributes

Quaternion cameraRotation = new Quaternion(0, 0, 0, 1)
 
- Protected Attributes inherited from visLU.Camera
Vector3 cameraPosition
 
Vector3 cameraTarget
 
Vector3 upVector
 
Matrix worldMatrix
 
Matrix viewMatrix
 
Matrix projectionMatrix
 
Matrix viewProjectionMatrix
 
bool needUpdateView
 
bool needUpdateProjection
 
bool needUpdateViewProjection
 
Vector3 cameraInput
 

Properties

Quaternion CameraRotation [get, set]
 Gets and sets camera rotation. More...
 
- Properties inherited from visLU.Camera
Vector3 CameraPosition [get, set]
 Gets or sets camera position. More...
 
Vector3 CameraTarget [get, set]
 Gets or sets position of the target for camera. More...
 
Vector3 CameraUpVector [get, set]
 
Vector3 CameraInput [set]
 Sets user input values for the camera position and orientation. More...
 
bool SetPerspectiveProjecton [set]
 Sets the camera to perspective or orthogonal projection More...
 
int[] SetClientSize [set]
 Updates the projection matrix when the application window resizes. More...
 
Viewport Viewport [get, set]
 
Matrix World [get, set]
 Sets or gets the camera matrix, default is identity. More...
 
Matrix View [get]
 Gets camera view matrix. More...
 
Matrix Projection [get]
 Gets camera projection matrix. More...
 
Matrix ViewProjection [get]
 Gets camera viewProjectionMatrix = view matrix multiplied by projection matrix. More...
 

Detailed Description

Interactive Camera class.

Definition at line 16 of file InteractiveCamera.cs.

Constructor & Destructor Documentation

visLU.InteractiveCamera.InteractiveCamera ( )

Creates new interactive camera instance.

Definition at line 36 of file InteractiveCamera.cs.

Member Function Documentation

override void visLU.InteractiveCamera.Initialize ( )
virtual

Sets initial View, Projection and ViewProjection matrices for the camera.

Reimplemented from visLU.Camera.

Definition at line 48 of file InteractiveCamera.cs.

override void visLU.InteractiveCamera.Update ( )
virtual

Updates the camera position and oriantation according to the mouse input. Updates the View matrix and the ViewProjection matrix.

Parameters
gameTime

Reimplemented from visLU.Camera.

Definition at line 64 of file InteractiveCamera.cs.

override void visLU.InteractiveCamera.updateView ( )
protectedvirtual

Updates the View matrix.

Reimplemented from visLU.Camera.

Definition at line 91 of file InteractiveCamera.cs.

Property Documentation

Quaternion visLU.InteractiveCamera.CameraRotation
getset

Gets and sets camera rotation.

Definition at line 28 of file InteractiveCamera.cs.


The documentation for this class was generated from the following file: