示例#1
0
        public new static vtkGraphEdge SafeDownCast(vtkObjectBase o)
        {
            vtkGraphEdge vtkGraphEdge = null;
            uint         mteStatus    = 0u;
            uint         mteIndex     = 4294967295u;
            uint         rawRefCount  = 0u;
            IntPtr       intPtr       = vtkGraphEdge.vtkGraphEdge_SafeDownCast_08((o == null) ? default(HandleRef) : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkGraphEdge = (vtkGraphEdge)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkGraphEdge.Register(null);
                }
            }
            return(vtkGraphEdge);
        }
        public vtkGraphEdge NextGraphEdge()
        {
            vtkGraphEdge vtkGraphEdge = null;
            uint         mteStatus    = 0u;
            uint         mteIndex     = 4294967295u;
            uint         rawRefCount  = 0u;
            IntPtr       intPtr       = vtkInEdgeIterator.vtkInEdgeIterator_NextGraphEdge_09(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkGraphEdge = (vtkGraphEdge)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkGraphEdge.Register(null);
                }
            }
            return(vtkGraphEdge);
        }
示例#3
0
        public vtkGraphEdge AddGraphEdge(long u, long v)
        {
            vtkGraphEdge vtkGraphEdge = null;
            uint         mteStatus    = 0u;
            uint         mteIndex     = 4294967295u;
            uint         rawRefCount  = 0u;
            IntPtr       intPtr       = vtkMutableDirectedGraph.vtkMutableDirectedGraph_AddGraphEdge_03(base.GetCppThis(), u, v, ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkGraphEdge = (vtkGraphEdge)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkGraphEdge.Register(null);
                }
            }
            return(vtkGraphEdge);
        }