Click or drag to resize
AB4D logo

BaseCamera Class

BaseCamera is a base camera that can be used in DXScene and that implements ICamera and ILeftRightHandedCoordinateSystem
Inheritance Hierarchy
SystemObject
  Ab3d.DirectX.CamerasBaseCamera
    Ab3d.DirectX.CamerasWpfCamera

Namespace: Ab3d.DirectX.Cameras
Assembly: Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.1.9105.2048
Syntax
C#
public abstract class BaseCamera : ICamera, 
	ILeftRightHandedCoordinateSystem

The BaseCamera type exposes the following members.

Properties
 NameDescription
Public propertyAspectRatio Gets or sets an aspect ratio (width divided by height) of the viewport that is showing the 3D scene.
Public propertyFarPlaneDistance Gets or sets a value that specifies the distance from the camera of the camera's far clip plane.
Public propertyIsHorizontalFieldOfView Gets or sets a boolean that specifies if horizontal Field of View is used (true = as in WPF 3D) or vertical Field of view is used (false = as in DirectX). Default value is true.
Public propertyIsRightHandedCoordinateSystem When true than right handed coordinate system is used (as in WPF 3D, XNA and OpenGL), if false than left handed coordinate system are used (as in DirectX). Default value is true.
Public propertyNearPlaneDistance Gets or sets a value that specifies the distance from the camera of the camera's near clip plane.
Public propertyParentDXScene Gets or sets the DXScene that this camera belong to.
Public propertyParentSceneNode Gets or sets a parent SceneNode that can be used to adjust the camera's View matrix with the SceneNode's world matrix. This can be used to animate the camera with SceneNode.
Public propertyProjection Gets the camera's projection matrix.
Public propertyProjectionType Gets type of projection (Perspective or Orthographic)
Public propertyView Gets the camera's view matrix.
Top
Methods
 NameDescription
Public methodGetCameraPosition Returns the current position of the camera.
Public methodGetViewProjection Gets a precalculated View * Projection matrix.
Public methodGetWorldViewProjection Returns WorldViewProjection matrix. Calculating this matrix is faster inside Camera because here we can access matrixes by reference.
Public methodUpdate Update method updates the camera matrices when needed (when there were any change in the camera properties) or when forceMatrixUpdate is set to true.
Top
Events
 NameDescription
Public eventCameraChanged CameraChanged event is triggered when this camera is changed.
Top
Fields
 NameDescription
Public fieldStatic memberDefaultFarPlaneDistance DefaultFarPlaneDistance
Public fieldStatic memberDefaultNearPlaneDistance DefaultNearPlaneDistance
Top
See Also