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

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

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