Example #1
0
        public new static vtkIdFilter New()
        {
            vtkIdFilter result      = null;
            uint        mteStatus   = 0u;
            uint        mteIndex    = 4294967295u;
            uint        rawRefCount = 0u;
            IntPtr      intPtr      = vtkIdFilter.vtkIdFilter_New(ref mteStatus, ref mteIndex, ref rawRefCount);

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

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