ModelReader

Description

abstract class Tinman.Engine.Models.ModelReader

Derived from

Disposable abstract
IModelReader

Extended by

OpenFlightModelReader sealed

Abstract base class for IModelReader implementations.

Protected / Constructors

Model​Reader


protected constructor ModelReader → (3)

data in : IFileData

[not-null]
The file data from which to read the 3D model.

fileFormat in : ModelFormat

[not-null]
The model format.

simplify in : bool

Call IModel.Simplify with ModelReaderOptions.Simplify?

Creates a new instance of ModelReader.

Protected / Methods

Dirty


protected method Dirty → ()

Subclasses must call this method when the model reader options have been modified.

Do​Read​Model


protected abstract method DoReadModel → ()

returns → IModel

The read 3D model.

Reads the 3D model.

IOException

If an I/O error has occurred.

ValidatingException

If the model reader has reported an error, for example an unsupported file format feature.

Message


protected method Message → (1)

message in : ValidateMessage

[not-null]
The validation message.

Provides a validation message that shall be returned by IValidatable.Validate.

Protected / Attributes

data


protected attribute data → (IFileData)

The file data from which to read the 3D model.

Configuration

Config


public static attribute Config → (get)

value : IConfigurator<IModelReader>

[not-null]
The configurator object.

The configurator object for this type.

Config​Read​Model​Flags


public static attribute ConfigReadModelFlags → (get)

value : IConfigurator<ReadModelFlags>

[not-null]
The configurator object.

The configurator object for ReadModelFlags values.