Пример #1
0
        public new vtkSocket NewInstance()
        {
            vtkSocket result      = null;
            uint      mteStatus   = 0u;
            uint      mteIndex    = 4294967295u;
            uint      rawRefCount = 0u;
            IntPtr    intPtr      = vtkSocket.vtkSocket_NewInstance_06(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                result = (vtkSocket)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
            }
            return(result);
        }
Пример #2
0
        public vtkSocket GetLastSelectedSocket()
        {
            vtkSocket vtkSocket   = null;
            uint      mteStatus   = 0u;
            uint      mteIndex    = 4294967295u;
            uint      rawRefCount = 0u;
            IntPtr    intPtr      = vtkSocketCollection.vtkSocketCollection_GetLastSelectedSocket_02(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkSocket = (vtkSocket)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkSocket.Register(null);
                }
            }
            return(vtkSocket);
        }
Пример #3
0
        public new static vtkSocket SafeDownCast(vtkObjectBase o)
        {
            vtkSocket vtkSocket   = null;
            uint      mteStatus   = 0u;
            uint      mteIndex    = 4294967295u;
            uint      rawRefCount = 0u;
            IntPtr    intPtr      = vtkSocket.vtkSocket_SafeDownCast_08((o == null) ? default(HandleRef) : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkSocket = (vtkSocket)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkSocket.Register(null);
                }
            }
            return(vtkSocket);
        }
Пример #4
0
 public void AddItem(vtkSocket soc)
 {
     vtkSocketCollection.vtkSocketCollection_AddItem_01(base.GetCppThis(), (soc == null) ? default(HandleRef) : soc.GetCppThis());
 }