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

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

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