Class DynamicUIElement3D
This class represents a base class for 3D primitive shapes.
Inherited Members
Namespace: Telerik.Windows.Controls.Charting
Assembly: Telerik.Windows.Controls.Charting.dll
Syntax
public abstract class DynamicUIElement3D : UIElement3D, INotifyPropertyChanged, ITreeElement3D, ITreeNode3D
Constructors
DynamicUIElement3D()
Declaration
protected DynamicUIElement3D()
Fields
BackMaterialProperty
Identifies the BackMaterial dependency property.
Declaration
public static readonly DependencyProperty BackMaterialProperty
Field Value
System.Windows.DependencyProperty
|
MaterialProperty
Identifies the Material dependency property.
Declaration
public static readonly DependencyProperty MaterialProperty
Field Value
System.Windows.DependencyProperty
|
ModelProperty
Identifies the Model dependency property.
Declaration
public static readonly DependencyProperty ModelProperty
Field Value
System.Windows.DependencyProperty
|
Properties
BackMaterial
Gets or sets the back material applied to the respective 3D element.
Declaration
public Material BackMaterial { get; set; }
Property Value
Material
|
Material
Gets or sets the material applied to the respective 3D element.
Declaration
public Material Material { get; set; }
Property Value
Material
|
Model
Gets or sets the model applied to the respective 3D element.
Declaration
protected Model3D Model { get; set; }
Property Value
Model3D
|
Methods
ClearModel()
Clears the model.
Declaration
protected virtual void ClearModel()
CreateElementModel()
Creates the final element 3D model.
Declaration
protected virtual Model3D CreateElementModel()
Returns
Model3D
The final 3D model of the element. |
CreateRectangleModel(Point3D, Point3D, Point3D, Point3D, Material, Material)
Creates a rectangle 3D model.
Declaration
protected static GeometryModel3D CreateRectangleModel(Point3D point0, Point3D point1, Point3D point2, Point3D point3, Material material, Material backMaterial)
Parameters
Point3D
point0
The first rectangle vertex. |
Point3D
point1
The second rectangle vertex. |
Point3D
point2
The third rectangle vertex. |
Point3D
point3
The fourth rectangle vertex. |
Material
material
The material applied to the rectangle. |
Material
backMaterial
The material applied to the back side of the rectangle. |
Returns
GeometryModel3D
The rectangle model. |
CreateTriangleMesh(Point3D, Point3D, Point3D)
Creates a triangle mesh geometry from three Point3D instances.
Declaration
protected static MeshGeometry3D CreateTriangleMesh(Point3D point0, Point3D point1, Point3D point2)
Parameters
Point3D
point0
The first triangle vertex. |
Point3D
point1
The second triangle vertex. |
Point3D
point2
The third triangle vertex. |
Returns
MeshGeometry3D
The triangle mesh geometry. |
CreateTriangleModel(Point3D, Point3D, Point3D, Material, Material)
Creates a triangle 3D model.
Declaration
protected static GeometryModel3D CreateTriangleModel(Point3D point0, Point3D point1, Point3D point2, Material material, Material backMaterial)
Parameters
Point3D
point0
The first triangle vertex. |
Point3D
point1
The second triangle vertex. |
Point3D
point2
The third triangle vertex. |
Material
material
The material applied to the triangle. |
Material
backMaterial
The material applied to the back side of the triangle. |
Returns
GeometryModel3D
The triangle model. |
DegreesToRadians(Double)
Converts degrees to radians.
Declaration
protected static double DegreesToRadians(double degrees)
Parameters
System.Double
degrees
The value to convert in degrees. |
Returns
System.Double
The converted value in radians. |
InvalidateViewport()
Invalidates the scene in the Viewport, enforces re-render.
Declaration
protected void InvalidateViewport()
ModelPropertyChanged(DependencyObject, DependencyPropertyChangedEventArgs)
Updates the final model of the 3D element in response to a InvalidateModel() call.
Declaration
protected static void ModelPropertyChanged(DependencyObject targetElement, DependencyPropertyChangedEventArgs eventArgs)
Parameters
System.Windows.DependencyObject
targetElement
The target element. |
System.Windows.DependencyPropertyChangedEventArgs
eventArgs
The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. |
OnUpdateModel()
Participates in rendering operations when overridden in a derived class.
Declaration
protected override void OnUpdateModel()
Overrides
RadiansToDegrees(Double)
Converts radians to degrees.
Declaration
protected static double RadiansToDegrees(double radians)
Parameters
System.Double
radians
The value to convert in radians. |
Returns
System.Double
The converted value in degrees. |
VisualPropertyChanged(DependencyObject, DependencyPropertyChangedEventArgs)
Invalidates the 3D primitive whenever a property that affects the visual appearance of the element is changed.
Declaration
protected static void VisualPropertyChanged(DependencyObject targetElement, DependencyPropertyChangedEventArgs eventArgs)
Parameters
System.Windows.DependencyObject
targetElement
The target 3D element. |
System.Windows.DependencyPropertyChangedEventArgs
eventArgs
The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. |