示例#1
0
        public virtual vtkHandleWidget CreateNewHandle()
        {
            vtkHandleWidget vtkHandleWidget = null;
            uint            mteStatus       = 0u;
            uint            mteIndex        = 4294967295u;
            uint            rawRefCount     = 0u;
            IntPtr          intPtr          = vtkSeedWidget.vtkSeedWidget_CreateNewHandle_03(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

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

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