C# Class ColladaSlimDX.Utils.COLLADAUtil

Mostrar archivo Open project: vvvv/ColladaSlimDX

Public Methods

Method Description
GetAllInputs ( Document primitive ) : List

Helper function. Returns all the inputs of the primitive. Resolve the 'VERTEX' indirection case. The COLLADA document The "" we need the inputs from.

GetInput ( Document primitive, string semantic ) : List

Helper function. Returns inputs with specified semantic for specified primitive. Resolves the 'VERTEX' indirection case.

GetNodeByName ( Document root, string sid ) : Document.Node
GetPValue ( Document input, Document primitive, int index ) : int

Helper function, returns the p[] value for the given index

GetPositionInput ( Document mesh ) : Document.Input

Helper function, returns the "" that has the POSITION semantic

GetSourceElement ( Document doc, Document input, int index ) : float[]

Helper function, returns the element of a source for the given index

GetTargetNodeId ( Document doc, string targetAddress ) : string
Log ( COLLADALogType type, string msg ) : void
Log ( ColladaException e ) : void
Log ( Exception e ) : void
Log ( string msg ) : void

Method Details

GetAllInputs() public static method

Helper function. Returns all the inputs of the primitive. Resolve the 'VERTEX' indirection case. The COLLADA document The "" we need the inputs from.
public static GetAllInputs ( Document primitive ) : List
primitive Document
return List

GetInput() public static method

Helper function. Returns inputs with specified semantic for specified primitive. Resolves the 'VERTEX' indirection case.
public static GetInput ( Document primitive, string semantic ) : List
primitive Document The "" we need the inputs from.
semantic string The semantic the inputs should have.
return List

GetNodeByName() public static method

public static GetNodeByName ( Document root, string sid ) : Document.Node
root Document
sid string
return Document.Node

GetPValue() public static method

Helper function, returns the p[] value for the given index
public static GetPValue ( Document input, Document primitive, int index ) : int
input Document The "" element we need the index of.
primitive Document The "" element the "" is from.
index int The index for which we need the p[] value.
return int

GetPositionInput() public static method

Helper function, returns the "" that has the POSITION semantic
public static GetPositionInput ( Document mesh ) : Document.Input
mesh Document The "" element we need the POSITION from.
return Document.Input

GetSourceElement() public static method

Helper function, returns the element of a source for the given index
public static GetSourceElement ( Document doc, Document input, int index ) : float[]
doc Document The COLLADA document
input Document The "" element we need the index of.
index int The index for which we need the value.
return float[]

GetTargetNodeId() public static method

public static GetTargetNodeId ( Document doc, string targetAddress ) : string
doc Document
targetAddress string
return string

Log() public static method

public static Log ( COLLADALogType type, string msg ) : void
type COLLADALogType
msg string
return void

Log() public static method

public static Log ( ColladaException e ) : void
e ColladaException
return void

Log() public static method

public static Log ( Exception e ) : void
e System.Exception
return void

Log() public static method

public static Log ( string msg ) : void
msg string
return void