Class FileModelVisual3D
- Namespace
- HelixToolkit.Wpf
- Assembly
- HelixToolkit.Wpf.dll
A visual element that shows a model loaded from a file.
public class FileModelVisual3D : UIElement3D, IAnimatable, IInputElement
- Inheritance
-
FileModelVisual3D
- Implements
- Inherited Members
- Extension Methods
Remarks
Supported file formats: .3ds .obj .lwo .stl .off
Fields
DefaultMaterialProperty
Identifies the DefaultMaterial dependency property.
public static readonly DependencyProperty DefaultMaterialProperty
Field Value
SourceProperty
Identifies the Source dependency property.
public static readonly DependencyProperty SourceProperty
Field Value
Properties
DefaultMaterial
Gets or sets the default material.
public Material DefaultMaterial { get; set; }
Property Value
- Material
The default material.
Source
Gets or sets the source file name.
public string Source { get; set; }
Property Value
- string
The source file name.
Methods
OnModelLoaded()
Called when the model has been loaded.
protected virtual void OnModelLoaded()
SourceChanged()
Called when the source or default material changed.
protected virtual void SourceChanged()
SourceChanged(DependencyObject, DependencyPropertyChangedEventArgs)
The source changed.
protected static void SourceChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
Parameters
objDependencyObjectThe sender.
argsDependencyPropertyChangedEventArgsThe args.
Events
ModelLoaded
Occurs when the model has been loaded.
public event RoutedEventHandler ModelLoaded