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

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkQuadratureSchemeDefinition = (vtkQuadratureSchemeDefinition)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkQuadratureSchemeDefinition.Register(null);
                }
            }
            return(vtkQuadratureSchemeDefinition);
        }
Пример #2
0
        public vtkQuadratureSchemeDefinition Get(vtkInformation info, int idx)
        {
            vtkQuadratureSchemeDefinition vtkQuadratureSchemeDefinition = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkInformationQuadratureSchemeDefinitionVectorKey.vtkInformationQuadratureSchemeDefinitionVectorKey_Get_04(base.GetCppThis(), (info == null) ? default(HandleRef) : info.GetCppThis(), idx, ref mteStatus, ref mteIndex, ref rawRefCount);

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