Exemplo n.º 1
0
        public virtual vtkSelection GetCurrentSelection()
        {
            vtkSelection vtkSelection = null;
            uint         mteStatus    = 0u;
            uint         mteIndex     = 4294967295u;
            uint         rawRefCount  = 0u;
            IntPtr       intPtr       = vtkAnnotationLayers.vtkAnnotationLayers_GetCurrentSelection_05(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

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

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkSelection = (vtkSelection)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkSelection.Register(null);
                }
            }
            return(vtkSelection);
        }
Exemplo n.º 3
0
        public new static vtkSelection GetData(vtkInformation info)
        {
            vtkSelection vtkSelection = null;
            uint         mteStatus    = 0u;
            uint         mteIndex     = 4294967295u;
            uint         rawRefCount  = 0u;
            IntPtr       intPtr       = vtkSelection.vtkSelection_GetData_04((info == null) ? default(HandleRef) : info.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkSelection = (vtkSelection)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkSelection.Register(null);
                }
            }
            return(vtkSelection);
        }
        public vtkSelection GetOutput(int index)
        {
            vtkSelection vtkSelection = null;
            uint         mteStatus    = 0u;
            uint         mteIndex     = 4294967295u;
            uint         rawRefCount  = 0u;
            IntPtr       intPtr       = vtkSelectionAlgorithm.vtkSelectionAlgorithm_GetOutput_02(base.GetCppThis(), index, ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkSelection = (vtkSelection)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkSelection.Register(null);
                }
            }
            return(vtkSelection);
        }
Exemplo n.º 5
0
        public vtkSelection Select()
        {
            vtkSelection vtkSelection = null;
            uint         mteStatus    = 0u;
            uint         mteIndex     = 4294967295u;
            uint         rawRefCount  = 0u;
            IntPtr       intPtr       = vtkHardwareSelector.vtkHardwareSelector_Select_25(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkSelection = (vtkSelection)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkSelection.Register(null);
                }
            }
            return(vtkSelection);
        }
Exemplo n.º 6
0
        public virtual vtkSelection GenerateSelection(uint x1, uint y1, uint x2, uint y2)
        {
            vtkSelection vtkSelection = null;
            uint         mteStatus    = 0u;
            uint         mteIndex     = 4294967295u;
            uint         rawRefCount  = 0u;
            IntPtr       intPtr       = vtkHardwareSelector.vtkHardwareSelector_GenerateSelection_07(base.GetCppThis(), x1, y1, x2, y2, ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkSelection = (vtkSelection)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkSelection.Register(null);
                }
            }
            return(vtkSelection);
        }
        public virtual vtkSelection ConvertSelection(vtkDataRepresentation rep, vtkSelection sel)
        {
            vtkSelection vtkSelection = null;
            uint         mteStatus    = 0u;
            uint         mteIndex     = 4294967295u;
            uint         rawRefCount  = 0u;
            IntPtr       intPtr       = vtkHierarchicalGraphPipeline.vtkHierarchicalGraphPipeline_ConvertSelection_04(base.GetCppThis(), (rep == null) ? default(HandleRef) : rep.GetCppThis(), (sel == null) ? default(HandleRef) : sel.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkSelection = (vtkSelection)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkSelection.Register(null);
                }
            }
            return(vtkSelection);
        }
Exemplo n.º 8
0
        public static vtkSelection ToValueSelection(vtkSelection input, vtkDataObject data, vtkStringArray arrayNames)
        {
            vtkSelection vtkSelection = null;
            uint         mteStatus    = 0u;
            uint         mteIndex     = 4294967295u;
            uint         rawRefCount  = 0u;
            IntPtr       intPtr       = vtkConvertSelection.vtkConvertSelection_ToValueSelection_32((input == null) ? default(HandleRef) : input.GetCppThis(), (data == null) ? default(HandleRef) : data.GetCppThis(), (arrayNames == null) ? default(HandleRef) : arrayNames.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

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