コード例 #1
0
        public new static vtkAnnotation SafeDownCast(vtkObjectBase o)
        {
            vtkAnnotation vtkAnnotation = null;
            uint          mteStatus     = 0u;
            uint          mteIndex      = 4294967295u;
            uint          rawRefCount   = 0u;
            IntPtr        intPtr        = vtkAnnotation.vtkAnnotation_SafeDownCast_18((o == null) ? default(HandleRef) : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkAnnotation = (vtkAnnotation)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkAnnotation.Register(null);
                }
            }
            return(vtkAnnotation);
        }
コード例 #2
0
        public virtual vtkAnnotation GetCurrentAnnotation()
        {
            vtkAnnotation vtkAnnotation = null;
            uint          mteStatus     = 0u;
            uint          mteIndex      = 4294967295u;
            uint          rawRefCount   = 0u;
            IntPtr        intPtr        = vtkAnnotationLayers.vtkAnnotationLayers_GetCurrentAnnotation_04(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkAnnotation = (vtkAnnotation)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkAnnotation.Register(null);
                }
            }
            return(vtkAnnotation);
        }
コード例 #3
0
        public new static vtkAnnotation GetData(vtkInformationVector v, int i)
        {
            vtkAnnotation vtkAnnotation = null;
            uint          mteStatus     = 0u;
            uint          mteIndex      = 4294967295u;
            uint          rawRefCount   = 0u;
            IntPtr        intPtr        = vtkAnnotation.vtkAnnotation_GetData_06((v == null) ? default(HandleRef) : v.GetCppThis(), i, ref mteStatus, ref mteIndex, ref rawRefCount);

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