コード例 #1
0
        public new vtkTextCodec NewInstance()
        {
            vtkTextCodec result      = null;
            uint         mteStatus   = 0u;
            uint         mteIndex    = 4294967295u;
            uint         rawRefCount = 0u;
            IntPtr       intPtr      = vtkTextCodec.vtkTextCodec_NewInstance_05(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                result = (vtkTextCodec)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
            }
            return(result);
        }
コード例 #2
0
        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);
        }
コード例 #3
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);
        }