Table of Contents

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

DependencyProperty

SourceProperty

Identifies the Source dependency property.

public static readonly DependencyProperty SourceProperty

Field Value

DependencyProperty

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

obj DependencyObject

The sender.

args DependencyPropertyChangedEventArgs

The args.

Events

ModelLoaded

Occurs when the model has been loaded.

public event RoutedEventHandler ModelLoaded

Event Type

RoutedEventHandler