Table of Contents

Class KerkytheaExporter.KerkytheaWriter

Namespace
HelixToolkit.Wpf
Assembly
HelixToolkit.Wpf.dll

Represents the output writer for the KerkytheaExporter.

public sealed class KerkytheaExporter.KerkytheaWriter
Inheritance
KerkytheaExporter.KerkytheaWriter
Inherited Members

Constructors

KerkytheaWriter(Stream)

Initializes a new instance of the KerkytheaExporter.KerkytheaWriter class.

public KerkytheaWriter(Stream stream)

Parameters

stream Stream

The stream.

Methods

AddTexture(Brush, string)

Adds the specified texture.

public void AddTexture(Brush brush, string filename)

Parameters

brush Brush

The brush.

filename string

The filename.

Close()

Closes this instance.

public void Close()

GetUniqueName(string?, string)

Gets a unique name.

public string GetUniqueName(string? name, string defaultName)

Parameters

name string

The name.

defaultName string

The default name.

Returns

string

TryGetTexture(Brush, out string)

Tries to get the texture for the specified brush.

public bool TryGetTexture(Brush brush, out string textureFile)

Parameters

brush Brush

The brush.

textureFile string

The texture file.

Returns

bool

true if the texture was found.

Write(XmlNode)

Writes the specified XML node.

public void Write(XmlNode xmlNode)

Parameters

xmlNode XmlNode

The XML node.

WriteAttributeString(string, string)

Writes the attribute string.

public void WriteAttributeString(string name, string value)

Parameters

name string

The name.

value string

The value.

WriteEndDocument()

Writes the end document.

public void WriteEndDocument()

WriteEndElement()

Writes the end element.

public void WriteEndElement()

WriteEndObject()

Writes the end object.

public void WriteEndObject()

WriteFullEndElement()

Writes the full end element.

public void WriteFullEndElement()

WriteObject(string, string, string, string)

Writes the object.

public void WriteObject(string identifier, string label, string name, string type)

Parameters

identifier string

The identifier.

label string

The label.

name string

The name.

type string

The type.

WriteParameter(string, bool)

Writes a boolean parameter.

public void WriteParameter(string name, bool flag)

Parameters

name string

The name.

flag bool

The flag.

WriteParameter(string, double)

Writes a double parameter.

public void WriteParameter(string name, double value)

Parameters

name string

The name.

value double

The value.

WriteParameter(string, int)

Writes an integer parameter.

public void WriteParameter(string name, int value)

Parameters

name string

The parameter name.

value int

The value.

WriteParameter(string, string)

Writes a string parameter.

public void WriteParameter(string name, string value)

Parameters

name string

The name.

value string

The value.

WriteParameter(string, string, string)

Writes a parameter.

public void WriteParameter(string name, string type, string value)

Parameters

name string

The name.

type string

The type.

value string

The value.

WriteParameter(string, Color)

Writes a color parameter.

public void WriteParameter(string name, Color color)

Parameters

name string

The name.

color Color

The color.

WriteStartDocument()

Writes the start document.

public void WriteStartDocument()

WriteStartElement(string)

Writes the start element.

public void WriteStartElement(string localName)

Parameters

localName string

Name of the element.

WriteStartObject(string, string, string, string)

Writes the start object.

public void WriteStartObject(string identifier, string label, string name, string type)

Parameters

identifier string

The identifier.

label string

The label.

name string

The name.

type string

The type.

WriteTransform(string, Matrix3D)

Writes a transformation matrix.

public void WriteTransform(string name, Matrix3D m)

Parameters

name string

The name of the matrix.

m Matrix3D

The matrix.