Open3D (C++ API)  0.18.0+252c867
Data Structures | Public Member Functions | Protected Member Functions
open3d::visualization::GuiVisualizer Class Reference

#include <GuiVisualizer.h>

Inheritance diagram for open3d::visualization::GuiVisualizer:
open3d::visualization::gui::Window

Data Structures

struct  Impl
 

Public Member Functions

 GuiVisualizer (const std::string &title, int width, int height)
 
 GuiVisualizer (const std::vector< std::shared_ptr< const geometry::Geometry >> &geometries, const std::string &title, int width, int height, int left, int top)
 
virtual ~GuiVisualizer ()
 
void SetTitle (const std::string &title)
 
void SetGeometry (std::shared_ptr< const geometry::Geometry > geometry, bool loaded_model)
 
bool SetIBL (const char *path)
 
void LoadGeometry (const std::string &path)
 Loads asynchronously, will return immediately. More...
 
void ExportCurrentImage (const std::string &path)
 
void Layout (const gui::LayoutContext &context) override
 
void StartRPCInterface (const std::string &address, int timeout)
 Starts the RPC interface. See io/rpc/ZMQReceiver for the parameters. More...
 
void StopRPCInterface ()
 
- Public Member Functions inherited from open3d::visualization::gui::Window
 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 ThemeGetTheme () const
 
visualization::rendering::RendererGetRenderer () 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 SetOnClose (std::function< bool()> callback)
 
void SetOnKeyEvent (std::function< bool(const KeyEvent &)> callback)
 
void ShowDialog (std::shared_ptr< Dialog > dlg)
 
void CloseDialog ()
 Closes the dialog. More...
 
void ShowMessageBox (const char *title, const char *message)
 
void DestroyWindow ()
 
void ShowMenu (bool show)
 
int GetMouseMods () const
 
std::string GetWebRTCUID () const
 
void OnDraw ()
 
void OnResize ()
 
void OnMouseEvent (const MouseEvent &e)
 
void OnKeyEvent (const KeyEvent &e)
 
void OnTextInput (const TextInputEvent &e)
 
void OnTickEvent (const TickEvent &e)
 
WindowSystem::OSWindow GetOSWindow () const
 

Protected Member Functions

void AddItemsToAppMenu (const std::vector< std::pair< std::string, gui::Menu::ItemId >> &items)
 
void OnMenuItemSelected (gui::Menu::ItemId item_id) override
 
void OnDragDropped (const char *path) override
 
- Protected Member Functions inherited from open3d::visualization::gui::Window
virtual Size CalcPreferredSize ()
 
LayoutContext GetLayoutContext ()
 
const std::vector< std::shared_ptr< Widget > > & GetChildren () const
 

Additional Inherited Members

- Static Public Attributes inherited from open3d::visualization::gui::Window
static const int FLAG_HIDDEN = (1 << 0)
 
static const int FLAG_TOPMOST = (1 << 1)
 

Constructor & Destructor Documentation

◆ GuiVisualizer() [1/2]

open3d::visualization::GuiVisualizer::GuiVisualizer ( const std::string &  title,
int  width,
int  height 
)

◆ GuiVisualizer() [2/2]

open3d::visualization::GuiVisualizer::GuiVisualizer ( const std::vector< std::shared_ptr< const geometry::Geometry >> &  geometries,
const std::string &  title,
int  width,
int  height,
int  left,
int  top 
)

◆ ~GuiVisualizer()

open3d::visualization::GuiVisualizer::~GuiVisualizer ( )
virtual

Member Function Documentation

◆ AddItemsToAppMenu()

void open3d::visualization::GuiVisualizer::AddItemsToAppMenu ( const std::vector< std::pair< std::string, gui::Menu::ItemId >> &  items)
protected

◆ ExportCurrentImage()

void open3d::visualization::GuiVisualizer::ExportCurrentImage ( const std::string &  path)

◆ Layout()

void open3d::visualization::GuiVisualizer::Layout ( const gui::LayoutContext context)
overridevirtual

Lays out all the widgets in the window. If all children of the window are layouts, this function does not need to be overridden.

Reimplemented from open3d::visualization::gui::Window.

◆ LoadGeometry()

void open3d::visualization::GuiVisualizer::LoadGeometry ( const std::string &  path)

Loads asynchronously, will return immediately.

◆ OnDragDropped()

void open3d::visualization::GuiVisualizer::OnDragDropped ( const char *  path)
overrideprotectedvirtual

◆ OnMenuItemSelected()

void open3d::visualization::GuiVisualizer::OnMenuItemSelected ( gui::Menu::ItemId  item_id)
overrideprotectedvirtual

◆ SetGeometry()

void open3d::visualization::GuiVisualizer::SetGeometry ( std::shared_ptr< const geometry::Geometry geometry,
bool  loaded_model 
)

◆ SetIBL()

bool open3d::visualization::GuiVisualizer::SetIBL ( const char *  path)

◆ SetTitle()

void open3d::visualization::GuiVisualizer::SetTitle ( const std::string &  title)

◆ StartRPCInterface()

void open3d::visualization::GuiVisualizer::StartRPCInterface ( const std::string &  address,
int  timeout 
)

Starts the RPC interface. See io/rpc/ZMQReceiver for the parameters.

◆ StopRPCInterface()

void open3d::visualization::GuiVisualizer::StopRPCInterface ( )

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