Goblin - A Platform for 3D AR and VR Applications

Camera Members

Camera overview

Public Static Fields

UpDirection 

Protected Static Methods

MapKey Maps NativeMethods.WindowMessage.Key* msg to a camera key

Public Instance Properties

EyeLocationReturns the location of the eye
IsBeingDraggedIs the camera being 'dragged' at all?
IsMouseLeftButtonDownIs the left mouse button down
IsMouseMiddleButtonDownIs the middle mouse button down
IsMouseRightButtonDownIs the right mouse button down
IsPositionMovementEnabledIs position movement enabled
LookAtPointReturns the look at point of the camera
ProjectionMatrixReturns the projection transformation matrix
ViewMatrixReturns the view transformation matrix

Public Instance Methods

Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
FrameMove Abstract method to control camera during frame move
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the current instance.
HandleMessages Call this from your message proc so this class can handle window messages
Reset Reset the camera's position back to the default
SetProjectionParameters Calculates the projection matrix based on input params
SetViewParameters Client can call this to change the position and direction of camera
ToString (inherited from Object) Returns a String that represents the current Object.

Protected Instance Constructors

Camera Constructor Constructor for the base camera class (Sets up camera defaults)

Protected Instance Fields

aspectRatio 
cameraPitchAngle 
cameraYawAngle 
currentButtonMask 
defaultEye 
defaultLookAt 
dragRectangle 
dragTimer 
eye 
farPlane 
fieldOfView 
framesToSmoothMouseData 
isClipToBoundary 
isEnablePositionMovement 
isEnableYAxisMovement 
isInvertPitch 
isMouseLButtonDown 
isMouseMButtonDown 
isMouseRButtonDown 
isMovementDrag 
isResetCursorAfterMove 
keys 
lastMousePosition 
lookAt 
maxBoundary 
minBoundary 
mouseDelta 
mouseWheelDelta 
moveScaler 
nearPlane 
projMatrix 
rotationScaler 
rotationVelocity 
totalDragTimeToZero 
velocity 
velocityDrag 
viewMatrix 

Protected Instance Methods

ConstrainToBoundary Clamps V to lie inside boundaries
Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.
UpdateMouseDelta Figure out the mouse delta based on mouse movement
UpdateVelocity 

See Also

Camera Class | Microsoft.Samples.DirectX.UtilityToolkit Namespace