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 aiNode : IDisposable {
|
|
|
|
private HandleRef swigCPtr;
|
|
|
|
protected bool swigCMemOwn;
|
|
|
|
|
|
|
|
internal aiNode(IntPtr cPtr, bool cMemoryOwn) {
|
|
|
|
swigCMemOwn = cMemoryOwn;
|
|
|
|
swigCPtr = new HandleRef(this, cPtr);
|
|
|
|
}
|
|
|
|
|
|
|
|
internal static HandleRef getCPtr(aiNode obj) {
|
|
|
|
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
|
|
}
|
|
|
|
|
|
|
|
~aiNode() {
|
|
|
|
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_aiNode(swigCPtr);
|
2010-05-27 18:28:02 +00:00
|
|
|
}
|
|
|
|
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
|
|
}
|
|
|
|
GC.SuppressFinalize(this);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-07-12 13:13:43 +00:00
|
|
|
public aiNodeVector mChildren { get { return GetmChildren(); } }
|
|
|
|
public UintVector mMeshes { get { return GetmMeshes(); } }
|
|
|
|
|
2010-05-27 18:28:02 +00:00
|
|
|
public aiString mName {
|
|
|
|
set {
|
2010-07-12 13:13:43 +00:00
|
|
|
AssimpPINVOKE.aiNode_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.aiNode_mName_get(swigCPtr);
|
2010-05-27 18:28:02 +00:00
|
|
|
aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public aiMatrix4x4 mTransformation {
|
|
|
|
set {
|
2010-07-12 13:13:43 +00:00
|
|
|
AssimpPINVOKE.aiNode_mTransformation_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.aiNode_mTransformation_get(swigCPtr);
|
2010-05-27 18:28:02 +00:00
|
|
|
aiMatrix4x4 ret = (cPtr == IntPtr.Zero) ? null : new aiMatrix4x4(cPtr, false);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public aiNode mParent {
|
|
|
|
set {
|
2010-07-12 13:13:43 +00:00
|
|
|
AssimpPINVOKE.aiNode_mParent_set(swigCPtr, aiNode.getCPtr(value));
|
2010-05-27 18:28:02 +00:00
|
|
|
}
|
|
|
|
get {
|
2010-07-12 13:13:43 +00:00
|
|
|
IntPtr cPtr = AssimpPINVOKE.aiNode_mParent_get(swigCPtr);
|
2010-05-27 18:28:02 +00:00
|
|
|
aiNode ret = (cPtr == IntPtr.Zero) ? null : new aiNode(cPtr, false);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public uint mNumChildren {
|
|
|
|
set {
|
2010-07-12 13:13:43 +00:00
|
|
|
AssimpPINVOKE.aiNode_mNumChildren_set(swigCPtr, value);
|
2010-05-27 18:28:02 +00:00
|
|
|
}
|
|
|
|
get {
|
2010-07-12 13:13:43 +00:00
|
|
|
uint ret = AssimpPINVOKE.aiNode_mNumChildren_get(swigCPtr);
|
2010-05-27 18:28:02 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public uint mNumMeshes {
|
|
|
|
set {
|
2010-07-12 13:13:43 +00:00
|
|
|
AssimpPINVOKE.aiNode_mNumMeshes_set(swigCPtr, value);
|
2010-05-27 18:28:02 +00:00
|
|
|
}
|
|
|
|
get {
|
2010-07-12 13:13:43 +00:00
|
|
|
uint ret = AssimpPINVOKE.aiNode_mNumMeshes_get(swigCPtr);
|
2010-05-27 18:28:02 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-07-12 13:13:43 +00:00
|
|
|
public aiNode() : this(AssimpPINVOKE.new_aiNode__SWIG_0(), true) {
|
2010-05-27 18:28:02 +00:00
|
|
|
}
|
|
|
|
|
2010-07-12 13:13:43 +00:00
|
|
|
public aiNode(string name) : this(AssimpPINVOKE.new_aiNode__SWIG_1(name), true) {
|
|
|
|
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
2010-05-27 18:28:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public aiNode FindNode(aiString name) {
|
2010-07-12 13:13:43 +00:00
|
|
|
IntPtr cPtr = AssimpPINVOKE.aiNode_FindNode__SWIG_0(swigCPtr, aiString.getCPtr(name));
|
2010-05-27 18:28:02 +00:00
|
|
|
aiNode ret = (cPtr == IntPtr.Zero) ? null : new aiNode(cPtr, false);
|
2010-07-12 13:13:43 +00:00
|
|
|
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
2010-05-27 18:28:02 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
public aiNode FindNode(string name) {
|
2010-07-12 13:13:43 +00:00
|
|
|
IntPtr cPtr = AssimpPINVOKE.aiNode_FindNode__SWIG_1(swigCPtr, name);
|
2010-05-27 18:28:02 +00:00
|
|
|
aiNode ret = (cPtr == IntPtr.Zero) ? null : new aiNode(cPtr, false);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2010-07-12 13:13:43 +00:00
|
|
|
private aiNodeVector GetmChildren() {
|
|
|
|
IntPtr cPtr = AssimpPINVOKE.aiNode_GetmChildren(swigCPtr);
|
|
|
|
aiNodeVector ret = (cPtr == IntPtr.Zero) ? null : new aiNodeVector(cPtr, true);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
private UintVector GetmMeshes() {
|
|
|
|
IntPtr cPtr = AssimpPINVOKE.aiNode_GetmMeshes(swigCPtr);
|
|
|
|
UintVector ret = (cPtr == IntPtr.Zero) ? null : new UintVector(cPtr, true);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2010-05-27 18:28:02 +00:00
|
|
|
}
|