public new static vtkContextDevice2D SafeDownCast(vtkObjectBase o)
        {
            vtkContextDevice2D vtkContextDevice2D = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkContextDevice2D.vtkContextDevice2D_SafeDownCast_30((o == null) ? default(HandleRef) : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkContextDevice2D = (vtkContextDevice2D)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkContextDevice2D.Register(null);
                }
            }
            return(vtkContextDevice2D);
        }
示例#2
0
        public virtual vtkContextDevice2D GetDevice()
        {
            vtkContextDevice2D vtkContextDevice2D = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkContext2D.vtkContext2D_GetDevice_47(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

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