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

Base Camera Class. More...

Inheritance diagram for visLU.Camera:
visLU.InteractiveCamera

Public Member Functions

 Camera ()
 Creates new camera instance. More...
 
virtual void Initialize ()
 Sets initial View, Projection and ViewProjection matrices for the camera. More...
 
virtual void Update ()
 Updates the View, Projection and ViewProjection matrices for the camera. More...
 

Protected Member Functions

virtual void updateView ()
 Updates the View matrix. More...
 
void updateProjection ()
 Updates the Projection matrix. More...
 

Protected Attributes

Vector3 cameraPosition
 
Vector3 cameraTarget
 
Vector3 upVector
 
Matrix worldMatrix
 
Matrix viewMatrix
 
Matrix projectionMatrix
 
Matrix viewProjectionMatrix
 
bool needUpdateView
 
bool needUpdateProjection
 
bool needUpdateViewProjection
 
Vector3 cameraInput
 

Properties

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

Base Camera Class.

Definition at line 16 of file Camera.cs.

Constructor & Destructor Documentation

visLU.Camera.Camera ( )

Creates new camera instance.

Definition at line 105 of file Camera.cs.

Member Function Documentation

virtual void visLU.Camera.Initialize ( )
virtual

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

Reimplemented in visLU.InteractiveCamera.

Definition at line 134 of file Camera.cs.

virtual void visLU.Camera.Update ( )
virtual

Updates the View, Projection and ViewProjection matrices for the camera.

Parameters
gameTime

Reimplemented in visLU.InteractiveCamera.

Definition at line 150 of file Camera.cs.

void visLU.Camera.updateProjection ( )
protected

Updates the Projection matrix.

Definition at line 180 of file Camera.cs.

virtual void visLU.Camera.updateView ( )
protectedvirtual

Updates the View matrix.

Reimplemented in visLU.InteractiveCamera.

Definition at line 169 of file Camera.cs.

Property Documentation

Vector3 visLU.Camera.CameraInput
set

Sets user input values for the camera position and orientation.

Definition at line 69 of file Camera.cs.

Vector3 visLU.Camera.CameraPosition
getset

Gets or sets camera position.

Definition at line 57 of file Camera.cs.

Vector3 visLU.Camera.CameraTarget
getset

Gets or sets position of the target for camera.

Definition at line 61 of file Camera.cs.

Vector3 visLU.Camera.CameraUpVector
getset

Gets or sets camera orientation / up vector

Definition at line 65 of file Camera.cs.

Matrix visLU.Camera.Projection
get

Gets camera projection matrix.

Definition at line 94 of file Camera.cs.

int [] visLU.Camera.SetClientSize
set

Updates the projection matrix when the application window resizes.

Definition at line 78 of file Camera.cs.

bool visLU.Camera.SetPerspectiveProjecton
set

Sets the camera to perspective or orthogonal projection

Definition at line 74 of file Camera.cs.

Matrix visLU.Camera.View
get

Gets camera view matrix.

Definition at line 90 of file Camera.cs.

Matrix visLU.Camera.ViewProjection
get

Gets camera viewProjectionMatrix = view matrix multiplied by projection matrix.

Definition at line 98 of file Camera.cs.

Matrix visLU.Camera.World
getset

Sets or gets the camera matrix, default is identity.

Definition at line 86 of file Camera.cs.


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