コード例 #1
0
        public ParameterModifier setValues(SWIGTYPE_p_std__vectorT_std__pairT_std__string_std__string_t_t namesValues)
        {
            ParameterModifier ret = new ParameterModifier(csogmaneoPINVOKE.ParameterModifier_setValues(swigCPtr, SWIGTYPE_p_std__vectorT_std__pairT_std__string_std__string_t_t.getCPtr(namesValues)), false);

            if (csogmaneoPINVOKE.SWIGPendingException.Pending)
            {
                throw csogmaneoPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #2
0
        public static SdfLayer GetSessionLayerForVariantSelections(TfToken modelName, SWIGTYPE_p_std__vectorT_std__pairT_std__string_std__string_t_t variantSelections)
        {
            global::System.IntPtr cPtr = UsdCsPINVOKE.UsdUtilsStageCache_GetSessionLayerForVariantSelections(TfToken.getCPtr(modelName), SWIGTYPE_p_std__vectorT_std__pairT_std__string_std__string_t_t.getCPtr(variantSelections));
            SdfLayer ret = (cPtr == global::System.IntPtr.Zero) ? null : new SdfLayer(cPtr, true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_std__vectorT_std__pairT_std__string_std__string_t_t obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }