Пример #1
0
        public new static vtkCommunicator SafeDownCast(vtkObjectBase o)
        {
            vtkCommunicator vtkCommunicator = null;
            uint            mteStatus       = 0u;
            uint            mteIndex        = 4294967295u;
            uint            rawRefCount     = 0u;
            IntPtr          intPtr          = vtkCommunicator.vtkCommunicator_SafeDownCast_48((o == null) ? default(HandleRef) : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkCommunicator = (vtkCommunicator)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkCommunicator.Register(null);
                }
            }
            return(vtkCommunicator);
        }
Пример #2
0
        public override vtkCommunicator GetCommunicator()
        {
            vtkCommunicator vtkCommunicator = null;
            uint            mteStatus       = 0u;
            uint            mteIndex        = 4294967295u;
            uint            rawRefCount     = 0u;
            IntPtr          intPtr          = vtkDummyController.vtkDummyController_GetCommunicator_04(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

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