C# Class HelixToolkit.Wpf.MeshElement3D

Represents a base class for elements that contain one GeometryModel3D and front and back Materials.
Derived classes should override the Tessellate method to generate the geometry.
Inheritance: System.Windows.Media.Media3D.ModelVisual3D, IEditableObject
Afficher le fichier Open project: litdev1/LitDev

Méthodes publiques

Свойство Type Description
BackMaterialProperty System.Windows.DependencyProperty
FillProperty System.Windows.DependencyProperty
MaterialProperty System.Windows.DependencyProperty

Méthodes publiques

Méthode Description
BeginEdit ( ) : void

Begins an edit on an object.

CancelEdit ( ) : void

Discards changes since the last M:System.ComponentModel.IEditableObject.BeginEdit call.

EndEdit ( ) : void

Pushes changes since the last M:System.ComponentModel.IEditableObject.BeginEdit or M:System.ComponentModel.IBindingList.AddNew call into the underlying object.

UpdateModel ( ) : void

Forces an update to the geometry model and materials

Méthodes protégées

Méthode Description
GeometryChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

The geometry changed.

MaterialChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

The material changed.

MeshElement3D ( ) : System.ComponentModel

Initializes a new instance of the MeshElement3D class.

OnFillChanged ( ) : void

The on fill changed.

OnGeometryChanged ( ) : void

The geometry changed.

OnMaterialChanged ( ) : void

The material changed.

Tessellate ( ) : System.Windows.Media.Media3D.MeshGeometry3D

Do the tesselation and return the MeshGeometry3D.

Private Methods

Méthode Description
FillChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Called when Fill is changed.

Method Details

BeginEdit() public méthode

Begins an edit on an object.
public BeginEdit ( ) : void
Résultat void

CancelEdit() public méthode

Discards changes since the last M:System.ComponentModel.IEditableObject.BeginEdit call.
public CancelEdit ( ) : void
Résultat void

EndEdit() public méthode

Pushes changes since the last M:System.ComponentModel.IEditableObject.BeginEdit or M:System.ComponentModel.IBindingList.AddNew call into the underlying object.
public EndEdit ( ) : void
Résultat void

GeometryChanged() protected static méthode

The geometry changed.
protected static GeometryChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject /// The d. ///
e System.Windows.DependencyPropertyChangedEventArgs /// The event arguments. ///
Résultat void

MaterialChanged() protected static méthode

The material changed.
protected static MaterialChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject /// The d. ///
e System.Windows.DependencyPropertyChangedEventArgs /// The event arguments. ///
Résultat void

MeshElement3D() protected méthode

Initializes a new instance of the MeshElement3D class.
protected MeshElement3D ( ) : System.ComponentModel
Résultat System.ComponentModel

OnFillChanged() protected méthode

The on fill changed.
protected OnFillChanged ( ) : void
Résultat void

OnGeometryChanged() protected méthode

The geometry changed.
protected OnGeometryChanged ( ) : void
Résultat void

OnMaterialChanged() protected méthode

The material changed.
protected OnMaterialChanged ( ) : void
Résultat void

Tessellate() protected abstract méthode

Do the tesselation and return the MeshGeometry3D.
protected abstract Tessellate ( ) : System.Windows.Media.Media3D.MeshGeometry3D
Résultat System.Windows.Media.Media3D.MeshGeometry3D

UpdateModel() public méthode

Forces an update to the geometry model and materials
public UpdateModel ( ) : void
Résultat void

Property Details

BackMaterialProperty public_oe static_oe property

Identifies the BackMaterial dependency property.
public static DependencyProperty,System.Windows BackMaterialProperty
Résultat System.Windows.DependencyProperty

FillProperty public_oe static_oe property

Identifies the Fill dependency property.
public static DependencyProperty,System.Windows FillProperty
Résultat System.Windows.DependencyProperty

MaterialProperty public_oe static_oe property

Identifies the Material dependency property.
public static DependencyProperty,System.Windows MaterialProperty
Résultat System.Windows.DependencyProperty