Exemple #1
0
        public vtkExtractHistogram2D GetHistogramFilter(int idx)
        {
            vtkExtractHistogram2D vtkExtractHistogram2D = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkPairwiseExtractHistogram2D.vtkPairwiseExtractHistogram2D_GetHistogramFilter_06(base.GetCppThis(), idx, ref mteStatus, ref mteIndex, ref rawRefCount);

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

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