C# Class MatterHackers.DataConverters3D.AmfDocument

Show file Open project: ucswift/PrinterQuotationEngine

Public Methods

Method Description
GetCompressedStreamIfRequired ( Stream amfStream ) : Stream
GetEstimatedMemoryUse ( string fileLocation ) : long
Load ( Stream fileStream, CancellationToken cancellationToken, Action reportProgress = null ) : IObject3D
Load ( string amfPath, CancellationToken cancellationToken, Action reportProgress = null ) : IObject3D
Save ( IObject3D itemToSave, Stream stream, MeshOutputSettings outputInfo ) : bool
Save ( IObject3D item, string fileName, MeshOutputSettings outputInfo = null ) : bool

Writes the mesh to disk in a zip container

SaveUncompressed ( IObject3D item, string fileName, MeshOutputSettings outputInfo = null ) : bool

Private Methods

Method Description
BreakInDebugger ( string description = "" ) : void
Indent ( int index ) : string
IsZipFile ( Stream fs ) : bool
ReadAllVertices ( XmlReader reader, ProgressData progressData ) : List
ReadMaterial ( XmlReader reader, Dictionary materials ) : void
ReadVolume ( XmlReader reader, List vertices, Mesh mesh, ProgressData progressData, string &material ) : List

Method Details

GetCompressedStreamIfRequired() public static method

public static GetCompressedStreamIfRequired ( Stream amfStream ) : Stream
amfStream Stream
return Stream

GetEstimatedMemoryUse() public static method

public static GetEstimatedMemoryUse ( string fileLocation ) : long
fileLocation string
return long

Load() public static method

public static Load ( Stream fileStream, CancellationToken cancellationToken, Action reportProgress = null ) : IObject3D
fileStream Stream
cancellationToken CancellationToken
reportProgress Action
return IObject3D

Load() public static method

public static Load ( string amfPath, CancellationToken cancellationToken, Action reportProgress = null ) : IObject3D
amfPath string
cancellationToken CancellationToken
reportProgress Action
return IObject3D

Save() public static method

public static Save ( IObject3D itemToSave, Stream stream, MeshOutputSettings outputInfo ) : bool
itemToSave IObject3D
stream Stream
outputInfo MeshOutputSettings
return bool

Save() public static method

Writes the mesh to disk in a zip container
public static Save ( IObject3D item, string fileName, MeshOutputSettings outputInfo = null ) : bool
item IObject3D
fileName string The file path to save at
outputInfo MeshOutputSettings Extra meta data to store in the file
return bool

SaveUncompressed() public static method

public static SaveUncompressed ( IObject3D item, string fileName, MeshOutputSettings outputInfo = null ) : bool
item IObject3D
fileName string
outputInfo MeshOutputSettings
return bool