Пример #1
0
        public new static vtkBoxWidget2 New()
        {
            vtkBoxWidget2 result      = null;
            uint          mteStatus   = 0u;
            uint          mteIndex    = 4294967295u;
            uint          rawRefCount = 0u;
            IntPtr        intPtr      = vtkBoxWidget2.vtkBoxWidget2_New(ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                result = (vtkBoxWidget2)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
            }
            return(result);
        }
Пример #2
0
        public new static vtkBoxWidget2 SafeDownCast(vtkObjectBase o)
        {
            vtkBoxWidget2 vtkBoxWidget = null;
            uint          mteStatus    = 0u;
            uint          mteIndex     = 4294967295u;
            uint          rawRefCount  = 0u;
            IntPtr        intPtr       = vtkBoxWidget2.vtkBoxWidget2_SafeDownCast_14((o == null) ? default(HandleRef) : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

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