OpenFlightModelReader
Description
- 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:
-
FltProjection ("6 = Geocentric")
The model uses a geocentric coordinate system (see Geocentric), so TerrainModel.Transform should be set to AffineTransform.Identity, instead of using IScene.Transform. -
FltTerTrans ("offset of the terrain tile origin from database origin")
The model hierarchy includes the transformation which translates the terrain tile origin to the database origin.
- See also
Public / Methods
ToXml
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
KeepPolygonFootprint
Include fltPolygon
/ fltMesh
nodes for which the fltPolyFootprint
attribute ("geometry is a footprint for CAT cutout") is true
?
Defaults to true
.
KeepPolygonHidden
Include fltPolygon
/ fltMesh
nodes for which the fltPolyHidden
attribute ("geometry is hidden - not drawn") is true
?
Defaults to false
.