Class
Chart3DCameraBehavior

A behavior that manipulates the camera and lights of a 3D chart in accordance to user interaction with mouse or touch.

Definition

Namespace:Telerik.Windows.Controls.ChartView

Assembly:Telerik.Windows.Controls.Chart.dll

Syntax:

cs-api-definition
public class Chart3DCameraBehavior : Chart3DBehavior

Inheritance: objectInheritanceContextPropagatorChart3DBehaviorChart3DCameraBehavior

Inherited Members InheritanceContextPropagator.CreateInstanceCore()InheritanceContextPropagator.FreezeCore(bool)

Constructors

Chart3DCameraBehavior()

Initializes a new instance of the Chart3DCameraBehavior class.

Declaration

cs-api-definition
public Chart3DCameraBehavior()

Fields

DistanceProperty

Identifies the Distance dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DistanceProperty

Field Value

DependencyProperty

FieldOfViewProperty

Identifies the FieldOfView dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty FieldOfViewProperty

Field Value

DependencyProperty

FirstAngleProperty

Identifies the FirstAngle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty FirstAngleProperty

Field Value

DependencyProperty

IsRotationEnabledProperty

Identifies the IsRotationEnabled attached dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsRotationEnabledProperty

Field Value

DependencyProperty

MaxDistanceProperty

Identifies the MaxDistance dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MaxDistanceProperty

Field Value

DependencyProperty

MaxSecondAngleProperty

Identifies the MaxSecondAngle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MaxSecondAngleProperty

Field Value

DependencyProperty

MinDistanceProperty

Identifies the MinDistance dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MinDistanceProperty

Field Value

DependencyProperty

MinSecondAngleProperty

Identifies the MinSecondAngle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MinSecondAngleProperty

Field Value

DependencyProperty

SecondAngleProperty

Identifies the SecondAngle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SecondAngleProperty

Field Value

DependencyProperty

Properties

Distance

Gets or sets the distance. This property has a different meaning for the different cameras. When a PerspectiveCamera is in use, the distance is the radius of the sphere that the camera is positioned on. When an OrthographicCamera is in use, the distance is the Width of the camera.

Declaration

cs-api-definition
public double Distance { get; set; }

Property Value

double

DragToRotateKeyCombinations

Gets the drag-to-rotate key combinations. Drag rotation is performed when at least one key combination is fully satisfied. When this collection is empty rotation is performed when the left mouse button is pressed.

Declaration

cs-api-definition
public List<ChartKeyCombination> DragToRotateKeyCombinations { get; }

Property Value

List<ChartKeyCombination>

FieldOfView

Gets or sets a value that represents the PerspectiveCamera camera's horizontal field of view.

Declaration

cs-api-definition
public double FieldOfView { get; set; }

Property Value

double

FieldOfViewModifierKeys

Gets the keys that allow modifying the field of view on mouse wheel. The field of view is updated when at least one of these keys is pressed. When this collection is empty the field of view is updated when the left shift and/or right shift is pressed.

Declaration

cs-api-definition
public List<Key> FieldOfViewModifierKeys { get; }

Property Value

List<Key>

FirstAngle

Gets or sets the angle between the axis to the right and the projection of the line between the camera position and plot area center onto the horizontal plane. The axis to the right is considered to be the one that goes to the right when one axis goes up and another goes towards the viewer. The horizontal plane is considered to be the plane that is defined by the right axis and the axis that goes towards the viewer.

Declaration

cs-api-definition
public double FirstAngle { get; set; }

Property Value

double

MaxDistance

Gets or sets the maximum distance.

Declaration

cs-api-definition
public double MaxDistance { get; set; }

Property Value

double

MaxSecondAngle

Gets or sets the maximum SecondAngle.

Declaration

cs-api-definition
public double MaxSecondAngle { get; set; }

Property Value

double

MinDistance

Gets or sets the minimum distance.

Declaration

cs-api-definition
public double MinDistance { get; set; }

Property Value

double

MinSecondAngle

Gets or sets the minimum SecondAngle.

Declaration

cs-api-definition
public double MinSecondAngle { get; set; }

Property Value

double

SecondAngle

Gets or sets the angle between the UpDirection axis and the line between the camera position and plot area center.

Declaration

cs-api-definition
public double SecondAngle { get; set; }

Property Value

double

UpDirection

Gets or sets a value indicating which axis defines the up direction of the camera.

Declaration

cs-api-definition
public Axis3DType UpDirection { get; set; }

Property Value

Axis3DType

Methods

GetIsRotationEnabled(DependencyObject)

Gets a value indicating whether the object should be rotated by a camera behavior.

Declaration

cs-api-definition
public static bool GetIsRotationEnabled(DependencyObject obj)

Parameters

obj

DependencyObject

Returns

bool

SetIsRotationEnabled(DependencyObject, bool)

Sets a value indicating whether the object should be rotated by a camera behavior.

Declaration

cs-api-definition
public static void SetIsRotationEnabled(DependencyObject obj, bool value)

Parameters

obj

DependencyObject

value

bool