Ejemplo n.º 1
0
 public UsdEditTarget(SdfLayer layer, PcpNodeRef node) : this(UsdCsPINVOKE.new_UsdEditTarget__SWIG_6(SdfLayer.getCPtr(layer), PcpNodeRef.getCPtr(node)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public PcpNodeRef_ChildrenReverseIterator(PcpNodeRef node) : this(UsdCsPINVOKE.new_PcpNodeRef_ChildrenReverseIterator__SWIG_3(PcpNodeRef.getCPtr(node)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 3
0
        public PcpNodeRef InsertChildSubgraph(SWIGTYPE_p_TfDeclarePtrsT_PcpPrimIndex_Graph_t__Ptr subgraph, PcpArc arc)
        {
            PcpNodeRef ret = new PcpNodeRef(UsdCsPINVOKE.PcpNodeRef_InsertChildSubgraph(swigCPtr, SWIGTYPE_p_TfDeclarePtrsT_PcpPrimIndex_Graph_t__Ptr.getCPtr(subgraph), PcpArc.getCPtr(arc)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 4
0
        public PcpNodeRef InsertChild(SWIGTYPE_p_PcpLayerStackSite site, PcpArc arc)
        {
            PcpNodeRef ret = new PcpNodeRef(UsdCsPINVOKE.PcpNodeRef_InsertChild(swigCPtr, SWIGTYPE_p_PcpLayerStackSite.getCPtr(site), PcpArc.getCPtr(arc)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 5
0
        public PcpNodeRef GetNodeProvidingSpec(SdfLayerHandle layer, SdfPath path)
        {
            PcpNodeRef ret = new PcpNodeRef(UsdCsPINVOKE.PcpPrimIndex_GetNodeProvidingSpec__SWIG_1(swigCPtr, SdfLayerHandle.getCPtr(layer), SdfPath.getCPtr(path)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 6
0
        public PcpNodeRef GetNodeProvidingSpec(SdfPrimSpecHandle primSpec)
        {
            PcpNodeRef ret = new PcpNodeRef(UsdCsPINVOKE.PcpPrimIndex_GetNodeProvidingSpec__SWIG_0(swigCPtr, SdfPrimSpecHandle.getCPtr(primSpec)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 7
0
        public SWIGTYPE_p_PcpPrimRange GetPrimRangeForNode(PcpNodeRef node)
        {
            SWIGTYPE_p_PcpPrimRange ret = new SWIGTYPE_p_PcpPrimRange(UsdCsPINVOKE.PcpPrimIndex_GetPrimRangeForNode(swigCPtr, PcpNodeRef.getCPtr(node)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 8
0
 void WalkLayers(PcpNodeRef node, SdfLayerTreeHandle tree, int indent)
 {
     GUILayout.BeginHorizontal();
     GUILayout.Space(indent * 20);
     EditorGUILayout.LabelField(tree.GetLayer().GetIdentifier());
     GUILayout.EndHorizontal();
     foreach (var childTree in tree.GetChildTrees())
     {
         WalkLayers(node, childTree, indent++);
     }
 }
Ejemplo n.º 9
0
 void WalkNodes(PcpNodeRef node)
 {
     GUI.enabled = node.HasSpecs();
     EditorGUILayout.LabelField("[" + node.GetArcType().ToString().Replace("PcpArcType", "") + "] < " + node.GetPath() + ">");
     WalkLayers(node, node.GetLayerStack().GetLayerTree(), 1);
     foreach (PcpNodeRef child in node.GetChildren())
     {
         WalkNodes(child);
     }
     GUI.enabled = true;
 }
Ejemplo n.º 10
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PcpNodeRef obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Ejemplo n.º 11
0
        public PcpNodeRef GetRootNode()
        {
            PcpNodeRef ret = new PcpNodeRef(UsdCsPINVOKE.PcpNodeRef_GetRootNode(swigCPtr), true);

            return(ret);
        }
Ejemplo n.º 12
0
        public PcpNodeRef GetNode()
        {
            PcpNodeRef ret = new PcpNodeRef(UsdCsPINVOKE.UsdResolveInfo_GetNode(swigCPtr), true);

            return(ret);
        }