106 lines
4.1 KiB
C#
106 lines
4.1 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
//------------------------------------------------------------------------------
|
|
// <auto-generated />
|
|
//
|
|
// 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 FDatasmithFacadeExpressionInput : global::System.IDisposable {
|
|
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
|
|
protected bool swigCMemOwn;
|
|
|
|
internal FDatasmithFacadeExpressionInput(global::System.IntPtr cPtr, bool cMemoryOwn) {
|
|
swigCMemOwn = cMemoryOwn;
|
|
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
|
|
}
|
|
|
|
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FDatasmithFacadeExpressionInput obj) {
|
|
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
|
|
}
|
|
|
|
~FDatasmithFacadeExpressionInput() {
|
|
Dispose(false);
|
|
}
|
|
|
|
public void Dispose() {
|
|
Dispose(true);
|
|
global::System.GC.SuppressFinalize(this);
|
|
}
|
|
|
|
protected virtual void Dispose(bool disposing) {
|
|
lock(this) {
|
|
if (swigCPtr.Handle != global::System.IntPtr.Zero) {
|
|
if (swigCMemOwn) {
|
|
swigCMemOwn = false;
|
|
DatasmithFacadeCSharpPINVOKE.delete_FDatasmithFacadeExpressionInput(swigCPtr);
|
|
}
|
|
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
|
|
}
|
|
}
|
|
}
|
|
|
|
public string GetName() {
|
|
string ret = global::System.Runtime.InteropServices.Marshal.PtrToStringUni(DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeExpressionInput_GetName(swigCPtr));
|
|
return ret;
|
|
}
|
|
|
|
public void SetName(string InName) {
|
|
DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeExpressionInput_SetName(swigCPtr, InName);
|
|
}
|
|
|
|
public FDatasmithFacadeMaterialExpression GetExpression() {
|
|
global::System.IntPtr objectPtr = DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeExpressionInput_GetExpression(swigCPtr);
|
|
if(objectPtr == global::System.IntPtr.Zero)
|
|
{
|
|
return null;
|
|
}
|
|
else
|
|
{
|
|
//Query the type with a temporary wrapper with no memory ownership.
|
|
EDatasmithFacadeMaterialExpressionType ExpressionType = (new FDatasmithFacadeMaterialExpression(objectPtr, false)).GetExpressionType();
|
|
|
|
switch(ExpressionType)
|
|
{
|
|
case EDatasmithFacadeMaterialExpressionType.ConstantBool:
|
|
return new FDatasmithFacadeMaterialExpressionBool(objectPtr, true);
|
|
case EDatasmithFacadeMaterialExpressionType.ConstantColor:
|
|
return new FDatasmithFacadeMaterialExpressionColor(objectPtr, true);
|
|
case EDatasmithFacadeMaterialExpressionType.ConstantScalar:
|
|
return new FDatasmithFacadeMaterialExpressionScalar(objectPtr, true);
|
|
case EDatasmithFacadeMaterialExpressionType.FlattenNormal:
|
|
return new FDatasmithFacadeMaterialExpressionFlattenNormal(objectPtr, true);
|
|
case EDatasmithFacadeMaterialExpressionType.FunctionCall:
|
|
return new FDatasmithFacadeMaterialExpressionFunctionCall(objectPtr, true);
|
|
case EDatasmithFacadeMaterialExpressionType.Generic:
|
|
return new FDatasmithFacadeMaterialExpressionGeneric(objectPtr, true);
|
|
case EDatasmithFacadeMaterialExpressionType.Texture:
|
|
return new FDatasmithFacadeMaterialExpressionTexture(objectPtr, true);
|
|
case EDatasmithFacadeMaterialExpressionType.TextureCoordinate:
|
|
return new FDatasmithFacadeMaterialExpressionTextureCoordinate(objectPtr, true);
|
|
default:
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
|
|
public void SetExpression(FDatasmithFacadeMaterialExpression InExpression) {
|
|
DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeExpressionInput_SetExpression(swigCPtr, FDatasmithFacadeMaterialExpression.getCPtr(InExpression));
|
|
}
|
|
|
|
public int GetOutputIndex() {
|
|
int ret = DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeExpressionInput_GetOutputIndex(swigCPtr);
|
|
return ret;
|
|
}
|
|
|
|
public void SetOutputIndex(int InOutputIndex) {
|
|
DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeExpressionInput_SetOutputIndex(swigCPtr, InOutputIndex);
|
|
}
|
|
|
|
}
|