コード例 #1
0
ファイル: UsdPrim.cs プロジェクト: feniksa/usd-unity-sdk
        public UsdProperty GetPropertyAtPath(SdfPath path)
        {
            UsdProperty ret = new UsdProperty(UsdCsPINVOKE.UsdPrim_GetPropertyAtPath(swigCPtr, SdfPath.getCPtr(path)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #2
0
ファイル: UsdProperty.cs プロジェクト: rodeofx/usd-unity-sdk
        public UsdProperty FlattenTo(UsdProperty property)
        {
            UsdProperty ret = new UsdProperty(UsdCsPINVOKE.UsdProperty_FlattenTo__SWIG_2(swigCPtr, UsdProperty.getCPtr(property)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #3
0
ファイル: UsdPrim.cs プロジェクト: feniksa/usd-unity-sdk
        public UsdProperty GetProperty(TfToken propName)
        {
            UsdProperty ret = new UsdProperty(UsdCsPINVOKE.UsdPrim_GetProperty(swigCPtr, TfToken.getCPtr(propName)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #4
0
        public static TfToken GetRiAttributeNameSpace(UsdProperty prop)
        {
            TfToken ret = new TfToken(UsdCsPINVOKE.UsdRiStatementsAPI_GetRiAttributeNameSpace(UsdProperty.getCPtr(prop)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #5
0
ファイル: UsdProperty.cs プロジェクト: rodeofx/usd-unity-sdk
        public UsdProperty FlattenTo(UsdPrim parent, TfToken propName)
        {
            UsdProperty ret = new UsdProperty(UsdCsPINVOKE.UsdProperty_FlattenTo__SWIG_1(swigCPtr, UsdPrim.getCPtr(parent), TfToken.getCPtr(propName)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #6
0
        public static bool IsRiAttribute(UsdProperty prop)
        {
            bool ret = UsdCsPINVOKE.UsdRiStatementsAPI_IsRiAttribute(UsdProperty.getCPtr(prop));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #7
0
        public static bool IsSourceConnectionFromBaseMaterial(UsdProperty shadingProp)
        {
            bool ret = UsdCsPINVOKE.UsdShadeConnectableAPI_IsSourceConnectionFromBaseMaterial__SWIG_0(UsdProperty.getCPtr(shadingProp));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #8
0
        public static bool ClearSource(UsdProperty shadingProp)
        {
            bool ret = UsdCsPINVOKE.UsdShadeConnectableAPI_ClearSource__SWIG_0(UsdProperty.getCPtr(shadingProp));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #9
0
        public static bool GetRawConnectedSourcePaths(UsdProperty shadingProp, SdfPathVector sourcePaths)
        {
            bool ret = UsdCsPINVOKE.UsdShadeConnectableAPI_GetRawConnectedSourcePaths__SWIG_0(UsdProperty.getCPtr(shadingProp), SdfPathVector.getCPtr(sourcePaths));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #10
0
        public static bool GetConnectedSource(UsdProperty shadingProp, UsdShadeConnectableAPI source, TfToken sourceName, out UsdShadeAttributeType sourceType)
        {
            bool ret = UsdCsPINVOKE.UsdShadeConnectableAPI_GetConnectedSource__SWIG_0(UsdProperty.getCPtr(shadingProp), UsdShadeConnectableAPI.getCPtr(source), TfToken.getCPtr(sourceName), out sourceType);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #11
0
        public static bool ConnectToSource(UsdProperty shadingProp, UsdShadeOutput sourceOutput)
        {
            bool ret = UsdCsPINVOKE.UsdShadeConnectableAPI_ConnectToSource__SWIG_15(UsdProperty.getCPtr(shadingProp), UsdShadeOutput.getCPtr(sourceOutput));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #12
0
        public static bool ConnectToSource(UsdProperty shadingProp, UsdShadeConnectableAPI source, TfToken sourceName)
        {
            bool ret = UsdCsPINVOKE.UsdShadeConnectableAPI_ConnectToSource__SWIG_2(UsdProperty.getCPtr(shadingProp), UsdShadeConnectableAPI.getCPtr(source), TfToken.getCPtr(sourceName));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #13
0
ファイル: UsdProperty.cs プロジェクト: rodeofx/usd-unity-sdk
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(UsdProperty obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
コード例 #14
0
        public UsdProperty GetProperty()
        {
            UsdProperty ret = new UsdProperty(UsdCsPINVOKE.UsdShadeOutput_GetProperty(swigCPtr), false);

            return(ret);
        }