Open3D (C++ API)  0.18.0
Public Types | Public Member Functions | Static Public Attributes
open3d::visualization::gui::WindowSystem Class Referenceabstract

#include <WindowSystem.h>

Inheritance diagram for open3d::visualization::gui::WindowSystem:
open3d::visualization::gui::BitmapWindowSystem open3d::visualization::gui::GLFWWindowSystem open3d::visualization::webrtc_server::WebRTCWindowSystem

Public Types

using OSWindow = void *
 

Public Member Functions

virtual ~WindowSystem ()
 
virtual void Initialize ()=0
 
virtual void Uninitialize ()=0
 
virtual void WaitEventsTimeout (double timeout_secs)=0
 
virtual Size GetScreenSize (OSWindow w)=0
 
virtual OSWindow CreateOSWindow (Window *o3d_window, int width, int height, const char *title, int flags)=0
 
virtual void DestroyWindow (OSWindow w)=0
 
virtual void PostRedrawEvent (OSWindow w)=0
 
virtual bool GetWindowIsVisible (OSWindow w) const =0
 
virtual void ShowWindow (OSWindow w, bool show)=0
 
virtual void RaiseWindowToTop (OSWindow w)=0
 
virtual bool IsActiveWindow (OSWindow w) const =0
 
virtual Point GetWindowPos (OSWindow w) const =0
 
virtual void SetWindowPos (OSWindow w, int x, int y)=0
 
virtual Size GetWindowSize (OSWindow w) const =0
 
virtual void SetWindowSize (OSWindow w, int width, int height)=0
 
virtual Size GetWindowSizePixels (OSWindow w) const =0
 
virtual void SetWindowSizePixels (OSWindow w, const Size &size)=0
 
virtual float GetWindowScaleFactor (OSWindow w) const =0
 
virtual float GetUIScaleFactor (OSWindow w) const =0
 
virtual void SetWindowTitle (OSWindow w, const char *title)=0
 
virtual Point GetMousePosInWindow (OSWindow w) const =0
 
virtual int GetMouseButtons (OSWindow w) const =0
 
virtual void CancelUserClose (OSWindow w)=0
 
virtual void * GetNativeDrawable (OSWindow w)=0
 
virtual rendering::FilamentRendererCreateRenderer (OSWindow w)=0
 
virtual void ResizeRenderer (OSWindow w, rendering::FilamentRenderer *renderer)=0
 
virtual MenuBaseCreateOSMenu ()=0
 

Static Public Attributes

static constexpr int FLAG_VISIBLE = 0
 
static constexpr int FLAG_HIDDEN = (1 << 0)
 
static constexpr int FLAG_TOPMOST = (1 << 1)
 

Detailed Description

WindowSystem (and its derived classes) are internal to Open3D and not intended to be used directly. Internal users should get the WindowSystem object using Application::GetInstance().GetWindowSystem().

Member Typedef Documentation

◆ OSWindow

Constructor & Destructor Documentation

◆ ~WindowSystem()

virtual open3d::visualization::gui::WindowSystem::~WindowSystem ( )
inlinevirtual

Member Function Documentation

◆ CancelUserClose()

virtual void open3d::visualization::gui::WindowSystem::CancelUserClose ( OSWindow  w)
pure virtual

◆ CreateOSMenu()

virtual MenuBase* open3d::visualization::gui::WindowSystem::CreateOSMenu ( )
pure virtual

◆ CreateOSWindow()

virtual OSWindow open3d::visualization::gui::WindowSystem::CreateOSWindow ( Window o3d_window,
int  width,
int  height,
const char *  title,
int  flags 
)
pure virtual

◆ CreateRenderer()

virtual rendering::FilamentRenderer* open3d::visualization::gui::WindowSystem::CreateRenderer ( OSWindow  w)
pure virtual

◆ DestroyWindow()

virtual void open3d::visualization::gui::WindowSystem::DestroyWindow ( OSWindow  w)
pure virtual

◆ GetMouseButtons()

