public SdfUnregisteredValue(VtDictionary value) : this(UsdCsPINVOKE.new_SdfUnregisteredValue__SWIG_2(VtDictionary.getCPtr(value)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #2
0
 public VtDictionary(VtDictionary other) : this(UsdCsPINVOKE.new_VtDictionary__SWIG_3(VtDictionary.getCPtr(other)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #3
0
 public void SetAssetInfo(VtDictionary info)
 {
     UsdCsPINVOKE.UsdModelAPI_SetAssetInfo(swigCPtr, VtDictionary.getCPtr(info));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public void SetSuffixSubstitutions(VtDictionary suffixSubstitutions)
 {
     UsdCsPINVOKE.SdfPrimSpec_SetSuffixSubstitutions(swigCPtr, VtDictionary.getCPtr(suffixSubstitutions));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #5
0
 public void SetAssetInfo(VtDictionary customData)
 {
     UsdCsPINVOKE.UsdObject_SetAssetInfo(swigCPtr, VtDictionary.getCPtr(customData));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public void SwapCustomData(VtDictionary customData)
 {
     UsdCsPINVOKE.SdfReference_SwapCustomData(swigCPtr, VtDictionary.getCPtr(customData));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #7
0
 public void swap(VtDictionary dict)
 {
     UsdCsPINVOKE.VtDictionary_swap(swigCPtr, VtDictionary.getCPtr(dict));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #8
0
        static void ReadModelInfo(ref HierInfo info)
        {
            if (!info.prim)
            {
                return;
            }

            var modelApi = new UsdModelAPI(info.prim);

            if (!modelApi)
            {
                return;
            }

            var kindTok = new TfToken();

            if (!modelApi.GetKind(kindTok))
            {
                return;
            }

            if (KindRegistry.IsA(kindTok, KindTokens.assembly))
            {
                info.isAssembly = true;
            }
            else if (!modelApi.IsModel() || modelApi.IsGroup())
            {
                return;
            }

            var modelInfo = new VtDictionary();

            if (!modelApi.GetAssetInfo(modelInfo))
            {
                return;
            }

            info.isModel = true;

            var valName       = modelInfo.GetValueAtPath("name");
            var valVersion    = modelInfo.GetValueAtPath("version");
            var valIdentifier = modelInfo.GetValueAtPath("identifier");

            if (valIdentifier != null && !valIdentifier.IsEmpty())
            {
                info.modelAssetPath = UsdCs.VtValueToSdfAssetPath(valIdentifier).GetAssetPath().ToString();
            }

            if (valName != null && !valName.IsEmpty())
            {
                info.modelName = UsdCs.VtValueTostring(valName);
            }

            if (valVersion != null && !valVersion.IsEmpty())
            {
                info.modelVersion = UsdCs.VtValueTostring(valVersion);
            }
        }
        public bool SetClips(VtDictionary clips)
        {
            bool ret = UsdCsPINVOKE.UsdClipsAPI_SetClips(swigCPtr, VtDictionary.getCPtr(clips));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public VtDictionary GetCustomData()
        {
            VtDictionary ret = new VtDictionary(UsdCsPINVOKE.SdfReference_GetCustomData(swigCPtr), false);

            return(ret);
        }
Exemple #11
0
        public bool GetAssetInfo(VtDictionary info)
        {
            bool ret = UsdCsPINVOKE.UsdModelAPI_GetAssetInfo(swigCPtr, VtDictionary.getCPtr(info));

            return(ret);
        }
Exemple #12
0
        public VtDictionary GetSuffixSubstitutions()
        {
            VtDictionary ret = new VtDictionary(UsdCsPINVOKE.SdfPrimSpec_GetSuffixSubstitutions(swigCPtr), true);

            return(ret);
        }
Exemple #13
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(VtDictionary obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Exemple #14
0
        public VtDictionary GetAssetInfo()
        {
            VtDictionary ret = new VtDictionary(UsdCsPINVOKE.UsdObject_GetAssetInfo(swigCPtr), true);

            return(ret);
        }
Exemple #15
0
        public VtDictionary GetCustomData()
        {
            VtDictionary ret = new VtDictionary(UsdCsPINVOKE.UsdObject_GetCustomData(swigCPtr), true);

            return(ret);
        }
 public SdfReference(string assetPath, SdfPath primPath, SdfLayerOffset layerOffset, VtDictionary customData) : this(UsdCsPINVOKE.new_SdfReference__SWIG_0(assetPath, SdfPath.getCPtr(primPath), SdfLayerOffset.getCPtr(layerOffset), VtDictionary.getCPtr(customData)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #17
0
        public bool GetClips(VtDictionary clips)
        {
            bool ret = UsdCsPINVOKE.UsdClipsAPI_GetClips(swigCPtr, VtDictionary.getCPtr(clips));

            return(ret);
        }