libigl v2.5.0
|
#include <Viewer.h>
Public Types | |
enum class | MouseButton { Left , Middle , Right } |
enum class | MouseMode { None , Rotation , Zoom , Pan , Translation } |
Public Member Functions | |
int | launch (bool fullscreen=false, const std::string &name="libigl viewer", int width=0, int height=0) |
int | launch_init (bool fullscreen=false, const std::string &name="libigl viewer", int width=0, int height=0) |
bool | launch_rendering (bool loop=true) |
void | launch_shut () |
void | init () |
void | init_plugins () |
void | shutdown_plugins () |
Viewer () | |
~Viewer () | |
bool | load_mesh_from_file (const std::string &mesh_file_name) |
bool | save_mesh_to_file (const std::string &mesh_file_name) |
bool | key_pressed (unsigned int unicode_key, int modifier) |
bool | key_down (int key, int modifier) |
bool | key_up (int key, int modifier) |
bool | mouse_down (MouseButton button, int modifier) |
bool | mouse_up (MouseButton button, int modifier) |
bool | mouse_move (int mouse_x, int mouse_y) |
bool | mouse_scroll (float delta_y) |
bool | load_scene () |
bool | load_scene (std::string fname) |
bool | save_scene () |
bool | save_scene (std::string fname) |
void | draw () |
template<typename T > | |
void | draw_buffer (igl::opengl::ViewerCore &core, Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &R, Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &G, Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &B, Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &A, Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &D) |
void | resize (int w, int h) |
void | post_resize (int w, int h) |
void | snap_to_canonical_quaternion () |
void | open_dialog_load_mesh () |
void | open_dialog_save_mesh () |
ViewerData & | data (int mesh_id=-1) |
const ViewerData & | data (int mesh_id=-1) const |
int | append_mesh (bool visible=true) |
bool | erase_mesh (const size_t index) |
size_t | mesh_index (const int id) const |
ViewerCore & | core (unsigned core_id=0) |
const ViewerCore & | core (unsigned core_id=0) const |
int | append_core (Eigen::Vector4f viewport, bool append_empty=false) |
bool | erase_core (const size_t index) |
size_t | core_index (const int id) const |
void | select_hovered_core () |
Public Attributes | |
enum igl::opengl::glfw::Viewer::MouseMode | mouse_mode |
std::vector< ViewerData > | data_list |
size_t | selected_data_index |
int | next_data_id |
GLFWwindow * | window |
std::vector< ViewerCore > | core_list |
size_t | selected_core_index |
int | next_core_id |
std::vector< ViewerPlugin * > | plugins |
Eigen::Quaternionf | down_rotation |
int | current_mouse_x |
int | current_mouse_y |
int | down_mouse_x |
int | down_mouse_y |
float | down_mouse_z |
Eigen::Vector3f | down_translation |
bool | down |
bool | hack_never_moved |
float | scroll_position |
std::function< bool(Viewer &viewer)> | callback_init |
std::function< bool(Viewer &viewer)> | callback_pre_draw |
std::function< bool(Viewer &viewer)> | callback_post_draw |
std::function< bool(Viewer &viewer, int button, int modifier)> | callback_mouse_down |
std::function< bool(Viewer &viewer, int button, int modifier)> | callback_mouse_up |
std::function< bool(Viewer &viewer, int mouse_x, int mouse_y)> | callback_mouse_move |
std::function< bool(Viewer &viewer, float delta_y)> | callback_mouse_scroll |
std::function< bool(Viewer &viewer, unsigned int key, int modifiers)> | callback_key_pressed |
std::function< bool(Viewer &viewer, int w, int h)> | callback_post_resize |
std::function< bool(Viewer &viewer, unsigned int key, int modifiers)> | callback_key_down |
std::function< bool(Viewer &viewer, unsigned int key, int modifiers)> | callback_key_up |
void * | callback_init_data |
void * | callback_pre_draw_data |
void * | callback_post_draw_data |
void * | callback_mouse_down_data |
void * | callback_mouse_up_data |
void * | callback_mouse_move_data |
void * | callback_mouse_scroll_data |
void * | callback_key_pressed_data |
void * | callback_key_down_data |
void * | callback_key_up_data |
|
strong |
|
strong |
igl::opengl::glfw::Viewer::Viewer | ( | ) |
igl::opengl::glfw::Viewer::~Viewer | ( | ) |
int igl::opengl::glfw::Viewer::launch | ( | bool | fullscreen = false , |
const std::string & | name = "libigl viewer" , |
||
int | width = 0 , |
||
int | height = 0 |
||
) |
int igl::opengl::glfw::Viewer::launch_init | ( | bool | fullscreen = false , |
const std::string & | name = "libigl viewer" , |
||
int | width = 0 , |
||
int | height = 0 |
||
) |
bool igl::opengl::glfw::Viewer::launch_rendering | ( | bool | loop = true | ) |
void igl::opengl::glfw::Viewer::launch_shut | ( | ) |
void igl::opengl::glfw::Viewer::init | ( | ) |
void igl::opengl::glfw::Viewer::init_plugins | ( | ) |
void igl::opengl::glfw::Viewer::shutdown_plugins | ( | ) |
bool igl::opengl::glfw::Viewer::load_mesh_from_file | ( | const std::string & | mesh_file_name | ) |
bool igl::opengl::glfw::Viewer::save_mesh_to_file | ( | const std::string & | mesh_file_name | ) |
bool igl::opengl::glfw::Viewer::key_pressed | ( | unsigned int | unicode_key, |
int | modifier | ||
) |
bool igl::opengl::glfw::Viewer::key_down | ( | int | key, |
int | modifier | ||
) |
bool igl::opengl::glfw::Viewer::key_up | ( | int | key, |
int | modifier | ||
) |
bool igl::opengl::glfw::Viewer::mouse_down | ( | MouseButton | button, |
int | modifier | ||
) |
bool igl::opengl::glfw::Viewer::mouse_up | ( | MouseButton | button, |
int | modifier | ||
) |
bool igl::opengl::glfw::Viewer::mouse_move | ( | int | mouse_x, |
int | mouse_y | ||
) |
bool igl::opengl::glfw::Viewer::mouse_scroll | ( | float | delta_y | ) |
bool igl::opengl::glfw::Viewer::load_scene | ( | ) |
bool igl::opengl::glfw::Viewer::load_scene | ( | std::string | fname | ) |
bool igl::opengl::glfw::Viewer::save_scene | ( | ) |
bool igl::opengl::glfw::Viewer::save_scene | ( | std::string | fname | ) |
void igl::opengl::glfw::Viewer::draw | ( | ) |
void igl::opengl::glfw::Viewer::draw_buffer | ( | igl::opengl::ViewerCore & | core, |
Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > & | R, | ||
Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > & | G, | ||
Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > & | B, | ||
Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > & | A, | ||
Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > & | D | ||
) |
void igl::opengl::glfw::Viewer::resize | ( | int | w, |
int | h | ||
) |
void igl::opengl::glfw::Viewer::post_resize | ( | int | w, |
int | h | ||
) |
void igl::opengl::glfw::Viewer::snap_to_canonical_quaternion | ( | ) |
void igl::opengl::glfw::Viewer::open_dialog_load_mesh | ( | ) |
void igl::opengl::glfw::Viewer::open_dialog_save_mesh | ( | ) |
ViewerData & igl::opengl::glfw::Viewer::data | ( | int | mesh_id = -1 | ) |
const ViewerData & igl::opengl::glfw::Viewer::data | ( | int | mesh_id = -1 | ) | const |
int igl::opengl::glfw::Viewer::append_mesh | ( | bool | visible = true | ) |
bool igl::opengl::glfw::Viewer::erase_mesh | ( | const size_t | index | ) |
size_t igl::opengl::glfw::Viewer::mesh_index | ( | const int | id | ) | const |
ViewerCore & igl::opengl::glfw::Viewer::core | ( | unsigned | core_id = 0 | ) |
const ViewerCore & igl::opengl::glfw::Viewer::core | ( | unsigned | core_id = 0 | ) | const |
int igl::opengl::glfw::Viewer::append_core | ( | Eigen::Vector4f | viewport, |
bool | append_empty = false |
||
) |
bool igl::opengl::glfw::Viewer::erase_core | ( | const size_t | index | ) |
size_t igl::opengl::glfw::Viewer::core_index | ( | const int | id | ) | const |
void igl::opengl::glfw::Viewer::select_hovered_core | ( | ) |
enum igl::opengl::glfw::Viewer::MouseMode igl::opengl::glfw::Viewer::mouse_mode |
std::vector<ViewerData> igl::opengl::glfw::Viewer::data_list |
size_t igl::opengl::glfw::Viewer::selected_data_index |
int igl::opengl::glfw::Viewer::next_data_id |
GLFWwindow* igl::opengl::glfw::Viewer::window |
std::vector<ViewerCore> igl::opengl::glfw::Viewer::core_list |
size_t igl::opengl::glfw::Viewer::selected_core_index |
int igl::opengl::glfw::Viewer::next_core_id |
std::vector<ViewerPlugin*> igl::opengl::glfw::Viewer::plugins |
Eigen::Quaternionf igl::opengl::glfw::Viewer::down_rotation |
int igl::opengl::glfw::Viewer::current_mouse_x |
int igl::opengl::glfw::Viewer::current_mouse_y |
int igl::opengl::glfw::Viewer::down_mouse_x |
int igl::opengl::glfw::Viewer::down_mouse_y |
float igl::opengl::glfw::Viewer::down_mouse_z |
Eigen::Vector3f igl::opengl::glfw::Viewer::down_translation |
bool igl::opengl::glfw::Viewer::down |
bool igl::opengl::glfw::Viewer::hack_never_moved |
float igl::opengl::glfw::Viewer::scroll_position |
std::function<bool(Viewer& viewer)> igl::opengl::glfw::Viewer::callback_init |
std::function<bool(Viewer& viewer)> igl::opengl::glfw::Viewer::callback_pre_draw |
std::function<bool(Viewer& viewer)> igl::opengl::glfw::Viewer::callback_post_draw |
std::function<bool(Viewer& viewer, int button, int modifier)> igl::opengl::glfw::Viewer::callback_mouse_down |
std::function<bool(Viewer& viewer, int button, int modifier)> igl::opengl::glfw::Viewer::callback_mouse_up |
std::function<bool(Viewer& viewer, int mouse_x, int mouse_y)> igl::opengl::glfw::Viewer::callback_mouse_move |
std::function<bool(Viewer& viewer, float delta_y)> igl::opengl::glfw::Viewer::callback_mouse_scroll |
std::function<bool(Viewer& viewer, unsigned int key, int modifiers)> igl::opengl::glfw::Viewer::callback_key_pressed |
std::function<bool(Viewer& viewer, int w, int h)> igl::opengl::glfw::Viewer::callback_post_resize |
std::function<bool(Viewer& viewer, unsigned int key, int modifiers)> igl::opengl::glfw::Viewer::callback_key_down |
std::function<bool(Viewer& viewer, unsigned int key, int modifiers)> igl::opengl::glfw::Viewer::callback_key_up |
void* igl::opengl::glfw::Viewer::callback_init_data |
void* igl::opengl::glfw::Viewer::callback_pre_draw_data |
void* igl::opengl::glfw::Viewer::callback_post_draw_data |
void* igl::opengl::glfw::Viewer::callback_mouse_down_data |
void* igl::opengl::glfw::Viewer::callback_mouse_up_data |
void* igl::opengl::glfw::Viewer::callback_mouse_move_data |
void* igl::opengl::glfw::Viewer::callback_mouse_scroll_data |
void* igl::opengl::glfw::Viewer::callback_key_pressed_data |
void* igl::opengl::glfw::Viewer::callback_key_down_data |
void* igl::opengl::glfw::Viewer::callback_key_up_data |