Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
igl::opengl::glfw::ViewerPlugin Class Reference

#include <src/libigl/igl/opengl/glfw/ViewerPlugin.h>

+ Inheritance diagram for igl::opengl::glfw::ViewerPlugin:
+ Collaboration diagram for igl::opengl::glfw::ViewerPlugin:

Public Member Functions

IGL_INLINE ViewerPlugin ()
 
virtual ~ViewerPlugin ()
 
virtual IGL_INLINE void init (Viewer *_viewer)
 
virtual IGL_INLINE void shutdown ()
 
virtual IGL_INLINE bool load (std::string filename)
 
virtual IGL_INLINE bool save (std::string filename)
 
virtual IGL_INLINE bool serialize (std::vector< char > &buffer) const
 
virtual IGL_INLINE bool deserialize (const std::vector< char > &buffer)
 
virtual IGL_INLINE bool post_load ()
 
virtual IGL_INLINE bool pre_draw ()
 
virtual IGL_INLINE bool post_draw ()
 
virtual IGL_INLINE void post_resize (int w, int h)
 
virtual IGL_INLINE bool mouse_down (int button, int modifier)
 
virtual IGL_INLINE bool mouse_up (int button, int modifier)
 
virtual IGL_INLINE bool mouse_move (int mouse_x, int mouse_y)
 
virtual IGL_INLINE bool mouse_scroll (float delta_y)
 
virtual IGL_INLINE bool key_pressed (unsigned int key, int modifiers)
 
virtual IGL_INLINE bool key_down (int key, int modifiers)
 
virtual IGL_INLINE bool key_up (int key, int modifiers)
 

Public Attributes

std::string plugin_name
 

Protected Attributes

Viewerviewer
 

Detailed Description

Constructor & Destructor Documentation

◆ ViewerPlugin()

IGL_INLINE igl::opengl::glfw::ViewerPlugin::ViewerPlugin ( )
inline
44 {plugin_name = "dummy";}
std::string plugin_name
Definition ViewerPlugin.h:159

References plugin_name.

◆ ~ViewerPlugin()

virtual igl::opengl::glfw::ViewerPlugin::~ViewerPlugin ( )
inlinevirtual
46{}

Member Function Documentation

◆ deserialize()

virtual IGL_INLINE bool igl::opengl::glfw::ViewerPlugin::deserialize ( const std::vector< char > &  buffer)
inlinevirtual
79 {
80 return false;
81 }

Referenced by igl::opengl::glfw::serialization::deserialize().

+ Here is the caller graph for this function:

◆ init()

virtual IGL_INLINE void igl::opengl::glfw::ViewerPlugin::init ( Viewer _viewer)
inlinevirtual

Reimplemented in igl::opengl::glfw::imgui::ImGuiMenu.

50 {
51 viewer = _viewer;
52 }
Viewer * viewer
Definition ViewerPlugin.h:162

References viewer.

Referenced by igl::opengl::glfw::imgui::ImGuiMenu::init().

+ Here is the caller graph for this function:

◆ key_down()

virtual IGL_INLINE bool igl::opengl::glfw::ViewerPlugin::key_down ( int  key,
int  modifiers 
)
inlinevirtual

Reimplemented in igl::opengl::glfw::imgui::ImGuiMenu.

148 {
149 return false;
150 }

◆ key_pressed()

virtual IGL_INLINE bool igl::opengl::glfw::ViewerPlugin::key_pressed ( unsigned int  key,
int  modifiers 
)
inlinevirtual

Reimplemented in igl::opengl::glfw::imgui::ImGuiMenu.

141 {
142 return false;
143 }

◆ key_up()

virtual IGL_INLINE bool igl::opengl::glfw::ViewerPlugin::key_up ( int  key,
int  modifiers 
)
inlinevirtual

Reimplemented in igl::opengl::glfw::imgui::ImGuiMenu.

155 {
156 return false;
157 }

◆ load()

virtual IGL_INLINE bool igl::opengl::glfw::ViewerPlugin::load ( std::string  filename)
inlinevirtual
61 {
62 return false;
63 }

◆ mouse_down()

virtual IGL_INLINE bool igl::opengl::glfw::ViewerPlugin::mouse_down ( int  button,
int  modifier 
)
inlinevirtual

Reimplemented in igl::opengl::glfw::imgui::ImGuiMenu.

110 {
111 return false;
112 }

◆ mouse_move()

virtual IGL_INLINE bool igl::opengl::glfw::ViewerPlugin::mouse_move ( int  mouse_x,
int  mouse_y 
)
inlinevirtual

Reimplemented in igl::opengl::glfw::imgui::ImGuiMenu.

125 {
126 return false;
127 }

◆ mouse_scroll()

virtual IGL_INLINE bool igl::opengl::glfw::ViewerPlugin::mouse_scroll ( float  delta_y)
inlinevirtual

Reimplemented in igl::opengl::glfw::imgui::ImGuiMenu.

132 {
133 return false;
134 }

◆ mouse_up()

virtual IGL_INLINE bool igl::opengl::glfw::ViewerPlugin::mouse_up ( int  button,
int  modifier 
)
inlinevirtual

Reimplemented in igl::opengl::glfw::imgui::ImGuiMenu.

118 {
119 return false;
120 }

◆ post_draw()

virtual IGL_INLINE bool igl::opengl::glfw::ViewerPlugin::post_draw ( )
inlinevirtual

Reimplemented in igl::opengl::glfw::imgui::ImGuiMenu.

97 {
98 return false;
99 }

◆ post_load()

virtual IGL_INLINE bool igl::opengl::glfw::ViewerPlugin::post_load ( )
inlinevirtual
85 {
86 return false;
87 }

◆ post_resize()

virtual IGL_INLINE void igl::opengl::glfw::ViewerPlugin::post_resize ( int  w,
int  h 
)
inlinevirtual

Reimplemented in igl::opengl::glfw::imgui::ImGuiMenu.

103 {
104 }

◆ pre_draw()

virtual IGL_INLINE bool igl::opengl::glfw::ViewerPlugin::pre_draw ( )
inlinevirtual

Reimplemented in igl::opengl::glfw::imgui::ImGuiMenu.

91 {
92 return false;
93 }

◆ save()

virtual IGL_INLINE bool igl::opengl::glfw::ViewerPlugin::save ( std::string  filename)
inlinevirtual
67 {
68 return false;
69 }

◆ serialize()

virtual IGL_INLINE bool igl::opengl::glfw::ViewerPlugin::serialize ( std::vector< char > &  buffer) const
inlinevirtual
73 {
74 return false;
75 }

Referenced by igl::opengl::glfw::serialization::serialize().

+ Here is the caller graph for this function:

◆ shutdown()

virtual IGL_INLINE void igl::opengl::glfw::ViewerPlugin::shutdown ( )
inlinevirtual

Reimplemented in igl::opengl::glfw::imgui::ImGuiMenu.

56 {
57 }

Member Data Documentation

◆ plugin_name

std::string igl::opengl::glfw::ViewerPlugin::plugin_name

Referenced by ViewerPlugin().

◆ viewer


The documentation for this class was generated from the following file: