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

#include <GuiVisualizer.h>

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

Data Structures

struct  Impl
 

Public Member Functions

 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 (const std::vector< std::shared_ptr< const geometry::Geometry >> &geometries)
 
bool SetIBL (const char *path)
 
bool LoadGeometry (const std::string &path)
 
void ExportCurrentImage (int width, int height, const std::string &path)
 
void Layout (const gui::Theme &theme) override
 
- Public Member Functions inherited from open3d::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::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 ShowDialog (std::shared_ptr< Dialog > dlg)
 
void CloseDialog ()
 Closes the dialog. More...
 
void ShowMessageBox (const char *title, const char *message)
 

Protected Member Functions

void OnMenuItemSelected (gui::Menu::ItemId item_id) override
 
void OnDragDropped (const char *path) override
 
- Protected Member Functions inherited from open3d::gui::Window
virtual Size CalcPreferredSize ()
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ GuiVisualizer()

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

◆ ExportCurrentImage()

void open3d::visualization::GuiVisualizer::ExportCurrentImage ( int  width,
int  height,
const std::string &  path 
)

◆ Layout()

void open3d::visualization::GuiVisualizer::Layout ( const gui::Theme theme)
overridevirtual

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

Reimplemented from open3d::gui::Window.

◆ LoadGeometry()

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

◆ OnDragDropped()

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

Reimplemented from open3d::gui::Window.

◆ OnMenuItemSelected()

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

Reimplemented from open3d::gui::Window.

◆ SetGeometry()

void open3d::visualization::GuiVisualizer::SetGeometry ( const std::vector< std::shared_ptr< const geometry::Geometry >> &  geometries)

◆ SetIBL()

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

◆ SetTitle()

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

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