OpenFlightModelReader

Description

sealed class Tinman.AddOns.OpenFlight.OpenFlightModelReader

Derived from

ModelReader abstract

Full source code is included in the Tinman 3D SDK download.

The ModelReader implementation for OpenFlight databases.

The IModelReader.ReadModelDebug method output the following additional diagnostic files:

  • $(fileName).xml
    An XML dump of the OpenFlight model structure, generated with ToXml.

Public / Methods

To​Xml


public method ToXml → ()

returns → XmlDocument

The human-readable XML description (using the terms of the OpenFlight API) of the data that is consumed by the OpenFlightModelReader class.

Reads the model structure and returns an XML description, which is intended to be used for resolving errors and problems while loading OpenFlight models.

Besides of initializing Database, calling this method will not modify the state of this model reader.

IOException

If an I/O error has occurred.

Public / Attributes

Database


[OwnerReturn]
public attribute Database → (get)

value : OpenFlightDatabase

The OpenFlightDatabase wrapper or null iff IModelReader.ReadModel has not yet been called.

Returns the wrapper of the OpenFlight database file.

Logging

Logger


public static readonly attribute Logger → (ILogger)

The logger object of this class.