Open3D (C++ API)
0.11.0
|
#include <GuiVisualizer.h>
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::Theme &theme) override |
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 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 () |
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 () |
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) |
open3d::visualization::GuiVisualizer::GuiVisualizer | ( | const std::string & | title, |
int | width, | ||
int | height | ||
) |
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 | ||
) |
|
virtual |
|
protected |
void open3d::visualization::GuiVisualizer::ExportCurrentImage | ( | const std::string & | path | ) |
|
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::visualization::gui::Window.
void open3d::visualization::GuiVisualizer::LoadGeometry | ( | const std::string & | path | ) |
Loads asynchronously, will return immediately.
|
overrideprotectedvirtual |
Reimplemented from open3d::visualization::gui::Window.
|
overrideprotectedvirtual |
Reimplemented from open3d::visualization::gui::Window.
void open3d::visualization::GuiVisualizer::SetGeometry | ( | std::shared_ptr< const geometry::Geometry > | geometry, |
bool | loaded_model | ||
) |
bool open3d::visualization::GuiVisualizer::SetIBL | ( | const char * | path | ) |
void open3d::visualization::GuiVisualizer::SetTitle | ( | const std::string & | title | ) |