43 namespace visualization {
68 void Initialize(
int argc,
const char *argv[]);
70 void Initialize(
const char *resource_path);
85 void SetFontForLanguage(
const char *font,
const char *lang_code);
92 void SetFontForCodePoints(
const char *font,
93 const std::vector<uint32_t> &code_points);
107 void RunInThread(std::function<
void()> f);
113 void PostToMainThread(
Window *window, std::function<
void()> f);
115 std::shared_ptr<Menu> GetMenubar()
const;
116 void SetMenubar(std::shared_ptr<Menu> menubar);
119 void AddWindow(std::shared_ptr<Window> window);
121 void RemoveWindow(
Window *window);
131 void ShowMessageBox(
const char *title,
const char *message);
134 const char *GetResourcePath()
const;
140 const Theme &GetTheme()
const;
172 bool RunOneTick(
EnvUnlocker &unlocker,
bool cleanup_if_no_windows =
true);
177 std::shared_ptr<geometry::Image> RenderToImage(
EnvUnlocker &unlocker,
188 const std::vector<UserFontInfo> &GetUserFontInfo()
const;
193 enum class RunStatus { CONTINUE, DONE };
194 RunStatus ProcessQueuedEvents(
EnvUnlocker &unlocker);
198 std::unique_ptr<Impl> impl_;
Definition: Application.h:55
Definition: Application.h:155
std::vector< uint32_t > code_points
Definition: Application.h:186
virtual void unlock()
Definition: Application.h:159
Definition: Application.cpp:201
virtual void relock()
Definition: Application.h:160
virtual ~EnvUnlocker()
Definition: Application.h:158
EnvUnlocker()
Definition: Application.h:157
Definition: PinholeCameraIntrinsic.cpp:35
int height
Definition: FilePCD.cpp:72
std::string path
Definition: Application.h:184
Definition: Application.h:183
std::string lang
Definition: Application.h:185
int width
Definition: FilePCD.cpp:71