Class VizInterface
Defined in File VizInterface.h
Inheritance Relationships
Derived Type
public mola::MolaViz
Class Documentation
-
class VizInterface
Virtual visualization interface (see MolaViz)
Subclassed by mola::MolaViz
Public Types
-
using Ptr = std::shared_ptr<VizInterface>
Public Functions
-
VizInterface() = default
-
virtual std::future<nanogui::Window*> create_subwindow(const std::string &title, const std::string &parentWindow = "main") = 0
-
virtual std::future<void> subwindow_grid_layout(const std::string &subWindowTitle, const bool orientationVertical, int resolution, const std::string &parentWindow = "main") = 0
-
virtual std::future<void> subwindow_move_resize(const std::string &subWindowTitle, const mrpt::math::TPoint2D_<int> &location, const mrpt::math::TPoint2D_<int> &size, const std::string &parentWindow = "main") = 0
-
virtual std::future<bool> subwindow_update_visualization(const mrpt::rtti::CObject::Ptr &obj, const std::string &subWindowTitle, const std::string &parentWindow = "main") = 0
-
virtual std::future<bool> update_viewport_look_at(const mrpt::math::TPoint3Df &lookAt, const std::string &viewportName = "main", const std::string &parentWindow = "main") = 0
-
virtual std::future<bool> update_viewport_camera_azimuth(const double azimuth, bool absolute_falseForRelative = true, const std::string &viewportName = "main", const std::string &parentWindow = "main") = 0
-
virtual std::future<bool> update_viewport_camera_orthographic(const bool orthographic, const std::string &viewportName = "main", const std::string &parentWindow = "main") = 0
-
virtual std::future<bool> execute_custom_code_on_background_scene(const std::function<void(mrpt::opengl::Scene&)> &userCode, const std::string &parentWindow = "main") = 0
Executes arbitrary user code on the 3D Scene in the background of the main window space. This can be used to modify the viewport, create new sub-viewports, etc.
Note
The user-provided code will be executed in the main GUI thread, so mutexes must be used as needed.
-
virtual std::future<void> enqueue_custom_nanogui_code(const std::function<void(void)> &userCode) = 0
-
virtual std::future<bool> output_console_message(const std::string &msg, const std::string &parentWindow = "main") = 0
-
using Ptr = std::shared_ptr<VizInterface>