Unplugged Viz
High-performance scientific visualization isn't just for the workstation anymore
|
A control for positioning the camera within a TumbleView. The default implementation can be used to provide straightforward control of the camera; alternatively, More...
Public Member Functions | |
virtual Matrix | CreateModelMatrix () |
Create the model matrix. The default implementation is shown below. { var t = Matrix.CreateTranslation(Translation); var s = Matrix.CreateScale(ZoomScale); var r = CreateRotationMatrix(); return t * s * r; } CreateRotationMatrix is defined as follows: More... | |
virtual Matrix | CreateViewProjectionMatrix () |
Create the view projection matrix. The default implementation is shown below. { var view = Matrix.CreateLookAt(CameraPosition, Vector3.Zero, Vector3.Up); var perspective = Matrix.CreatePerspectiveFieldOfView(FOV, AspectRatio, NearPlane, FarPlane); return view * perspective; } | |
virtual Matrix | CreateModelViewProjectionMatrix () |
Create the model view projection. The default implementation is shown below. { var viewProjection = CreateViewProjectionMatrix(); var model = CreateModelMatrix(); return model * viewProjection; } | |
Properties | |
Quaternion | Orientation [get, set] |
Gets or sets the orientation of the TumbleView to which the CameraControl is attached. More... | |
Quaternion | Roll [get, set] |
Gets or sets the roll of the camera. More... | |
Vector3 | Translation [get, set] |
Gets or sets the translation of the TumbleView to which the CameraControl is attached. More... | |
Vector3 | CameraPosition [get, set] |
Gets or sets the camera position. More... | |
float | ZoomScale [get, set] |
Gets or sets the zoom scale of the camera. More... | |
A control for positioning the camera within a TumbleView. The default implementation can be used to provide straightforward control of the camera; alternatively,
Inherits BindableObject.
|
virtual |
Create the model matrix. The default implementation is shown below.
CreateRotationMatrix is defined as follows:
|
virtual |
Create the model view projection. The default implementation is shown below.
|
virtual |
Create the view projection matrix. The default implementation is shown below.
|
getset |
Gets or sets the camera position.
|
getset |
Gets or sets the orientation of the TumbleView to which the CameraControl is attached.
|
getset |
Gets or sets the roll of the camera.
|
getset |
Gets or sets the translation of the TumbleView to which the CameraControl is attached.
|
getset |
Gets or sets the zoom scale of the camera.