コード例 #1
0
        public new static vtkPolyDataStreamer New()
        {
            vtkPolyDataStreamer result = null;
            uint   mteStatus           = 0u;
            uint   mteIndex            = 4294967295u;
            uint   rawRefCount         = 0u;
            IntPtr intPtr = vtkPolyDataStreamer.vtkPolyDataStreamer_New(ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                result = (vtkPolyDataStreamer)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
            }
            return(result);
        }
コード例 #2
0
        public new static vtkPolyDataStreamer SafeDownCast(vtkObjectBase o)
        {
            vtkPolyDataStreamer vtkPolyDataStreamer = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkPolyDataStreamer.vtkPolyDataStreamer_SafeDownCast_09((o == null) ? default(HandleRef) : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

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