Пример #1
0
        public new static vtkFunctionParser SafeDownCast(vtkObjectBase o)
        {
            vtkFunctionParser vtkFunctionParser = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkFunctionParser.vtkFunctionParser_SafeDownCast_28((o == null) ? default(HandleRef) : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkFunctionParser = (vtkFunctionParser)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkFunctionParser.Register(null);
                }
            }
            return(vtkFunctionParser);
        }
        public virtual vtkFunctionParser GetFunctionParser()
        {
            vtkFunctionParser vtkFunctionParser = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkKMeansDistanceFunctorCalculator.vtkKMeansDistanceFunctorCalculator_GetFunctionParser_02(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

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