Goblin - A Platform for 3D AR and VR Applications

ModelViewerCamera Members

ModelViewerCamera overview

Public Instance Constructors

ModelViewerCamera Constructor Creates new instance of the model viewer camera

Public Instance Properties

EyeLocation (inherited from Camera)Returns the location of the eye
IsAttachedToModelIs the camera attached to a model
IsBeingDragged (inherited from Camera)Is the camera being 'dragged' at all?
IsMouseLeftButtonDown (inherited from Camera)Is the left mouse button down
IsMouseMiddleButtonDown (inherited from Camera)Is the middle mouse button down
IsMouseRightButtonDown (inherited from Camera)Is the right mouse button down
IsPositionMovementEnabled (inherited from Camera)Is position movement enabled
LookAtPoint (inherited from Camera)Returns the look at point of the camera
MaximumRadiusThe maximum radius
MinimumRadiusThe minimum radius
ProjectionMatrix (inherited from Camera)Returns the projection transformation matrix
ViewMatrix (inherited from Camera)Returns the view transformation matrix
WorldMatrixGets the world matrix

Public Instance Methods

Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
FrameMove 
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
SetButtonMasksSets button masks
SetIsPitchLimitedSets whether the pitch is limited or not
SetModelCenterSets the model's center
SetProjectionParameters (inherited from Camera) Calculates the projection matrix based on input params
SetRadiusOverloaded. Sets radius
SetViewParameters Override for setting the view parameters
SetViewQuatSets the view quat
SetWindowOverloaded. Sets arcball window
SetWorldQuatSets the world quat
ToString (inherited from Object) Returns a String that represents the current Object.

Protected Instance Fields

aspectRatio (inherited from Camera) 
attachCameraToModel 
cameraPitchAngle (inherited from Camera) 
cameraYawAngle (inherited from Camera) 
currentButtonMask (inherited from Camera) 
defaultEye (inherited from Camera) 
defaultLookAt (inherited from Camera) 
defaultRadius 
dragRectangle (inherited from Camera) 
dragTimer (inherited from Camera) 
eye (inherited from Camera) 
farPlane (inherited from Camera) 
fieldOfView (inherited from Camera) 
framesToSmoothMouseData (inherited from Camera) 
isClipToBoundary (inherited from Camera) 
isEnablePositionMovement (inherited from Camera) 
isEnableYAxisMovement (inherited from Camera) 
isInvertPitch (inherited from Camera) 
isMouseLButtonDown (inherited from Camera) 
isMouseMButtonDown (inherited from Camera) 
isMouseRButtonDown (inherited from Camera) 
isMovementDrag (inherited from Camera) 
isPitchLimited 
isResetCursorAfterMove (inherited from Camera) 
keys (inherited from Camera) 
lastCameraRotation 
lastModelRotation 
lastMousePosition (inherited from Camera) 
lookAt (inherited from Camera) 
maxBoundary (inherited from Camera) 
maxRadius 
minBoundary (inherited from Camera) 
minRadius 
modelCenter 
modelRotation 
mouseDelta (inherited from Camera) 
mouseWheelDelta (inherited from Camera) 
moveScaler (inherited from Camera) 
nearPlane (inherited from Camera) 
projMatrix (inherited from Camera) 
radius 
rotateCameraButtonMask 
rotateModelButtonMask 
rotationScaler (inherited from Camera) 
rotationVelocity (inherited from Camera) 
totalDragTimeToZero (inherited from Camera) 
velocity (inherited from Camera) 
velocityDrag (inherited from Camera) 
viewArcball 
viewMatrix (inherited from Camera) 
world 
worldArcball 
zoomButtonMask 

Protected Instance Methods

ConstrainToBoundary (inherited from Camera) 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 (inherited from Camera) Figure out the mouse delta based on mouse movement
UpdateVelocity (inherited from Camera) 

See Also

ModelViewerCamera Class | Microsoft.Samples.DirectX.UtilityToolkit Namespace