ICamera Interface |
public interface ICamera
The ICamera type exposes the following members.
Name | Description | |
---|---|---|
AspectRatio | Gets or sets the camera's aspect ratio - calculated as viewport's width / height. | |
FarPlaneDistance | Gets or sets a value that specifies the distance from the camera of the camera's far clip plane. By default NearPlaneDistance is automatically calculated from the 3D scene bounding box and camera position. This can be disabled by manually setting the value of this property or by setting IsAutomaticFarPlaneDistanceCalculation to false. | |
Name | Gets the name of the camera | |
NearPlaneDistance | Gets or sets a value that specifies the distance from the camera of the camera's near clip plane. By default NearPlaneDistance is automatically calculated from the 3D scene bounding box and camera position. This can be disabled by manually setting the value of this property or by setting IsAutomaticNearPlaneDistanceCalculation to false. | |
ProjectionType | Gets or sets the type of projection (Perspective or Orthographic) | |
SceneView | Gets the SceneView that this camera belongs to. |
Name | Description | |
---|---|---|
GetCameraMatrices | GetCameraMatrices method gets the camera's view and projection matrices. When the optional parameter updateIfDirty is true (by default) then the Update(Boolean) method is called if the camera was changed after the last matrices were calculated. | |
GetCameraPlaneOrientation | GetCameraPlaneOrientation gets plane's normal, width and height vectors that can be used to orient the plane 3D model so that it is aligned with the camera view. | |
GetCameraPosition | Returns the current position of the camera. | |
GetLookDirection | Returns the normalized look direction of the camera. | |
GetUpDirection | Returns the normalized up direction of the camera. | |
GetViewProjectionMatrix | Gets a pre-calculated View * Projection matrix. | |
RotateCamera | Rotates the camera for the specified heading and attitude. | |
SerializeToJson | SerializeToJson serializes the specified camera into a json string. The returned string starts with assembly qualified camera type name. To create a camera from json string use the static DeserializeJson(String) method. | |
Update | Update method updates the camera matrices when needed (when there were any change in the camera properties) or when forceMatrixUpdate is set to true. | |
UpdateAnimations | UpdateAnimations method updates the camera's rotation when it is animated. |
Name | Description | |
---|---|---|
CameraChanged | CameraChanged event occurs after the camera was changed. |