virtual int open3d::visualization::gui::WindowSystem::GetMouseButtons ( OSWindow  w) const
pure virtual

◆ GetMousePosInWindow()

virtual Point open3d::visualization::gui::WindowSystem::GetMousePosInWindow ( OSWindow  w) const
pure virtual

◆ GetNativeDrawable()

virtual void* open3d::visualization::gui::WindowSystem::GetNativeDrawable ( OSWindow  w)
pure virtual

◆ GetScreenSize()

virtual Size open3d::visualization::gui::WindowSystem::GetScreenSize ( OSWindow  w)
pure virtual

◆ GetUIScaleFactor()

virtual float open3d::visualization::gui::WindowSystem::GetUIScaleFactor ( OSWindow  w) const
pure virtual

◆ GetWindowIsVisible()

virtual bool open3d::visualization::gui::WindowSystem::GetWindowIsVisible ( OSWindow  w) const
pure virtual

◆ GetWindowPos()

virtual Point open3d::visualization::gui::WindowSystem::GetWindowPos ( OSWindow  w) const
pure virtual

◆ GetWindowScaleFactor()

virtual float open3d::visualization::gui::WindowSystem::GetWindowScaleFactor ( OSWindow  w) const
pure virtual

◆ GetWindowSize()

virtual Size open3d::visualization::gui::WindowSystem::GetWindowSize ( OSWindow  w) const
pure virtual

◆ GetWindowSizePixels()

virtual Size open3d::visualization::gui::WindowSystem::GetWindowSizePixels ( OSWindow  w) const
pure virtual

◆ Initialize()

virtual void open3d::visualization::gui::WindowSystem::Initialize ( )
pure virtual

◆ IsActiveWindow()

virtual bool open3d::visualization::gui::WindowSystem::IsActiveWindow ( OSWindow  w) const
pure virtual

◆ PostRedrawEvent()

virtual void open3d::visualization::gui::WindowSystem::PostRedrawEvent ( OSWindow  w)
pure virtual

◆ RaiseWindowToTop()

virtual void open3d::visualization::gui::WindowSystem::RaiseWindowToTop ( OSWindow  w)
pure virtual

◆ ResizeRenderer()

virtual void open3d::visualization::gui::WindowSystem::ResizeRenderer ( OSWindow  w,
rendering::FilamentRenderer renderer 
)
pure virtual

◆ SetWindowPos()

virtual void open3d::visualization::gui::WindowSystem::SetWindowPos ( OSWindow  w,
int  x,
int  y 
)
pure virtual

◆ SetWindowSize()

virtual void open3d::visualization::gui::WindowSystem::SetWindowSize ( OSWindow  w,
int  width,
int  height 
)
pure virtual

◆ SetWindowSizePixels()

virtual void open3d::visualization::gui::WindowSystem::SetWindowSizePixels ( OSWindow  w,
const Size size 
)
pure virtual

◆ SetWindowTitle()

virtual void open3d::visualization::gui::WindowSystem::SetWindowTitle ( OSWindow  w,
const char *  title 
)
pure virtual

◆ ShowWindow()

virtual void open3d::visualization::gui::WindowSystem::ShowWindow ( OSWindow  w,
bool  show 
)
pure virtual

◆ Uninitialize()

virtual void open3d::visualization::gui::WindowSystem::Uninitialize ( )
pure virtual

◆ WaitEventsTimeout()

virtual void open3d::visualization::gui::WindowSystem::WaitEventsTimeout ( double  timeout_secs)
pure virtual

Field Documentation

◆ FLAG_HIDDEN

constexpr int open3d::visualization::gui::WindowSystem::FLAG_HIDDEN = (1 << 0)
staticconstexpr

◆ FLAG_TOPMOST

constexpr int open3d::visualization::gui::WindowSystem::FLAG_TOPMOST = (1 << 1)
staticconstexpr

◆ FLAG_VISIBLE

constexpr int open3d::visualization::gui::WindowSystem::FLAG_VISIBLE = 0
staticconstexpr

The documentation for this class was generated from the following file: