コード例 #1
0
        public virtual vtkExtentTranslator GetInputExtentTranslator()
        {
            vtkExtentTranslator vtkExtentTranslator = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkImageDataLIC2DExtentTranslator.vtkImageDataLIC2DExtentTranslator_GetInputExtentTranslator_02(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

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

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