Class X3DExporter
- Namespace
- HelixToolkit.Wpf
- Assembly
- HelixToolkit.Wpf.dll
Exports the 3D visual tree to an X3D file.
public sealed class X3DExporter : Exporter<XmlWriter>, IExporter
- Inheritance
-
X3DExporter
- Implements
- Inherited Members
Remarks
The X3D format is defined on Wikipedia. Also see Web3D. The validation schema can be found at w3.org and web3d.org.
Constructors
X3DExporter()
Initializes a new instance of the X3DExporter class.
public X3DExporter()
Properties
Metadata
Gets the metadata.
public Dictionary<string, string> Metadata { get; }
Property Value
Title
Sets the title.
public string Title { set; }
Property Value
Methods
Close(XmlWriter)
Closes this exporter.
protected override void Close(XmlWriter writer)
Parameters
writerXmlWriterThe output writer.
Create(Stream)
Creates the writer for the specified stream.
protected override XmlWriter Create(Stream stream)
Parameters
streamStreamThe output stream.
Returns
- XmlWriter
The writer.
ExportHeader(XmlWriter)
Exports the header.
protected override void ExportHeader(XmlWriter writer)
Parameters
writerXmlWriterThe writer.
ExportModel(XmlWriter, GeometryModel3D, Transform3D)
Exports the model.
protected override void ExportModel(XmlWriter writer, GeometryModel3D model, Transform3D inheritedTransform)
Parameters
writerXmlWriterThe writer.
modelGeometryModel3DThe model.
inheritedTransformTransform3DThe inherited transform.