open3d.visualization.gui.Window#
- class open3d.visualization.gui.Window#
Application window. Create with Application.instance.create_window().
- __init__(*args, **kwargs)#
- add_child(self: open3d.cpu.pybind.visualization.gui.Window, arg0: open3d.cpu.pybind.visualization.gui.Widget) None #
Adds a widget to the window
- close(self: open3d.cpu.pybind.visualization.gui.Window) None #
Closes the window and destroys it, unless an on_close callback cancels the close.
- close_dialog(self: open3d.cpu.pybind.visualization.gui.Window) None #
Closes the current dialog
- post_redraw(self: open3d.cpu.pybind.visualization.gui.Window) None #
Sends a redraw message to the OS message queue
- set_focus_widget(self: open3d.cpu.pybind.visualization.gui.Window, arg0: open3d.cpu.pybind.visualization.gui.Widget) None #
Makes specified widget have text focus
- set_needs_layout(self: open3d.cpu.pybind.visualization.gui.Window) None #
Flags window to re-layout
- set_on_close(self: open3d.cpu.pybind.visualization.gui.Window, arg0: Callable[[], bool]) None #
Sets a callback that will be called when the window is closed. The callback is given no arguments and should return True to continue closing the window or False to cancel the close
- set_on_key(self: open3d.cpu.pybind.visualization.gui.Window, arg0: Callable[[open3d.cpu.pybind.visualization.gui.KeyEvent], bool]) None #
Sets a callback for key events. This callback is passed a KeyEvent object. The callback must return True to stop more dispatching or False to dispatchto focused widget
- set_on_layout(self: open3d.cpu.pybind.visualization.gui.Window, arg0: Callable[[open3d.cpu.pybind.visualization.gui.LayoutContext], None]) None #
Sets a callback function that manually sets the frames of children of the window. Callback function will be called with one argument: gui.LayoutContext
Sets callback function for menu item: callback()
- set_on_tick_event(self: open3d.cpu.pybind.visualization.gui.Window, arg0: Callable[[], bool]) None #
Sets callback for tick event. Callback takes no arguments and must return True if a redraw is needed (that is, if any widget has changed in any fashion) or False if nothing has changed
- show(self: open3d.cpu.pybind.visualization.gui.Window, arg0: bool) None #
Shows or hides the window
- show_dialog(self: open3d.cpu.pybind.visualization.gui.Window, arg0: open3d.cpu.pybind.visualization.gui.Dialog) None #
Displays the dialog
show_menu(show): shows or hides the menu in the window, except on macOS since the menubar is not in the window and all applications must have a menubar.
- show_message_box(self: open3d.cpu.pybind.visualization.gui.Window, arg0: str, arg1: str) None #
Displays a simple dialog with a title and message and okay button
- size_to_fit(self: open3d.cpu.pybind.visualization.gui.Window) None #
Sets the width and height of window to its preferred size
- property content_rect#
Returns the frame in device pixels, relative to the window, which is available for widgets (read-only)
- property is_active_window#
True if the window is currently the active window (read-only)
- property is_visible#
True if window is visible (read-only)
- property os_frame#
Window rect in OS coords, not device pixels
- property renderer#
Gets the rendering.Renderer object for the Window
- property scaling#
Returns the scaling factor between OS pixels and device pixels (read-only)
- property size#
The size of the window in device pixels, including menubar (except on macOS)
- property theme#
Get’s window’s theme info
- property title#
Returns the title of the window