ModelReaderBase

Description

abstract class Tinman.Engine.Models.ModelReaderBase

Derived from

Disposable abstract
IModelReader

Extended by

ModelReader abstract

Abstract base class for IModelReader implementations.

Protected / Constructors

Model​Reader​Base


protected constructor ModelReaderBase → (2)

data in : IFileData

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

simplify opt : ModelSimplifyFlags = ModelSimplifyFlags.None

Initial value for simplify.

Creates a new instance of ModelReaderBase.

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.

Validate​Flush


[EmptyBody]
protected virtual method ValidateFlush → ()

Flushes cached validation data.

Protected / Attributes

data


protected attribute data → (IFileData)

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

simplify


protected attribute simplify → (ModelSimplifyFlags)

The flags that will be passed to IModel.Simplify before IModelReader.ReadModel returns.