// Copyright Epic Games, Inc. All Rights Reserved. //------------------------------------------------------------------------------ // // // This file was automatically generated by SWIG (http://www.swig.org). // Version 4.0.1 // // Do not make changes to this file unless you know what you are doing--modify // the SWIG interface file instead. //------------------------------------------------------------------------------ public class FDatasmithFacadeActor : FDatasmithFacadeElement { private global::System.Runtime.InteropServices.HandleRef swigCPtr; internal FDatasmithFacadeActor(global::System.IntPtr cPtr, bool cMemoryOwn) : base(DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeActor_SWIGUpcast(cPtr), cMemoryOwn) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FDatasmithFacadeActor obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } protected override void Dispose(bool disposing) { lock(this) { if (swigCPtr.Handle != global::System.IntPtr.Zero) { if (swigCMemOwn) { swigCMemOwn = false; DatasmithFacadeCSharpPINVOKE.delete_FDatasmithFacadeActor(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } base.Dispose(disposing); } } public FDatasmithFacadeActor(string InElementName) : this(DatasmithFacadeCSharpPINVOKE.new_FDatasmithFacadeActor(InElementName), true) { } public void SetWorldTransform(double[] InWorldMatrix, bool bRowMajor) { DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeActor_SetWorldTransform__SWIG_0(swigCPtr, InWorldMatrix, bRowMajor); } public void SetWorldTransform(double[] InWorldMatrix) { DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeActor_SetWorldTransform__SWIG_1(swigCPtr, InWorldMatrix); } public void SetWorldTransform(float[] InWorldMatrix, bool bRowMajor) { DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeActor_SetWorldTransform__SWIG_2(swigCPtr, InWorldMatrix, bRowMajor); } public void SetWorldTransform(float[] InWorldMatrix) { DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeActor_SetWorldTransform__SWIG_3(swigCPtr, InWorldMatrix); } public void SetScale(double X, double Y, double Z) { DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeActor_SetScale(swigCPtr, X, Y, Z); } public void GetScale(out double OutX, out double OutY, out double OutZ) { DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeActor_GetScale(swigCPtr, out OutX, out OutY, out OutZ); } public void SetRotation(double Pitch, double Yaw, double Roll) { DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeActor_SetRotation__SWIG_0(swigCPtr, Pitch, Yaw, Roll); } public void GetRotation(out double OutPitch, out double OutYaw, out double OutRoll) { DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeActor_GetRotation__SWIG_0(swigCPtr, out OutPitch, out OutYaw, out OutRoll); } public void SetRotation(double X, double Y, double Z, double W) { DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeActor_SetRotation__SWIG_1(swigCPtr, X, Y, Z, W); } public void GetRotation(out double OutX, out double OutY, out double OutZ, out double OutW) { DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeActor_GetRotation__SWIG_1(swigCPtr, out OutX, out OutY, out OutZ, out OutW); } public void SetTranslation(double X, double Y, double Z) { DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeActor_SetTranslation(swigCPtr, X, Y, Z); } public void GetTranslation(out double OutX, out double OutY, out double OutZ) { DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeActor_GetTranslation(swigCPtr, out OutX, out OutY, out OutZ); } public void SetLayer(string InLayerName) { DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeActor_SetLayer(swigCPtr, InLayerName); } public string GetLayer() { string ret = global::System.Runtime.InteropServices.Marshal.PtrToStringUni(DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeActor_GetLayer(swigCPtr)); return ret; } public void AddTag(string InTag) { DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeActor_AddTag(swigCPtr, InTag); } public void ResetTags() { DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeActor_ResetTags(swigCPtr); } public int GetTagsCount() { int ret = DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeActor_GetTagsCount(swigCPtr); return ret; } public string GetTag(int TagIndex) { string ret = global::System.Runtime.InteropServices.Marshal.PtrToStringUni(DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeActor_GetTag(swigCPtr, TagIndex)); return ret; } public bool IsComponent() { bool ret = DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeActor_IsComponent(swigCPtr); return ret; } public void SetIsComponent(bool bInIsComponent) { DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeActor_SetIsComponent(swigCPtr, bInIsComponent); } public void AddChild(FDatasmithFacadeActor InChildActorPtr) { DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeActor_AddChild(swigCPtr, FDatasmithFacadeActor.getCPtr(InChildActorPtr)); } public int GetChildrenCount() { int ret = DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeActor_GetChildrenCount(swigCPtr); return ret; } public FDatasmithFacadeActor GetChild(int InIndex) { global::System.IntPtr objectPtr = DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeActor_GetChild(swigCPtr, InIndex); if(objectPtr == global::System.IntPtr.Zero) { return null; } else { FDatasmithFacadeActor.EActorType ActorType = (new FDatasmithFacadeActor(objectPtr, false)).GetActorType(); switch(ActorType) { case FDatasmithFacadeActor.EActorType.DirectionalLight: return new FDatasmithFacadeDirectionalLight(objectPtr, true); case FDatasmithFacadeActor.EActorType.AreaLight: return new FDatasmithFacadeAreaLight(objectPtr, true); case FDatasmithFacadeActor.EActorType.LightmassPortal: return new FDatasmithFacadeLightmassPortal(objectPtr, true); case FDatasmithFacadeActor.EActorType.PointLight: return new FDatasmithFacadePointLight(objectPtr, true); case FDatasmithFacadeActor.EActorType.SpotLight: return new FDatasmithFacadeSpotLight(objectPtr, true); case FDatasmithFacadeActor.EActorType.StaticMeshActor: return new FDatasmithFacadeActorMesh(objectPtr, true); case FDatasmithFacadeActor.EActorType.Camera: return new FDatasmithFacadeActorCamera(objectPtr, true); case FDatasmithFacadeActor.EActorType.Decal: return new FDatasmithFacadeActorDecal(objectPtr, true); case FDatasmithFacadeActor.EActorType.Actor: return new FDatasmithFacadeActor(objectPtr, true); case FDatasmithFacadeActor.EActorType.Unsupported: default: return null; } } } public void RemoveChild(FDatasmithFacadeActor InChild) { DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeActor_RemoveChild(swigCPtr, FDatasmithFacadeActor.getCPtr(InChild)); } public FDatasmithFacadeActor GetParentActor() { global::System.IntPtr objectPtr = DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeActor_GetParentActor(swigCPtr); if(objectPtr == global::System.IntPtr.Zero) { return null; } else { FDatasmithFacadeActor.EActorType ActorType = (new FDatasmithFacadeActor(objectPtr, false)).GetActorType(); switch(ActorType) { case FDatasmithFacadeActor.EActorType.DirectionalLight: return new FDatasmithFacadeDirectionalLight(objectPtr, true); case FDatasmithFacadeActor.EActorType.AreaLight: return new FDatasmithFacadeAreaLight(objectPtr, true); case FDatasmithFacadeActor.EActorType.LightmassPortal: return new FDatasmithFacadeLightmassPortal(objectPtr, true); case FDatasmithFacadeActor.EActorType.PointLight: return new FDatasmithFacadePointLight(objectPtr, true); case FDatasmithFacadeActor.EActorType.SpotLight: return new FDatasmithFacadeSpotLight(objectPtr, true); case FDatasmithFacadeActor.EActorType.StaticMeshActor: return new FDatasmithFacadeActorMesh(objectPtr, true); case FDatasmithFacadeActor.EActorType.Camera: return new FDatasmithFacadeActorCamera(objectPtr, true); case FDatasmithFacadeActor.EActorType.Decal: return new FDatasmithFacadeActorDecal(objectPtr, true); case FDatasmithFacadeActor.EActorType.Actor: return new FDatasmithFacadeActor(objectPtr, true); case FDatasmithFacadeActor.EActorType.Unsupported: default: return null; } } } public void SetVisibility(bool bInVisibility) { DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeActor_SetVisibility(swigCPtr, bInVisibility); } public bool GetVisibility() { bool ret = DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeActor_GetVisibility(swigCPtr); return ret; } public void SetCastShadow(bool bInCastShadow) { DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeActor_SetCastShadow(swigCPtr, bInCastShadow); } public bool GetCastShadow() { bool ret = DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeActor_GetCastShadow(swigCPtr); return ret; } public FDatasmithFacadeActor.EActorType GetActorType() { FDatasmithFacadeActor.EActorType ret = (FDatasmithFacadeActor.EActorType)DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeActor_GetActorType(swigCPtr); return ret; } public enum EActorType { DirectionalLight, AreaLight, EnvironmentLight, LightmassPortal, PointLight, SpotLight, StaticMeshActor, Camera, Actor, Decal, Unsupported } }