Exemplo n.º 1
0
        public vtkCommand NewInstance()
        {
            vtkCommand result      = null;
            uint       mteStatus   = 0u;
            uint       mteIndex    = 4294967295u;
            uint       rawRefCount = 0u;
            IntPtr     intPtr      = vtkCommand.vtkCommand_NewInstance_10(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

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

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkCommand = (vtkCommand)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkCommand.Register(null);
                }
            }
            return(vtkCommand);
        }
Exemplo n.º 3
0
        public vtkCommand GetObserver()
        {
            vtkCommand vtkCommand  = null;
            uint       mteStatus   = 0u;
            uint       mteIndex    = 4294967295u;
            uint       rawRefCount = 0u;
            IntPtr     intPtr      = vtkView.vtkView_GetObserver_06(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkCommand = (vtkCommand)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkCommand.Register(null);
                }
            }
            return(vtkCommand);
        }
 public void GrabFocus(vtkCommand mouseEvents, vtkCommand keypressEvents)
 {
     vtkInteractorObserver.vtkInteractorObserver_GrabFocus_14(base.GetCppThis(), (mouseEvents == null) ? default(HandleRef) : mouseEvents.GetCppThis(), (keypressEvents == null) ? default(HandleRef) : keypressEvents.GetCppThis());
 }