Class CameraExtension
This extension class provides zooming and rotation interactivity for 3D charts out-of-the-box.
Inherited Members
Namespace: Telerik.Windows.Controls.Charting
Assembly: Telerik.Windows.Controls.Charting.dll
Syntax
public class CameraExtension : ChartExtension, IChartExtension<ChartArea>
Constructors
CameraExtension()
Initializes a new instance of the CameraExtension class.
Declaration
public CameraExtension()
Properties
HidePlaneElementsDuringRotation
Gets or sets a value indicating whether plane elements like axes, striplines, and gridlines will be hidden during rotation.
Declaration
public bool HidePlaneElementsDuringRotation { get; set; }
Property Value
System.Boolean
|
SpinAxis
Gets or sets a value indicating the combination of principle axes (X, Y, Z) around which the chart area rotates in the 3D space.
Declaration
[SRCategory("Behavior")]
public SpinAxis SpinAxis { get; set; }
Property Value
SpinAxis
|
ZoomEnabled
Gets or sets a value indicating whether the zooming functionality of the extension is enabled.
Declaration
[SRCategory("Behavior")]
public bool ZoomEnabled { get; set; }
Property Value
System.Boolean
|
Methods
Attach(ChartArea)
Enables an extension object to find out when it has been aggregated. Called when the extension is added to the ChartArea.Extensions collection property.
Declaration
public override void Attach(ChartArea owner)
Parameters
ChartArea
owner
The ChartArea object whose Extensions collection is being modified (new extension added). |
Overrides
Detach(ChartArea)
Enables an object to find out when it is no longer aggregated. Called when an extension is removed from the ChartArea.Extensions collection property.
Declaration
public override void Detach(ChartArea owner)
Parameters
ChartArea
owner
The ChartArea object whose Extensions collection is being modified (extension removed). |
Overrides
Reset()
Resets the zooming and rotation of the camera extension tool to their initial state.
Declaration
public void Reset()
RotateX(Double)
Rotates the associated chart area around the principle X axis.
Declaration
public void RotateX(double angle)
Parameters
System.Double
angle
The number of degrees to rotate around. |
RotateXY(Double)
Rotates the associated chart area around the principle X and Y axes.
Declaration
public void RotateXY(double angle)
Parameters
System.Double
angle
The number of degrees to rotate around. |
RotateXY(Double, Double)
Rotates the associated chart area around the principle X and Y axes.
Declaration
public void RotateXY(double angleX, double angleY)
Parameters
System.Double
angleX
The number of degrees to rotate around the X axis. |
System.Double
angleY
The number of degrees to rotate around the Y axis. |
RotateXYZ(Double)
Rotates the associated chart area around the principle X, Y, and Z axes.
Declaration
public void RotateXYZ(double angle)
Parameters
System.Double
angle
The number of degrees to rotate around. |
RotateXYZ(Double, Double, Double)
Rotates the associated chart area around the principle X, Y, and Z axes.
Declaration
public void RotateXYZ(double angleX, double angleY, double angleZ)
Parameters
System.Double
angleX
The number of degrees to rotate around the X axis. |
System.Double
angleY
The number of degrees to rotate around the Y axis. |
System.Double
angleZ
The number of degrees to rotate around the Z axis. |
RotateY(Double)
Rotates the associated chart area around the principle Y axis.
Declaration
public void RotateY(double angle)
Parameters
System.Double
angle
The number of degrees to rotate around. |
RotateZ(Double)
Rotates the associated chart area around the principle Z axis.
Declaration
public void RotateZ(double angle)
Parameters
System.Double
angle
The number of degrees to rotate around. |
Zoom(Double)
Zooms the associated chart area by a specified factor.
Declaration
public void Zoom(double scaleFactor)
Parameters
System.Double
scaleFactor
The scale factor to zoom by. |