Properties  Methods  Events


CameraController Class Members

The following tables list the members exposed by CameraController.

Public Constructors
 NameDescription
Public ConstructorInitializes a new instance of the CameraController class.  
Top
Public Properties
 NameDescription
Public Property Gets or sets the Aspect Ratio of the viewport, e.g. 1.333f suggests width is 1.333 * height  
Public Property Gets or sets the Name or ID of the camera. Does not need to be unique, but can be used by the user to identify a camera  
Public Property

Defines the interface to a Camera in the SciChart3DSurface scene

You can set Position, Target as Vectors in world coordinates, Field of View, Aspect ratio etc...

A camera can be switched from prespective to orthogonal, or rotated around it's target.

Cameras may be attached to the SciChart3DSurface.Camera property and there are several implementations for MVVM or XAML based construction

 
Public Property Gets or sets the Far Clipping distance of the camera. Objects farther than this distance will be invisible to the camera  
Public Property Gets or sets the Field of View Angle of the Camera in Degrees  
Public Property Calculated Property: Gets the Normalized Forward (direction) Vector of the Camera as an XYZ Vector3 in World Coordinates  
Public Property

Defines the interface to a Camera in the SciChart3DSurface scene

You can set Position, Target as Vectors in world coordinates, Field of View, Aspect ratio etc...

A camera can be switched from prespective to orthogonal, or rotated around it's target.

Cameras may be attached to the SciChart3DSurface.Camera property and there are several implementations for MVVM or XAML based construction

 
Public Property INTERNAL USE ONLY: Gets or sets whether this camera is attached to the viewport  
Public Property Gets a value indicating whether updates for the target are currently suspended  
Public Property Gets or sets the Near Clipping distance of the camera. Objects closer than this distance will be invisible to the camera  
Public Property Gets or sets the Pitch angle of the camera position relative to the target in DEGREES. This property may be manipulated to change the camera position  
Public Property Gets or sets the Yaw angle of the camera position relative to the target in DEGREES. This property may be manipulated to change the camera position  
Public Property Gets or sets the Camera Orthogonal Viewport height, used when ProjectionMode is Orthogonal  
Public Property Gets or sets the Camera Orthogonal Viewport width, used when ProjectionMode is Orthogonal  
Public PropertyGets or sets the parent IViewport3D where this camera is attached  
Public Property Gets or sets the Position of the Camera as an XYZ Vector3 in World Coordinates  
Public Property Gets or sets the Camera projection mode, e.g. perspective or orthogonal  
Public Property Calculated Property: Gets or sets the Radius distance of the camera to target in World Units. This property may be manipulated to change the camera position  
Public Property Calculated Property: Gets the Normalized Side Vector of the Camera as an XYZ Vector3 in World Coordinates  
Public Property Gets or sets the Target of the Camera as an XYZ Vector3 in World Coordinates  
Public Property Calculated Property: Gets the Normalized Up Vector of the Camera as an XYZ Vector3 in World Coordinates  
Public Property Calculated Property: Gets the Normalized Global Up Vector equal to Vector3(0,1,0) in LH Coordinate system  
Public PropertyWhen true, the Camera is zoomed to fit the parent SciChart3DSurface scene bounds on attached  
Top
Public Methods
 NameDescription
Public Method

Defines the interface to a Camera in the SciChart3DSurface scene

You can set Position, Target as Vectors in world coordinates, Field of View, Aspect ratio etc...

A camera can be switched from prespective to orthogonal, or rotated around it's target.

Cameras may be attached to the SciChart3DSurface.Camera property and there are several implementations for MVVM or XAML based construction

 
Public Method Calculates a Camera target and radius that will fit the bounding box completely inside the viewport. Uses a simple bounding-sphere algorithm  
Public Method Called by IUpdateSuspender each time a target suspender is disposed. When the final target suspender has been disposed, ResumeUpdates is called  
Public Method

Defines the interface to a Camera in the SciChart3DSurface scene

You can set Position, Target as Vectors in world coordinates, Field of View, Aspect ratio etc...

A camera can be switched from prespective to orthogonal, or rotated around it's target.

Cameras may be attached to the SciChart3DSurface.Camera property and there are several implementations for MVVM or XAML based construction

 
Public Method Converts the Vector3 in world space to a 2D screen coordinate, using the current View and Projection matrices  
Public Method Resets the camera to default position, target and orientation  
Public Method Resumes updates on the target, intended to be called by IUpdateSuspender  
Public MethodConverts a point in Screen space to a Vector3 in world space, given the specified distance from the screen  
Public Method Suspends drawing updates on the target until the returned object is disposed, when a final draw call will be issued  
Public Method Switches the camera to Orthogonal mode  
Public Method Switches the camera to Perspective mode  
Public Method Converts the Vector3 in world space to a 2D screen coordinate, using the current View and Projection matrices  
Top
Protected Methods
 NameDescription
Protected MethodRaises the CameraUpdated event  
Protected MethodOverloaded. Raises the System.ComponentModel.INotifyPropertyChanged.PropertyChanged event (Inherited from SciChart.Data.Model.BindableObject)
Protected Method Updates the internal camera used by the 3D scene  
Top
Extension Methods
 NameDescription
Public Extension Method Notifies that finalizer has been invoked
Public Extension MethodOverloaded. Converts an System.IComparable array to double array
Public Extension MethodYields a single item, converting it to System.Collections.IEnumerable.
Public Extension Method
Top
Public Events
 NameDescription
Public Event Event raised whenever the Camera properties are updated and the parent requires a redraw  
Public Event Occurs when a property value changes. (Inherited from SciChart.Data.Model.BindableObject)
Top
See Also