Ejemplo n.º 1
0
        public static vtkInformationKey SafeDownCast(vtkObjectBase o)
        {
            vtkInformationKey vtkInformationKey = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkInformationKey.vtkInformationKey_SafeDownCast_12((o == null) ? default(HandleRef) : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkInformationKey = (vtkInformationKey)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkInformationKey.Register(null);
                }
            }
            return(vtkInformationKey);
        }
Ejemplo n.º 2
0
        public vtkInformationKey Get(vtkInformation info, int idx)
        {
            vtkInformationKey vtkInformationKey = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkInformationKeyVectorKey.vtkInformationKeyVectorKey_Get_03(base.GetCppThis(), (info == null) ? default(HandleRef) : info.GetCppThis(), idx, ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkInformationKey = (vtkInformationKey)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkInformationKey.Register(null);
                }
            }
            return(vtkInformationKey);
        }
Ejemplo n.º 3
0
        public virtual vtkInformationKey GetCurrentKey()
        {
            vtkInformationKey vtkInformationKey = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkInformationIterator.vtkInformationIterator_GetCurrentKey_01(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

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