assimp/port/Assimp.NET/Assimp.NET_CS/aiNode.cs

139 lines
4.1 KiB
C#
Raw Normal View History

/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* 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;
Assimp_NETPINVOKE.delete_aiNode(swigCPtr);
}
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this);
}
}
public aiString mName {
set {
Assimp_NETPINVOKE.aiNode_mName_set(swigCPtr, aiString.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiNode_mName_get(swigCPtr);
aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false);
return ret;
}
}
public aiMatrix4x4 mTransformation {
set {
Assimp_NETPINVOKE.aiNode_mTransformation_set(swigCPtr, aiMatrix4x4.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiNode_mTransformation_get(swigCPtr);
aiMatrix4x4 ret = (cPtr == IntPtr.Zero) ? null : new aiMatrix4x4(cPtr, false);
return ret;
}
}
public aiNode mParent {
set {
Assimp_NETPINVOKE.aiNode_mParent_set(swigCPtr, aiNode.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiNode_mParent_get(swigCPtr);
aiNode ret = (cPtr == IntPtr.Zero) ? null : new aiNode(cPtr, false);
return ret;
}
}
public uint mNumChildren {
set {
Assimp_NETPINVOKE.aiNode_mNumChildren_set(swigCPtr, value);
}
get {
uint ret = Assimp_NETPINVOKE.aiNode_mNumChildren_get(swigCPtr);
return ret;
}
}
public SWIGTYPE_p_p_aiNode mChildren {
set {
Assimp_NETPINVOKE.aiNode_mChildren_set(swigCPtr, SWIGTYPE_p_p_aiNode.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiNode_mChildren_get(swigCPtr);
SWIGTYPE_p_p_aiNode ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_aiNode(cPtr, false);
return ret;
}
}
public uint mNumMeshes {
set {
Assimp_NETPINVOKE.aiNode_mNumMeshes_set(swigCPtr, value);
}
get {
uint ret = Assimp_NETPINVOKE.aiNode_mNumMeshes_get(swigCPtr);
return ret;
}
}
public SWIGTYPE_p_unsigned_int mMeshes {
set {
Assimp_NETPINVOKE.aiNode_mMeshes_set(swigCPtr, SWIGTYPE_p_unsigned_int.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiNode_mMeshes_get(swigCPtr);
SWIGTYPE_p_unsigned_int ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_int(cPtr, false);
return ret;
}
}
public aiNode() : this(Assimp_NETPINVOKE.new_aiNode__SWIG_0(), true) {
}
public aiNode(string name) : this(Assimp_NETPINVOKE.new_aiNode__SWIG_1(name), true) {
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
}
public aiNode FindNode(aiString name) {
IntPtr cPtr = Assimp_NETPINVOKE.aiNode_FindNode__SWIG_0(swigCPtr, aiString.getCPtr(name));
aiNode ret = (cPtr == IntPtr.Zero) ? null : new aiNode(cPtr, false);
if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public aiNode FindNode(string name) {
IntPtr cPtr = Assimp_NETPINVOKE.aiNode_FindNode__SWIG_1(swigCPtr, name);
aiNode ret = (cPtr == IntPtr.Zero) ? null : new aiNode(cPtr, false);
return ret;
}
}