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