9#ifndef IGL_OPENGL_GLFW_IMGUI_IMGUIPLUGIN_H
10#define IGL_OPENGL_GLFW_IMGUI_IMGUIPLUGIN_H
13#include "../ViewerPlugin.h"
14#include "../../../igl_inline.h"
61 const Eigen::Vector3d pos,
62 const Eigen::Vector3d normal,
63 const std::string &text,
64 const Eigen::Vector4f color = Eigen::Vector4f(0,0,0.04,1));
73#ifndef IGL_STATIC_LIBRARY
74# include "ImGuiPlugin.cpp"
Abstract class for plugins All plugins MUST have this class as their parent and may implement any/all...
Definition ViewerPlugin.h:39
Plugin for the viewer to enable imgui widgets.
Definition ImGuiPlugin.h:32
virtual bool key_up(int key, int modifiers) override
virtual bool pre_draw() override
This function is called before the draw procedure of Viewer.
std::vector< ImGuiWidget * > widgets
Definition ImGuiPlugin.h:43
void draw_text(const Eigen::Vector3d pos, const Eigen::Vector3d normal, const std::string &text, const Eigen::Vector4f color=Eigen::Vector4f(0, 0, 0.04, 1))
virtual bool mouse_up(int button, int modifier) override
virtual bool key_down(int key, int modifiers) override
virtual void post_resize(int width, int height) override
This function is called after the window has been resized.
float pixel_ratio_
Definition ImGuiPlugin.h:38
virtual bool mouse_scroll(float delta_y) override
virtual void reload_font(int font_size=13)
float hidpi_scaling_
Definition ImGuiPlugin.h:35
virtual void init(igl::opengl::glfw::Viewer *_viewer) override
This function is called when the viewer is initialized (no mesh will be loaded at this stage)
virtual bool key_pressed(unsigned int key, int modifiers) override
virtual bool mouse_down(int button, int modifier) override
ImGuiContext * context_
Definition ImGuiPlugin.h:40
virtual bool mouse_move(int mouse_x, int mouse_y) override
virtual void shutdown() override
This function is called before shutdown.
virtual bool post_draw() override
This function is called after the draw procedure of Viewer.
#define IGL_INLINE
Definition igl_inline.h:15