public static vtkTextCodec CodecForName(string CodecName)
        {
            vtkTextCodec vtkTextCodec = null;
            uint         mteStatus    = 0u;
            uint         mteIndex     = 4294967295u;
            uint         rawRefCount  = 0u;
            IntPtr       intPtr       = vtkTextCodecFactory.vtkTextCodecFactory_CodecForName_01(CodecName, ref mteStatus, ref mteIndex, ref rawRefCount);

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

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