public virtual vtkImageMapToWindowLevelColors GetWindowLevel()
        {
            vtkImageMapToWindowLevelColors vtkImageMapToWindowLevelColors = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkCornerAnnotation.vtkCornerAnnotation_GetWindowLevel_14(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

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

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