Class Axis3D<TControl>
This class represents the base class for axes in the 3D space.
Inherited Members
Namespace: Telerik.Windows.Controls.Charting
Assembly: Telerik.Windows.Controls.Charting.dll
Syntax
public abstract class Axis3D<TControl> : ItemsControl3D<TControl>, IControl3D, ILogicalItem, IItemsControl where TControl : IModelControl3D, new()
Type Parameters
TControl
The type of the 3D control model. |
Constructors
Axis3D()
Initializes a new instance of the Axis3D class.
Declaration
protected Axis3D()
Fields
AxisProperty
Identifies the Axis dependency property.
Declaration
public static readonly DependencyProperty AxisProperty
Field Value
System.Windows.DependencyProperty
|
AxisTitleLabelProperty
Identifies the AxisTitleLabel dependency property.
Declaration
public static readonly DependencyProperty AxisTitleLabelProperty
Field Value
System.Windows.DependencyProperty
|
ParentPlaneProperty
Identifies the ParentPlane dependency property.
Declaration
public static readonly DependencyProperty ParentPlaneProperty
Field Value
System.Windows.DependencyProperty
|
TickSizeProperty
Identifies the TickSize dependency property.
Declaration
public static readonly DependencyProperty TickSizeProperty
Field Value
System.Windows.DependencyProperty
|
Properties
Axis
Gets or sets the data axis.
Declaration
public IDataAxis Axis { get; set; }
Property Value
IDataAxis
The data axis. |
AxisTitleLabel
Gets or sets the axis title label data.
Declaration
public LabelData AxisTitleLabel { get; set; }
Property Value
LabelData
The axis title label data. |
LabelsData
Gets the labels for the respective axis items.
Declaration
protected IList<LabelData> LabelsData { get; }
Property Value
System.Collections.Generic.IList<LabelData>
|
ParentPlane
Gets or sets the parent plane.
Declaration
public IPlane3D ParentPlane { get; set; }
Property Value
IPlane3D
The parent plane. |
TickSize
Gets or sets the size of the tick for the respective axis items.
Declaration
public double TickSize { get; set; }
Property Value
System.Double
|
Methods
AddLabelLayer()
Adds the label layer for the respective axis.
Declaration
protected virtual void AddLabelLayer()
CalculateTickWidth(Int32)
Calculates the width of the axis item tick.
Declaration
protected abstract double CalculateTickWidth(int itemsCount)
Parameters
System.Int32
itemsCount
The total count of items. |
Returns
System.Double
|
ChildItemAdded(UIElement3D, Int32)
Invoked whenever a child element has been added to the 3D control.
Declaration
public override void ChildItemAdded(UIElement3D child, int itemIndex)
Parameters
System.Windows.UIElement3D
child
The child element being added. |
System.Int32
itemIndex
Index of the item. |
Overrides
ChildItemRemoved(UIElement3D, Int32)
Invoked whenever a child element has been removed from the 3D control.
Declaration
public override void ChildItemRemoved(UIElement3D child, int itemIndex)
Parameters
System.Windows.UIElement3D
child
The child element being removed. |
System.Int32
itemIndex
Index of the item. |
Overrides
GetItemCoordinates(Int32, Double)
Invoked whenever a child element has been added to the 3D control.
Declaration
protected Point3DCollection GetItemCoordinates(int itemIndex, double tickWidth)
Parameters
System.Int32
itemIndex
Index of the item. |
System.Double
tickWidth
The width if the item being added. |
Returns
System.Windows.Media.Media3D.Point3DCollection
|
InitAxisTitle()
Adds the axis title for the respective axis.
Declaration
protected void InitAxisTitle()
InitializeAxisItemLabel(TickPointCollection, Int32, Point3DCollection)
Initializes the axis item label.
Declaration
protected virtual LabelData InitializeAxisItemLabel(TickPointCollection ticks, int itemIndex, Point3DCollection pointCoordinates)
Parameters
TickPointCollection
ticks
The ticks. |
System.Int32
itemIndex
Index of the item. |
System.Windows.Media.Media3D.Point3DCollection
pointCoordinates
The point coordinates. |
Returns
LabelData
|
OnApplyTemplate(Control)
When overridden in a derived class, is invoked whenever the Template2DApplied event is raised.
Declaration
public override void OnApplyTemplate(Control control)
Parameters
System.Windows.Controls.Control
control
|
Overrides
OnPropertyChanged(DependencyPropertyChangedEventArgs)
Invoked whenever the effective value of any dependency property on this System.Windows.DependencyObject has been updated. The specific dependency property that changed is reported in the event data.
Declaration
protected override void OnPropertyChanged(DependencyPropertyChangedEventArgs e)
Parameters
System.Windows.DependencyPropertyChangedEventArgs
e
Event data that will contain the dependency property identifier of interest, the property metadata for the type, and old and new values. |
RemoveLabelLayer()
Removes the label layer for the respective axis.
Declaration
protected virtual void RemoveLabelLayer()
SetTitleTransform(LabelData)
Sets the transform of the axis title label.
Declaration
protected virtual void SetTitleTransform(LabelData title)
Parameters
LabelData
title
The title label object. |
TickEndPoint(Double)
Gets the end point of the tick.
Declaration
protected abstract Point3D TickEndPoint(double dimensionOffset)
Parameters
System.Double
dimensionOffset
The dimension offset for the tick. |
Returns
System.Windows.Media.Media3D.Point3D
|
TickStartPoint(Double)
Gets the start point of the tick.
Declaration
protected abstract Point3D TickStartPoint(double dimensionOffset)
Parameters
System.Double
dimensionOffset
The dimension offset for the tick. |
Returns
System.Windows.Media.Media3D.Point3D
|