![]() |
Prusa Slicer 2.6.0
|
#include <src/libigl/igl/opengl/glfw/Viewer.h>
Collaboration diagram for igl::opengl::glfw::Viewer:Public Types | |
| enum class | MouseButton { Left , Middle , Right } |
| enum class | MouseMode { None , Rotation , Zoom , Pan , Translation } |
|
strong |
|
strong |
| IGL_INLINE igl::opengl::glfw::Viewer::Viewer | ( | ) |
References callback_init, callback_init_data, callback_key_down, callback_key_down_data, callback_key_up, callback_key_up_data, callback_mouse_down, callback_mouse_down_data, callback_mouse_move, callback_mouse_move_data, callback_mouse_scroll, callback_mouse_scroll_data, callback_mouse_up, callback_mouse_up_data, callback_post_draw, callback_post_draw_data, callback_pre_draw, callback_pre_draw_data, data(), data_list, down, hack_never_moved, scroll_position, igl::opengl::ViewerData::set_face_based(), usage(), and window.
Here is the call graph for this function:| IGL_INLINE igl::opengl::glfw::Viewer::~Viewer | ( | ) |
| IGL_INLINE int igl::opengl::glfw::Viewer::append_mesh | ( | ) |
References data_list, next_data_id, and selected_data_index.
Referenced by load_mesh_from_file().
Here is the caller graph for this function:| IGL_INLINE ViewerData & igl::opengl::glfw::Viewer::data | ( | ) |
References data_list, and selected_data_index.
Referenced by Viewer(), igl::opengl::glfw::imgui::ImGuiMenu::draw_viewer_menu(), key_pressed(), launch_init(), launch_shut(), load_mesh_from_file(), load_scene(), mouse_down(), save_mesh_to_file(), and save_scene().
Here is the caller graph for this function:| IGL_INLINE void igl::opengl::glfw::Viewer::draw | ( | ) |
References callback_post_draw, callback_pre_draw, igl::opengl::ViewerCore::clear_framebuffers(), core, data_list, igl::opengl::ViewerCore::draw(), highdpi, plugins, post_resize(), and window.
Referenced by launch_rendering().
Here is the call graph for this function:
Here is the caller graph for this function:| IGL_INLINE bool igl::opengl::glfw::Viewer::erase_mesh | ( | const size_t | index | ) |
References data_list, and selected_data_index.
| IGL_INLINE void igl::opengl::glfw::Viewer::init | ( | ) |
References callback_init, core, igl::opengl::ViewerCore::init(), and init_plugins().
Referenced by launch_init().
Here is the call graph for this function:
Here is the caller graph for this function:| IGL_INLINE void igl::opengl::glfw::Viewer::init_plugins | ( | ) |
| IGL_INLINE bool igl::opengl::glfw::Viewer::key_down | ( | int | key, |
| int | modifier | ||
| ) |
References callback_key_down, key_down(), and plugins.
Referenced by glfw_key_callback(), and key_down().
Here is the call graph for this function:
Here is the caller graph for this function:| IGL_INLINE bool igl::opengl::glfw::Viewer::key_pressed | ( | unsigned int | unicode_key, |
| int | modifier | ||
| ) |
References callback_key_pressed, core, data(), data_list, igl::opengl::ViewerData::dirty, igl::opengl::MeshGL::DIRTY_NORMAL, igl::opengl::ViewerData::invert_normals, igl::opengl::ViewerCore::is_animating, key_pressed(), igl::opengl::ViewerCore::orthographic, plugins, igl::opengl::ViewerCore::rotation_type, igl::opengl::ViewerCore::ROTATION_TYPE_TRACKBALL, igl::opengl::ViewerCore::ROTATION_TYPE_TWO_AXIS_VALUATOR_FIXED_UP, selected_data_index, igl::opengl::ViewerData::set_face_based(), igl::opengl::ViewerCore::set_rotation_type(), igl::opengl::ViewerData::show_faceid, igl::opengl::ViewerData::show_faces, igl::opengl::ViewerData::show_lines, igl::opengl::ViewerData::show_vertid, and snap_to_canonical_quaternion().
Referenced by glfw_char_mods_callback(), and key_pressed().
Here is the call graph for this function:
Here is the caller graph for this function:| IGL_INLINE bool igl::opengl::glfw::Viewer::key_up | ( | int | key, |
| int | modifier | ||
| ) |
References callback_key_up, key_up(), and plugins.
Referenced by glfw_key_callback(), and key_up().
Here is the call graph for this function:
Here is the caller graph for this function:| IGL_INLINE int igl::opengl::glfw::Viewer::launch | ( | bool | resizable = true, |
| bool | fullscreen = false |
||
| ) |
References launch_init(), launch_rendering(), and launch_shut().
Here is the call graph for this function:| IGL_INLINE int igl::opengl::glfw::Viewer::launch_init | ( | bool | resizable = true, |
| bool | fullscreen = false |
||
| ) |
References __viewer, igl::opengl::ViewerCore::align_camera_center(), core, data(), GL_TRUE, glfw_char_mods_callback(), glfw_drop_callback(), glfw_error_callback(), glfw_key_callback(), glfw_mouse_move(), glfw_mouse_press(), glfw_mouse_scroll(), glfw_window_size(), highdpi, init(), igl::mode(), igl::opengl::ViewerCore::viewport, and window.
Referenced by launch().
Here is the call graph for this function:
Here is the caller graph for this function:| IGL_INLINE bool igl::opengl::glfw::Viewer::launch_rendering | ( | bool | loop = true | ) |
References igl::opengl::ViewerCore::animation_max_fps, core, draw(), igl::get_seconds(), igl::opengl::ViewerCore::is_animating, igl::loop(), and window.
Referenced by launch().
Here is the call graph for this function:
Here is the caller graph for this function:| IGL_INLINE void igl::opengl::glfw::Viewer::launch_shut | ( | ) |
References core, data(), data_list, igl::opengl::MeshGL::free(), igl::opengl::ViewerData::meshgl, igl::opengl::ViewerCore::shut(), shutdown_plugins(), and window.
Referenced by launch().
Here is the call graph for this function:
Here is the caller graph for this function:| IGL_INLINE bool igl::opengl::glfw::Viewer::load_mesh_from_file | ( | const std::string & | mesh_file_name | ) |
References igl::opengl::ViewerCore::align_camera_center(), append_mesh(), igl::opengl::ViewerData::clear(), igl::opengl::ViewerData::compute_normals(), core, data(), igl::opengl::ViewerData::grid_texture(), load(), plugins, igl::readOBJ(), igl::readOFF(), igl::opengl::ViewerData::set_mesh(), igl::opengl::ViewerData::set_uv(), and igl::opengl::ViewerData::uniform_colors().
Referenced by open_dialog_load_mesh().
Here is the call graph for this function:
Here is the caller graph for this function:| IGL_INLINE bool igl::opengl::glfw::Viewer::load_scene | ( | ) |
References igl::file_dialog_open(), and load_scene().
Referenced by igl::opengl::glfw::imgui::ImGuiMenu::draw_viewer_menu(), and load_scene().
Here is the call graph for this function:
Here is the caller graph for this function:| IGL_INLINE bool igl::opengl::glfw::Viewer::load_scene | ( | std::string | fname | ) |
References core, data(), and igl::deserialize().
Here is the call graph for this function:| IGL_INLINE size_t igl::opengl::glfw::Viewer::mesh_index | ( | const int | id | ) | const |
| IGL_INLINE bool igl::opengl::glfw::Viewer::mouse_down | ( | MouseButton | button, |
| int | modifier | ||
| ) |
References callback_mouse_down, igl::opengl::ViewerCore::camera_translation, core, current_mouse_x, current_mouse_y, data(), down, down_mouse_x, down_mouse_y, down_mouse_z, down_rotation, down_translation, Left, mouse_down(), mouse_mode, None, plugins, igl::opengl::ViewerCore::proj, igl::project(), Right, Rotation, igl::opengl::ViewerCore::rotation_type, igl::opengl::ViewerCore::ROTATION_TYPE_NO_ROTATION, igl::opengl::ViewerCore::trackball_angle, Translation, igl::opengl::ViewerData::V, igl::opengl::ViewerCore::view, and igl::opengl::ViewerCore::viewport.
Referenced by glfw_mouse_press(), and mouse_down().
Here is the call graph for this function:
Here is the caller graph for this function:| IGL_INLINE bool igl::opengl::glfw::Viewer::mouse_move | ( | int | mouse_x, |
| int | mouse_y | ||
| ) |
References callback_mouse_move, igl::opengl::ViewerCore::camera_translation, igl::opengl::ViewerCore::camera_zoom, core, current_mouse_x, current_mouse_y, down, down_mouse_x, down_mouse_y, down_mouse_z, down_rotation, down_translation, hack_never_moved, mouse_mode, mouse_move(), plugins, igl::opengl::ViewerCore::proj, Rotation, igl::opengl::ViewerCore::rotation_type, igl::opengl::ViewerCore::ROTATION_TYPE_NO_ROTATION, igl::opengl::ViewerCore::ROTATION_TYPE_TRACKBALL, igl::opengl::ViewerCore::ROTATION_TYPE_TWO_AXIS_VALUATOR_FIXED_UP, igl::trackball(), igl::opengl::ViewerCore::trackball_angle, Translation, igl::two_axis_valuator_fixed_up(), igl::unproject(), igl::opengl::ViewerCore::view, igl::opengl::ViewerCore::viewport, and Zoom.
Referenced by glfw_mouse_move(), and mouse_move().
Here is the call graph for this function:
Here is the caller graph for this function:| IGL_INLINE bool igl::opengl::glfw::Viewer::mouse_scroll | ( | float | delta_y | ) |
References callback_mouse_scroll, igl::opengl::ViewerCore::camera_zoom, core, mouse_scroll(), plugins, and scroll_position.
Referenced by glfw_mouse_scroll(), and mouse_scroll().
Here is the call graph for this function:
Here is the caller graph for this function:| IGL_INLINE bool igl::opengl::glfw::Viewer::mouse_up | ( | MouseButton | button, |
| int | modifier | ||
| ) |
References callback_mouse_up, down, mouse_mode, mouse_up(), None, and plugins.
Referenced by glfw_mouse_press(), and mouse_up().
Here is the call graph for this function:
Here is the caller graph for this function:| IGL_INLINE void igl::opengl::glfw::Viewer::open_dialog_load_mesh | ( | ) |
References igl::file_dialog_open(), and load_mesh_from_file().
Referenced by igl::opengl::glfw::imgui::ImGuiMenu::draw_viewer_menu().
Here is the call graph for this function:
Here is the caller graph for this function:| IGL_INLINE void igl::opengl::glfw::Viewer::open_dialog_save_mesh | ( | ) |
References igl::file_dialog_save(), and save_mesh_to_file().
Referenced by igl::opengl::glfw::imgui::ImGuiMenu::draw_viewer_menu().
Here is the call graph for this function:
Here is the caller graph for this function:| IGL_INLINE void igl::opengl::glfw::Viewer::post_resize | ( | int | w, |
| int | h | ||
| ) |
References core, plugins, and igl::opengl::ViewerCore::viewport.
Referenced by draw(), glfw_window_size(), and resize().
Here is the caller graph for this function:| IGL_INLINE void igl::opengl::glfw::Viewer::resize | ( | int | w, |
| int | h | ||
| ) |
References highdpi, post_resize(), and window.
Here is the call graph for this function:| IGL_INLINE bool igl::opengl::glfw::Viewer::save_mesh_to_file | ( | const std::string & | mesh_file_name | ) |
References data(), plugins, save(), igl::writeOBJ(), and igl::writeOFF().
Referenced by open_dialog_save_mesh().
Here is the call graph for this function:
Here is the caller graph for this function:| IGL_INLINE bool igl::opengl::glfw::Viewer::save_scene | ( | ) |
References igl::file_dialog_save(), and save_scene().
Referenced by igl::opengl::glfw::imgui::ImGuiMenu::draw_viewer_menu(), and save_scene().
Here is the call graph for this function:
Here is the caller graph for this function:| IGL_INLINE bool igl::opengl::glfw::Viewer::save_scene | ( | std::string | fname | ) |
References core, data(), and igl::serialize().
Here is the call graph for this function:| IGL_INLINE void igl::opengl::glfw::Viewer::shutdown_plugins | ( | ) |
References plugins.
Referenced by launch_shut().
Here is the caller graph for this function:| IGL_INLINE void igl::opengl::glfw::Viewer::snap_to_canonical_quaternion | ( | ) |
References core, igl::snap_to_canonical_view_quat(), and igl::opengl::ViewerCore::trackball_angle.
Referenced by igl::opengl::glfw::imgui::ImGuiMenu::draw_viewer_menu(), and key_pressed().
Here is the call graph for this function:
Here is the caller graph for this function:| std::function<bool(Viewer& viewer)> igl::opengl::glfw::Viewer::callback_init |
| std::function<bool(Viewer& viewer, unsigned int key, int modifiers)> igl::opengl::glfw::Viewer::callback_key_down |
Referenced by Viewer(), and key_down().
| std::function<bool(Viewer& viewer, unsigned int key, int modifiers)> igl::opengl::glfw::Viewer::callback_key_pressed |
Referenced by key_pressed().
| void* igl::opengl::glfw::Viewer::callback_key_pressed_data |
| std::function<bool(Viewer& viewer, unsigned int key, int modifiers)> igl::opengl::glfw::Viewer::callback_key_up |
| std::function<bool(Viewer& viewer, int button, int modifier)> igl::opengl::glfw::Viewer::callback_mouse_down |
Referenced by Viewer(), and mouse_down().
| std::function<bool(Viewer& viewer, int mouse_x, int mouse_y)> igl::opengl::glfw::Viewer::callback_mouse_move |
Referenced by Viewer(), and mouse_move().
| std::function<bool(Viewer& viewer, float delta_y)> igl::opengl::glfw::Viewer::callback_mouse_scroll |
Referenced by Viewer(), and mouse_scroll().
| std::function<bool(Viewer& viewer, int button, int modifier)> igl::opengl::glfw::Viewer::callback_mouse_up |
Referenced by Viewer(), and mouse_up().
| std::function<bool(Viewer& viewer)> igl::opengl::glfw::Viewer::callback_post_draw |
| std::function<bool(Viewer& viewer)> igl::opengl::glfw::Viewer::callback_pre_draw |
| ViewerCore igl::opengl::glfw::Viewer::core |
Referenced by draw(), igl::opengl::glfw::imgui::ImGuiMenu::draw_text(), igl::opengl::glfw::imgui::ImGuiMenu::draw_viewer_menu(), init(), key_pressed(), launch_init(), launch_rendering(), launch_shut(), load_mesh_from_file(), load_scene(), mouse_down(), mouse_move(), mouse_scroll(), post_resize(), save_scene(), and snap_to_canonical_quaternion().
| int igl::opengl::glfw::Viewer::current_mouse_x |
Referenced by mouse_down(), and mouse_move().
| int igl::opengl::glfw::Viewer::current_mouse_y |
Referenced by mouse_down(), and mouse_move().
| std::vector<ViewerData> igl::opengl::glfw::Viewer::data_list |
Referenced by Viewer(), append_mesh(), data(), draw(), igl::opengl::glfw::imgui::ImGuiMenu::draw_labels_window(), erase_mesh(), key_pressed(), launch_shut(), and mesh_index().
| bool igl::opengl::glfw::Viewer::down |
Referenced by Viewer(), mouse_down(), mouse_move(), and mouse_up().
| int igl::opengl::glfw::Viewer::down_mouse_x |
Referenced by mouse_down(), and mouse_move().
| int igl::opengl::glfw::Viewer::down_mouse_y |
Referenced by mouse_down(), and mouse_move().
| float igl::opengl::glfw::Viewer::down_mouse_z |
Referenced by mouse_down(), and mouse_move().
| Eigen::Quaternionf igl::opengl::glfw::Viewer::down_rotation |
Referenced by mouse_down(), and mouse_move().
| Eigen::Vector3f igl::opengl::glfw::Viewer::down_translation |
Referenced by mouse_down(), and mouse_move().
| bool igl::opengl::glfw::Viewer::hack_never_moved |
Referenced by Viewer(), and mouse_move().
| enum igl::opengl::glfw::Viewer::MouseMode igl::opengl::glfw::Viewer::mouse_mode |
Referenced by mouse_down(), mouse_move(), and mouse_up().
| int igl::opengl::glfw::Viewer::next_data_id |
Referenced by append_mesh().
| std::vector<ViewerPlugin*> igl::opengl::glfw::Viewer::plugins |
Referenced by draw(), init_plugins(), key_down(), key_pressed(), key_up(), load_mesh_from_file(), mouse_down(), mouse_move(), mouse_scroll(), mouse_up(), post_resize(), save_mesh_to_file(), and shutdown_plugins().
| float igl::opengl::glfw::Viewer::scroll_position |
Referenced by Viewer(), and mouse_scroll().
| size_t igl::opengl::glfw::Viewer::selected_data_index |
Referenced by append_mesh(), data(), erase_mesh(), and key_pressed().
| GLFWwindow* igl::opengl::glfw::Viewer::window |
Referenced by Viewer(), draw(), igl::opengl::glfw::imgui::ImGuiMenu::init(), igl::opengl::glfw::imgui::ImGuiMenu::key_down(), igl::opengl::glfw::imgui::ImGuiMenu::key_up(), launch_init(), launch_rendering(), launch_shut(), igl::opengl::glfw::imgui::ImGuiMenu::mouse_down(), igl::opengl::glfw::imgui::ImGuiMenu::mouse_scroll(), and resize().