Example #1
0
        public vtkDistributedGraphHelper GetDistributedGraphHelper()
        {
            vtkDistributedGraphHelper vtkDistributedGraphHelper = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkGraph.vtkGraph_GetDistributedGraphHelper_19(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkDistributedGraphHelper = (vtkDistributedGraphHelper)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkDistributedGraphHelper.Register(null);
                }
            }
            return(vtkDistributedGraphHelper);
        }
        public new static vtkDistributedGraphHelper SafeDownCast(vtkObjectBase o)
        {
            vtkDistributedGraphHelper vtkDistributedGraphHelper = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkDistributedGraphHelper.vtkDistributedGraphHelper_SafeDownCast_12((o == null) ? default(HandleRef) : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

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