2010-05-27 18:28:02 +00:00
|
|
|
/* ----------------------------------------------------------------------------
|
|
|
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
2012-11-03 02:49:19 +00:00
|
|
|
* Version 2.0.8
|
2010-05-27 18:28:02 +00:00
|
|
|
*
|
|
|
|
* Do not make changes to this file unless you know what you are doing--modify
|
|
|
|
* the SWIG interface file instead.
|
|
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
|
|
public class aiBone : IDisposable {
|
|
|
|
private HandleRef swigCPtr;
|
|
|
|
protected bool swigCMemOwn;
|
|
|
|
|
|
|
|
internal aiBone(IntPtr cPtr, bool cMemoryOwn) {
|
|
|
|
swigCMemOwn = cMemoryOwn;
|
|
|
|
swigCPtr = new HandleRef(this, cPtr);
|
|
|
|
}
|
|
|
|
|
|
|
|
internal static HandleRef getCPtr(aiBone obj) {
|
|
|
|
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
|
|
}
|
|
|
|
|
|
|
|
~aiBone() {
|
|
|
|
Dispose();
|
|
|
|
}
|
|
|
|
|
|
|
|
public virtual void Dispose() {
|
|
|
|
lock(this) {
|
|
|
|
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
|
|
if (swigCMemOwn) {
|
|
|
|
swigCMemOwn = false;
|
2010-07-12 13:13:43 +00:00
|
|
|
AssimpPINVOKE.delete_aiBone(swigCPtr);
|
2010-05-27 18:28:02 +00:00
|
|
|
}
|
|
|
|
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
|
|
}
|
|
|
|
GC.SuppressFinalize(this);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public aiString mName {
|
|
|
|
set {
|
2010-07-12 13:13:43 +00:00
|
|
|
AssimpPINVOKE.aiBone_mName_set(swigCPtr, aiString.getCPtr(value));
|
2010-05-27 18:28:02 +00:00
|
|
|
}
|
|
|
|
get {
|
2010-07-12 13:13:43 +00:00
|
|
|
IntPtr cPtr = AssimpPINVOKE.aiBone_mName_get(swigCPtr);
|
2010-05-27 18:28:02 +00:00
|
|
|
aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public uint mNumWeights {
|
|
|
|
set {
|
2010-07-12 13:13:43 +00:00
|
|
|
AssimpPINVOKE.aiBone_mNumWeights_set(swigCPtr, value);
|
2010-05-27 18:28:02 +00:00
|
|
|
}
|
|
|
|
get {
|
2010-07-12 13:13:43 +00:00
|
|
|
uint ret = AssimpPINVOKE.aiBone_mNumWeights_get(swigCPtr);
|
2010-05-27 18:28:02 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public aiMatrix4x4 mOffsetMatrix {
|
|
|
|
set {
|
2010-07-12 13:13:43 +00:00
|
|
|
AssimpPINVOKE.aiBone_mOffsetMatrix_set(swigCPtr, aiMatrix4x4.getCPtr(value));
|
2010-05-27 18:28:02 +00:00
|
|
|
}
|
|
|
|
get {
|
2010-07-12 13:13:43 +00:00
|
|
|
IntPtr cPtr = AssimpPINVOKE.aiBone_mOffsetMatrix_get(swigCPtr);
|
2010-05-27 18:28:02 +00:00
|
|
|
aiMatrix4x4 ret = (cPtr == IntPtr.Zero) ? null : new aiMatrix4x4(cPtr, false);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-07-12 13:13:43 +00:00
|
|
|
public aiBone() : this(AssimpPINVOKE.new_aiBone__SWIG_0(), true) {
|
|
|
|
}
|
|
|
|
|
|
|
|
public aiBone(aiBone other) : this(AssimpPINVOKE.new_aiBone__SWIG_1(aiBone.getCPtr(other)), true) {
|
|
|
|
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
2010-05-27 18:28:02 +00:00
|
|
|
}
|
|
|
|
|
2010-07-12 13:13:43 +00:00
|
|
|
private aiVertexWeightVector GetmWeights() {
|
|
|
|
IntPtr cPtr = AssimpPINVOKE.aiBone_GetmWeights(swigCPtr);
|
|
|
|
aiVertexWeightVector ret = (cPtr == IntPtr.Zero) ? null : new aiVertexWeightVector(cPtr, true);
|
|
|
|
return ret;
|
2010-05-27 18:28:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|