Exemple #1
0
        public vtkActor2DCollection GetActors2D()
        {
            vtkActor2DCollection vtkActor2DCollection = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkViewport.vtkViewport_GetActors2D_08(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

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

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