#include <Window.h>
|
| Window (const std::string &title, int flags=0) |
|
| Window (const std::string &title, int width, int height, int flags=0) |
|
| Window (const std::string &title, int x, int y, int width, int height, int flags=0) |
|
virtual | ~Window () |
|
const Theme & | GetTheme () const |
|
visualization::rendering::Renderer & | GetRenderer () const |
|
Rect | GetOSFrame () const |
|
void | SetOSFrame (const Rect &r) |
|
const char * | GetTitle () const |
|
void | SetTitle (const char *title) |
|
void | SizeToFit () |
|
void | SetSize (const Size &size) |
| Sets the size of the window in pixels. Includes menubar on Linux. More...
|
|
Size | GetSize () const |
|
Rect | GetContentRect () const |
|
float | GetScaling () const |
| Returns the scaling factor from OS pixels to device pixels. More...
|
|
Point | GlobalToWindowCoord (int global_x, int global_y) |
| Returns the global point (in OS pixels) in window local coordinates. More...
|
|
bool | IsVisible () const |
|
void | Show (bool vis=true) |
|
void | Close () |
|
void | SetNeedsLayout () |
| Instructs the window to relayout before the next draw. More...
|
|
void | PostRedraw () |
|
void | SetTopmost (bool topmost) |
|
void | RaiseToTop () const |
|
bool | IsActiveWindow () const |
|
void | SetFocusWidget (Widget *w) |
| Sets. More...
|
|
void | AddChild (std::shared_ptr< Widget > w) |
|
void | SetOnMenuItemActivated (Menu::ItemId item_id, std::function< void()> callback) |
|
void | SetOnTickEvent (std::function< bool()> callback) |
|
void | ShowDialog (std::shared_ptr< Dialog > dlg) |
|
void | CloseDialog () |
| Closes the dialog. More...
|
|
void | ShowMessageBox (const char *title, const char *message) |
|
void | DestroyWindow () |
|
◆ Window() [1/3]
open3d::visualization::gui::Window::Window |
( |
const std::string & |
title, |
|
|
int |
flags = 0 |
|
) |
| |
|
explicit |
◆ Window() [2/3]
open3d::visualization::gui::Window::Window |
( |
const std::string & |
title, |
|
|
int |
width, |
|
|
int |
height, |
|
|
int |
flags = 0 |
|
) |
| |
◆ Window() [3/3]
open3d::visualization::gui::Window::Window |
( |
const std::string & |
title, |
|
|
int |
x, |
|
|
int |
y, |
|
|
int |
width, |
|
|
int |
height, |
|
|
int |
flags = 0 |
|
) |
| |
◆ ~Window()
open3d::visualization::gui::Window::~Window |
( |
| ) |
|
|
virtual |
◆ AddChild()
void open3d::visualization::gui::Window::AddChild |
( |
std::shared_ptr< Widget > |
w | ) |
|
◆ CalcPreferredSize()
Size open3d::visualization::gui::Window::CalcPreferredSize |
( |
| ) |
|
|
protectedvirtual |
Returns the preferred size of the window. The window is not obligated to honor this size. If all children of the window are layouts, this function does not need to be overridden. This function can only be called after MakeDrawContextCurrent() has been called.
◆ Close()
void open3d::visualization::gui::Window::Close |
( |
| ) |
|
◆ CloseDialog()
void open3d::visualization::gui::Window::CloseDialog |
( |
| ) |
|
◆ DestroyWindow()
void open3d::visualization::gui::Window::DestroyWindow |
( |
| ) |
|
This is for internal use in rare circumstances when the destructor will not be called in a timely fashion.
◆ GetChildren()
const std::vector< std::shared_ptr< Widget > > & open3d::visualization::gui::Window::GetChildren |
( |
| ) |
const |
|
protected |
◆ GetContentRect()
Rect open3d::visualization::gui::Window::GetContentRect |
( |
| ) |
const |
Returns the rectangle that is available to widgets to use; excludes the menubar.
◆ GetOSFrame()
Rect open3d::visualization::gui::Window::GetOSFrame |
( |
| ) |
const |
Gets the window's size and position in OS pixels, not actual device pixels.
◆ GetRenderer()
◆ GetScaling()
float open3d::visualization::gui::Window::GetScaling |
( |
| ) |
const |
Returns the scaling factor from OS pixels to device pixels.
◆ GetSize()
Size open3d::visualization::gui::Window::GetSize |
( |
| ) |
const |
Returns the total interior size of window, in pixels. On Linux this includes the menubar.
◆ GetTheme()
const Theme & open3d::visualization::gui::Window::GetTheme |
( |
| ) |
const |
◆ GetTitle()
const char * open3d::visualization::gui::Window::GetTitle |
( |
| ) |
const |
◆ GlobalToWindowCoord()
Point open3d::visualization::gui::Window::GlobalToWindowCoord |
( |
int |
global_x, |
|
|
int |
global_y |
|
) |
| |
Returns the global point (in OS pixels) in window local coordinates.
◆ IsActiveWindow()
bool open3d::visualization::gui::Window::IsActiveWindow |
( |
| ) |
const |
◆ IsVisible()
bool open3d::visualization::gui::Window::IsVisible |
( |
| ) |
const |
◆ Layout()
void open3d::visualization::gui::Window::Layout |
( |
const Theme & |
theme | ) |
|
|
protectedvirtual |
◆ OnDragDropped()
void open3d::visualization::gui::Window::OnDragDropped |
( |
const char * |
path | ) |
|
|
protectedvirtual |
◆ OnMenuItemSelected()
void open3d::visualization::gui::Window::OnMenuItemSelected |
( |
Menu::ItemId |
item_id | ) |
|
|
protectedvirtual |
◆ PostRedraw()
void open3d::visualization::gui::Window::PostRedraw |
( |
| ) |
|
Sends a draw event to the window through the operating system's event queue.
◆ RaiseToTop()
void open3d::visualization::gui::Window::RaiseToTop |
( |
| ) |
const |
◆ SetFocusWidget()
void open3d::visualization::gui::Window::SetFocusWidget |
( |
Widget * |
w | ) |
|
Sets.
- Parameters
-
w | as widget with text focus. |
◆ SetNeedsLayout()
void open3d::visualization::gui::Window::SetNeedsLayout |
( |
| ) |
|
Instructs the window to relayout before the next draw.
◆ SetOnMenuItemActivated()
void open3d::visualization::gui::Window::SetOnMenuItemActivated |
( |
Menu::ItemId |
item_id, |
|
|
std::function< void()> |
callback |
|
) |
| |
Sets a callback for menu items. If you inherit from Window you can also override OnMenuItemSelected(); however, you should choose one or the other, but don't use both.
◆ SetOnTickEvent()
void open3d::visualization::gui::Window::SetOnTickEvent |
( |
std::function< bool()> |
callback | ) |
|
Sets a callback that will be called on every UI tick (about 10 msec). Callback should return true if a redraw is required (i.e. the UI or a 3D scene has changed), false otherwise.
◆ SetOSFrame()
void open3d::visualization::gui::Window::SetOSFrame |
( |
const Rect & |
r | ) |
|
Sets the window's size and position in OS pixels, not actual device pixels.
◆ SetSize()
void open3d::visualization::gui::Window::SetSize |
( |
const Size & |
size | ) |
|
Sets the size of the window in pixels. Includes menubar on Linux.
◆ SetTitle()
void open3d::visualization::gui::Window::SetTitle |
( |
const char * |
title | ) |
|
◆ SetTopmost()
void open3d::visualization::gui::Window::SetTopmost |
( |
bool |
topmost | ) |
|
◆ Show()
void open3d::visualization::gui::Window::Show |
( |
bool |
vis = true | ) |
|
◆ ShowDialog()
void open3d::visualization::gui::Window::ShowDialog |
( |
std::shared_ptr< Dialog > |
dlg | ) |
|
Shows the dialog. If a dialog is currently being shown it will be closed.
◆ ShowMessageBox()
void open3d::visualization::gui::Window::ShowMessageBox |
( |
const char * |
title, |
|
|
const char * |
message |
|
) |
| |
◆ SizeToFit()
void open3d::visualization::gui::Window::SizeToFit |
( |
| ) |
|
Auto-sizes the window to the results of CalcPreferredSize(), which by default is the size that the layouts of the window want.
◆ Application
◆ Renderer
◆ FLAG_HIDDEN
const int open3d::visualization::gui::Window::FLAG_HIDDEN = (1 << 0) |
|
static |
◆ FLAG_TOPMOST
const int open3d::visualization::gui::Window::FLAG_TOPMOST = (1 << 1) |
|
static |
The documentation for this class was generated from the following files: