Table of Contents

Class ModelReader

Namespace
HelixToolkit.Wpf
Assembly
HelixToolkit.Wpf.dll

Class ModelReader.

public abstract class ModelReader : IModelReader
Inheritance
ModelReader
Implements
Derived
Inherited Members

Constructors

ModelReader(Dispatcher?)

Initializes a new instance of the ModelReader class.

protected ModelReader(Dispatcher? dispatcher = null)

Parameters

dispatcher Dispatcher

The dispatcher.

Properties

DefaultMaterial

Gets or sets the default material.

public Material DefaultMaterial { get; set; }

Property Value

Material

The default material.

Directory

Gets or sets the directory.

public string Directory { get; set; }

Property Value

string

The directory.

Dispatcher

Gets the dispatcher.

public Dispatcher? Dispatcher { get; }

Property Value

Dispatcher

The dispatcher.

Freeze

Gets or sets a value indicating whether the model should be frozen.

public bool Freeze { get; set; }

Property Value

bool

true if model should be frozen; otherwise, false.

TexturePath

Gets or sets the texture path.

public string TexturePath { get; set; }

Property Value

string

The texture path.

Methods

Dispatch(Action)

Invokes the specified action on the dispatcher.

protected void Dispatch(Action action)

Parameters

action Action

The action.

GetResourceStream(string)

Gets the resource stream by the specified path.

protected Stream? GetResourceStream(string path)

Parameters

path string

The path.

Returns

Stream

The stream.

IsResourcePath(string)

protected bool IsResourcePath(string path)

Parameters

path string

Returns

bool

Read(Stream)

Reads the model from the specified stream.

public abstract Model3DGroup? Read(Stream s)

Parameters

s Stream

The stream.

Returns

Model3DGroup

The model.

Read(string)

Reads the model from the specified path.

public virtual Model3DGroup? Read(string path)

Parameters

path string

The path.

Returns

Model3DGroup

The model.