40 namespace visualization {
65 void Initialize(
int argc,
const char *argv[]);
67 void Initialize(
const char *resource_path);
81 void RunInThread(std::function<
void()> f);
87 void PostToMainThread(
Window *window, std::function<
void()> f);
89 std::shared_ptr<Menu> GetMenubar()
const;
90 void SetMenubar(std::shared_ptr<Menu> menubar);
93 void AddWindow(std::shared_ptr<Window> window);
95 void RemoveWindow(
Window *window);
105 void ShowMessageBox(
const char *title,
const char *message);
108 const char *GetResourcePath()
const;
114 const Theme &GetTheme()
const;
139 bool RunOneTick(
EnvUnlocker &unlocker,
bool cleanup_if_no_windows =
true);
144 std::shared_ptr<geometry::Image> RenderToImage(
EnvUnlocker &unlocker,
153 enum class RunStatus { CONTINUE, DONE };
154 RunStatus ProcessQueuedEvents(
EnvUnlocker &unlocker);
158 std::unique_ptr<Impl> impl_;
Definition: Application.h:52
Definition: Application.h:129
virtual void unlock()
Definition: Application.h:133
Definition: Application.cpp:116
virtual void relock()
Definition: Application.h:134
virtual ~EnvUnlocker()
Definition: Application.h:132
EnvUnlocker()
Definition: Application.h:131
Definition: PinholeCameraIntrinsic.cpp:35
int height
Definition: FilePCD.cpp:72
int width
Definition: FilePCD.cpp:71