C# Class AcTools.Kn5File.Kn5

Afficher le fichier Open project: gro-ove/actools Class Usage Examples

Méthodes publiques

Свойство Type Description
FbxConverterLocation string
Header Kn5Header
Materials Kn5Material>.Dictionary
NodesBytes byte[]
RootNode Kn5Node
Textures Kn5Texture>.Dictionary
TexturesData byte[]>.Dictionary

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Combine ( Kn5 other ) : void
other Kn5
Résultat void

Combine() public méthode

public Combine ( Kn5 other, float position, float rotation ) : void
other Kn5
position float
rotation float
Résultat void

ConvertColladaToFbx() public méthode

public ConvertColladaToFbx ( string colladaFilename, string fbxFilename ) : void
colladaFilename string
fbxFilename string
Résultat void

CreateEmpty() public static méthode

public static CreateEmpty ( ) : Kn5
Résultat Kn5

ExportCollada() public méthode

public ExportCollada ( string filename ) : void
filename string
Résultat void

ExportFbx() public méthode

public ExportFbx ( string filename ) : void
filename string
Résultat void

ExportFbxWithIni() public méthode

public ExportFbxWithIni ( string fbxFilename ) : void
fbxFilename string
Résultat void

ExportFbxWithIniAsync() public méthode

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

ExportIni_Header() public méthode

public ExportIni_Header ( System.IO.IniFile iniFile ) : void
iniFile System.IO.IniFile
Résultat void

ExportTextures() public méthode

public ExportTextures ( string textureDir ) : void
textureDir string
Résultat void

ExportTexturesAsync() public méthode

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

FromDirectory() public static méthode

public static FromDirectory ( string dir, bool jsonMode ) : Kn5
dir string
jsonMode bool
Résultat Kn5

FromFile() public static méthode

public static FromFile ( string filename, bool skipTextures = false ) : Kn5
filename string
skipTextures bool
Résultat Kn5

FromHeaderJson() public méthode

public FromHeaderJson ( string file ) : Kn5Header
file string
Résultat Kn5Header

FromMaterialsJson() public méthode

public FromMaterialsJson ( string file ) : Kn5Material>.Dictionary
file string
Résultat Kn5Material>.Dictionary

FromModelsIniFile() public static méthode

public static FromModelsIniFile ( string filename, bool skipTextures = false ) : Kn5
filename string
skipTextures bool
Résultat Kn5

FromNodesJson() public méthode

public FromNodesJson ( string file ) : Kn5Node
file string
Résultat Kn5Node

FromStream() public static méthode

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

IsWithoutTextures() public méthode

public IsWithoutTextures ( ) : bool
Résultat bool

LoadTexturesFrom() public méthode

public LoadTexturesFrom ( string filename ) : void
filename string
Résultat void

RemoveAllByName() public méthode

public RemoveAllByName ( Kn5Node node, string name ) : int
node Kn5Node
name string
Résultat int

RemoveAllByName() public méthode

public RemoveAllByName ( string name ) : int
name string
Résultat int

Save() public méthode

public Save ( string filename, bool saveNodes = false ) : void
filename string
saveNodes bool
Résultat void

SaveAll() public méthode

public SaveAll ( string filename ) : void
filename string
Résultat void

SetTexture() public méthode

public SetTexture ( [ textureName, string filename ) : void
textureName [
filename string
Résultat void

Property Details

FbxConverterLocation public_oe static_oe property

public static string FbxConverterLocation
Résultat string

Header public_oe property

public Kn5Header,AcTools.Kn5File Header
Résultat Kn5Header

Materials public_oe property

public Dictionary Materials
Résultat Kn5Material>.Dictionary

NodesBytes public_oe property

public byte[] NodesBytes
Résultat byte[]

RootNode public_oe property

public Kn5Node,AcTools.Kn5File RootNode
Résultat Kn5Node

Textures public_oe property

public Dictionary Textures
Résultat Kn5Texture>.Dictionary

TexturesData public_oe property

public Dictionary TexturesData
Résultat byte[]>.Dictionary