C# Class AcTools.Kn5File.Kn5

Mostra file Open project: gro-ove/actools Class Usage Examples

Public Properties

Property Type Description
FbxConverterLocation string
Header Kn5Header
Materials Kn5Material>.Dictionary
NodesBytes byte[]
RootNode Kn5Node
Textures Kn5Texture>.Dictionary
TexturesData byte[]>.Dictionary

Public Methods

Method Description
Combine ( Kn5 other ) : void
Combine ( Kn5 other, float position, float rotation ) : void
ConvertColladaToFbx ( string colladaFilename, string fbxFilename ) : void
CreateEmpty ( ) : Kn5
ExportCollada ( string filename ) : void
ExportFbx ( string filename ) : void
ExportFbxWithIni ( string fbxFilename ) : void
ExportFbxWithIniAsync ( string fbxFilename, IProgress progress = null, CancellationToken cancellation = default(CancellationToken) ) : Task
ExportIni_Header ( System.IO.IniFile iniFile ) : void
ExportTextures ( string textureDir ) : void
ExportTexturesAsync ( string textureDir, IProgress progress = null, CancellationToken cancellation = default(CancellationToken) ) : Task
FromDirectory ( string dir, bool jsonMode ) : Kn5
FromFile ( string filename, bool skipTextures = false ) : Kn5
FromHeaderJson ( string file ) : Kn5Header
FromMaterialsJson ( string file ) : Kn5Material>.Dictionary
FromModelsIniFile ( string filename, bool skipTextures = false ) : Kn5
FromNodesJson ( string file ) : Kn5Node
FromStream ( Stream entry, bool skipTextures = false ) : Kn5
IsWithoutTextures ( ) : bool
LoadTexturesFrom ( string filename ) : void
RemoveAllByName ( Kn5Node node, string name ) : int
RemoveAllByName ( string name ) : int
Save ( string filename, bool saveNodes = false ) : void
SaveAll ( string filename ) : void
SetTexture ( [ textureName, string filename ) : void

Private Methods

Method Description
CalculateMatrix ( float position, float rotation ) : float[]
ExportCollada_Material ( XmlWriter xml, Kn5Material material ) : void
ExportCollada_MaterialEffect ( XmlWriter xml, Kn5Material material ) : void
ExportCollada_MaterialEffectTexture ( XmlWriter xml, Kn5Material tex ) : void
ExportCollada_Mesh ( XmlWriter xml, string name, IReadOnlyList unsorted ) : void
ExportCollada_MeshWrapper ( XmlWriter xml, Kn5Node node ) : void
ExportCollada_Node ( XmlWriter xml, Kn5Node node ) : void
ExportCollada_NodeSub ( XmlWriter xml, IReadOnlyList boneNames, Kn5Node node ) : void
ExportCollada_NodeSub_BindMaterial ( XmlWriter xml ) : void
ExportCollada_NodeSub_Inner ( XmlWriter xml, IReadOnlyList boneNames, Kn5Node node ) : void
ExportCollada_Scene ( XmlWriter xml ) : void
ExportCollada_Skinned ( XmlWriter xml, Kn5Node node ) : void
ExportCollada_Texture ( XmlWriter xml, Kn5Texture texture ) : void
ExportIni ( string filename, string fbxName = null ) : void
ExportIni_Materials ( System.IO.IniFile iniFile ) : void
ExportIni_Node ( System.IO.IniFile iniFile, string parentName, Kn5Node node, int priority ) : void
ExportIni_Nodes ( System.IO.IniFile iniFile, string fbxName ) : void
ExportIni_TrackNode ( System.IO.IniFile iniFile, string parentName, Kn5Node node ) : void
FirstByName ( string name ) : Kn5Node
FirstFiltered ( bool>.Func filter ) : Kn5Node
FromDirectory_Header ( string dir ) : void
FromDirectory_Materials ( string dir ) : void
FromDirectory_Nodes ( string dir, bool jsonMode ) : void
FromDirectory_Textures ( string dir ) : void
FromFile_Header ( Kn5Reader reader ) : void
FromFile_Materials ( Kn5Reader reader ) : void
FromFile_Node ( Kn5Reader reader ) : Kn5Node
FromFile_Nodes ( Kn5Reader reader ) : void
FromFile_SkipTextures ( Kn5Reader reader ) : void
FromFile_Textures ( Kn5Reader reader ) : void
GetFbxConverterLocation ( ) : string
GetMaterial ( uint id ) : Kn5Material
IsMultiMaterial ( Kn5Node node ) : bool
Kn5 ( ) : System
Kn5 ( string filename ) : System
Save_Node ( Kn5Writer writer, Kn5Node node ) : void

Method Details

Combine() public method

public Combine ( Kn5 other ) : void
other Kn5
return void

Combine() public method

public Combine ( Kn5 other, float position, float rotation ) : void
other Kn5
position float
rotation float
return void

ConvertColladaToFbx() public method

public ConvertColladaToFbx ( string colladaFilename, string fbxFilename ) : void
colladaFilename string
fbxFilename string
return void

CreateEmpty() public static method

public static CreateEmpty ( ) : Kn5
return Kn5

ExportCollada() public method

public ExportCollada ( string filename ) : void
filename string
return void

ExportFbx() public method

public ExportFbx ( string filename ) : void
filename string
return void

ExportFbxWithIni() public method

public ExportFbxWithIni ( string fbxFilename ) : void
fbxFilename string
return void

ExportFbxWithIniAsync() public method

public ExportFbxWithIniAsync ( string fbxFilename, IProgress progress = null, CancellationToken cancellation = default(CancellationToken) ) : Task
fbxFilename string
progress IProgress
cancellation CancellationToken
return Task

ExportIni_Header() public method

public ExportIni_Header ( System.IO.IniFile iniFile ) : void
iniFile System.IO.IniFile
return void

ExportTextures() public method

public ExportTextures ( string textureDir ) : void
textureDir string
return void

ExportTexturesAsync() public method

public ExportTexturesAsync ( string textureDir, IProgress progress = null, CancellationToken cancellation = default(CancellationToken) ) : Task
textureDir string
progress IProgress
cancellation CancellationToken
return Task

FromDirectory() public static method

public static FromDirectory ( string dir, bool jsonMode ) : Kn5
dir string
jsonMode bool
return Kn5

FromFile() public static method

public static FromFile ( string filename, bool skipTextures = false ) : Kn5
filename string
skipTextures bool
return Kn5

FromHeaderJson() public method

public FromHeaderJson ( string file ) : Kn5Header
file string
return Kn5Header

FromMaterialsJson() public method

public FromMaterialsJson ( string file ) : Kn5Material>.Dictionary
file string
return Kn5Material>.Dictionary

FromModelsIniFile() public static method

public static FromModelsIniFile ( string filename, bool skipTextures = false ) : Kn5
filename string
skipTextures bool
return Kn5

FromNodesJson() public method

public FromNodesJson ( string file ) : Kn5Node
file string
return Kn5Node

FromStream() public static method

public static FromStream ( Stream entry, bool skipTextures = false ) : Kn5
entry System.IO.Stream
skipTextures bool
return Kn5

IsWithoutTextures() public method

public IsWithoutTextures ( ) : bool
return bool

LoadTexturesFrom() public method

public LoadTexturesFrom ( string filename ) : void
filename string
return void

RemoveAllByName() public method

public RemoveAllByName ( Kn5Node node, string name ) : int
node Kn5Node
name string
return int

RemoveAllByName() public method

public RemoveAllByName ( string name ) : int
name string
return int

Save() public method

public Save ( string filename, bool saveNodes = false ) : void
filename string
saveNodes bool
return void

SaveAll() public method

public SaveAll ( string filename ) : void
filename string
return void

SetTexture() public method

public SetTexture ( [ textureName, string filename ) : void
textureName [
filename string
return void

Property Details

FbxConverterLocation public_oe static_oe property

public static string FbxConverterLocation
return string

Header public_oe property

public Kn5Header,AcTools.Kn5File Header
return Kn5Header

Materials public_oe property

public Dictionary Materials
return Kn5Material>.Dictionary

NodesBytes public_oe property

public byte[] NodesBytes
return byte[]

RootNode public_oe property

public Kn5Node,AcTools.Kn5File RootNode
return Kn5Node

Textures public_oe property

public Dictionary Textures
return Kn5Texture>.Dictionary

TexturesData public_oe property

public Dictionary TexturesData
return byte[]>.Dictionary