示例#1
0
        public new static vtkImplicitPlaneWidget2 New()
        {
            vtkImplicitPlaneWidget2 result = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkImplicitPlaneWidget2.vtkImplicitPlaneWidget2_New(ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                result = (vtkImplicitPlaneWidget2)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
            }
            return(result);
        }
示例#2
0
        public new static vtkImplicitPlaneWidget2 SafeDownCast(vtkObjectBase o)
        {
            vtkImplicitPlaneWidget2 vtkImplicitPlaneWidget = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkImplicitPlaneWidget2.vtkImplicitPlaneWidget2_SafeDownCast_07((o == null) ? default(HandleRef) : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

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