예제 #1
0
        public virtual vtkSelectionNode GetNode(uint idx)
        {
            vtkSelectionNode vtkSelectionNode = null;
            uint             mteStatus        = 0u;
            uint             mteIndex         = 4294967295u;
            uint             rawRefCount      = 0u;
            IntPtr           intPtr           = vtkSelection.vtkSelection_GetNode_08(base.GetCppThis(), idx, ref mteStatus, ref mteIndex, ref rawRefCount);

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

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