OpenFlightModelReader

Description

sealed class Tinman.AddOns.OpenFlight.OpenFlightModelReader

Derived from

ModelReader abstract

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

The IModelReader implementation for OpenFlight databases, see OpenFlightModelFormat.

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

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

The following model metadata is used to establish the coordinate system of the top-level IModel object:

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.

Flt​Hdr​Earth


public attribute FltHdrEarth → (get)

value : Vec3D

Vec3D.X : fltHdrEarthMajorAxis
Vec3D.Y : fltHdrEarthMinorAxis
Vec3D.Z : fltHdrEarthModel

Returns metadata of the fltHeader database record.

Flt​Lower​Lat1


public attribute FltLowerLat1 → (get)

value : float64

fltLowerLat1

Returns metadata of the fltHeader database record.

Flt​NECorner


public attribute FltNECorner → (get)

value : Vec2D

Vec3D.X : fltNECornerLong1
Vec3D.Y : fltNECornerLat1

Returns metadata of the fltHeader database record.

Flt​Origin


public attribute FltOrigin → (get)

value : Vec2D

Vec3D.X : fltOriginLong1
Vec3D.Y : fltOriginLat1

Returns metadata of the fltHeader database record.

Flt​Projection


public attribute FltProjection → (get)

value : int32

fltProjection

Returns metadata of the fltHeader database record.

Flt​SWCorner


public attribute FltSWCorner → (get)

value : Vec2D

Vec3D.X : fltSWCornerLong1
Vec3D.Y : fltSWCornerLat1

Returns metadata of the fltHeader database record.

Flt​SWIfmt


public attribute FltSWIfmt → (get)

value : Vec2D

Vec3D.X : fltSWIfmtX
Vec3D.Y : fltSWIfmtY

Returns metadata of the fltHeader database record.

Flt​Ter​Trans


public attribute FltTerTrans → (get)

value : Vec3D

Vec3D.X : fltTerTransX
Vec3D.Y : fltTerTransY
Vec3D.Z : fltTerTransZ

Returns metadata of the fltHeader database record.

Flt​Upper​Lat1


public attribute FltUpperLat1 → (get)

value : float64

fltUpperLat1

Returns metadata of the fltHeader database record.

Flt​UTMZone


public attribute FltUTMZone → (get)

value : int32

fltUTMZone

Returns metadata of the fltHeader database record.

Keep​Polygon​Footprint


public attribute KeepPolygonFootprint → (get,set)

value : bool

true to include footprint polygons,
false to exclude them.

Include fltPolygon / fltMesh nodes for which the fltPolyFootprint attribute ("geometry is a footprint for CAT cutout") is true?

Defaults to true.

Keep​Polygon​Hidden


public attribute KeepPolygonHidden → (get,set)

value : bool

true to include hidden polygons,
false to exclude them.

Include fltPolygon / fltMesh nodes for which the fltPolyHidden attribute ("geometry is hidden - not drawn") is true?

Defaults to false.

Keep​Polygon​Terrain


public attribute KeepPolygonTerrain → (get,set)

value : int32

< 0 : keep only non-terrain geometry,
= 0 : keep both terrain and non-terrain geometry,
> 0 : keep only terrain geometry.

Include fltPolygon / fltMesh nodes that represent terrain / non-terrain, according to the fltPolyTerrain attribute ("geometry is terrain")?

Defaults to 0.

Keep​Structure


public attribute KeepStructure → (get,set)

value : bool

true to keep the group structure,
false to flatten the structure, if possible.

Keep the hierarchical structure of the fltGroup nodes in the database?

Defaults to true.

Logging

Logger


public static readonly attribute Logger → (ILogger)

The logger object of this class.