|
|
| SimpleMeshApplication (const std::string &name) |
| | Application constructor.
|
| |
| void | install_key_file_navigation () |
| | Installs key navigation callbacks.
|
| |
| | SimpleApplication (const std::string &name) |
| | SimpleApplication constructor.
|
| |
|
| ~SimpleApplication () override |
| | SimpleApplication destructor.
|
| |
| void | draw_gui () override |
| | This function is called when the GUI should be redisplayed.
|
| |
| void | draw_graphics () override |
| | This function is called when the 3d content should be redisplayed.
|
| |
| TextEditor & | text_editor () |
| | Gets the text editor.
|
| |
| void | show_text_editor () |
| | Shows the text editor.
|
| |
| void | hide_text_editor () |
| | Hides the text editor.
|
| |
| void | show_console () |
| | Shows the console.
|
| |
| void | hide_console () |
| | Hides the console.
|
| |
|
void | home () |
| | Restores default viewing parameters.
|
| |
| void | set_style (const std::string &style) override |
| | Sets the style of the application.
|
| |
| void | set_region_of_interest (double xmin, double ymin, double zmin, double xmax, double ymax, double zmax) |
| | Sets the region of interest.
|
| |
| void | get_region_of_interest (double &xmin, double &ymin, double &zmin, double &xmax, double &ymax, double &zmax) const |
| | Gets the region of interest.
|
| |
| void | zoom_in () |
| |
| void | zoom_out () |
| |
| void | set_clipping (bool x) |
| |
| void | set_lighting (bool x) |
| |
| void | set_background_color (const vec4f &color) |
| |
|
virtual bool | exec_command (const char *command) |
| |
| vec3 | project (const vec3 &p) |
| | Projects a point from model space to window coordinates.
|
| |
| vec3 | unproject (const vec3 &p) |
| | Unprojects a 3d point from window coordinates to model space.
|
| |
| vec2 | unproject_2d (const vec2 &p) |
| | Unprojects a 2d point from window coordinates to model space.
|
| |
| void | drop_callback (int nb, const char **f) override |
| | Callback called whenever files are dropped in the window.
|
| |
| | Application (const std::string &name) |
| | Application constructor.
|
| |
|
virtual | ~Application () |
| | Application destructor.
|
| |
| const std::string & | name () const |
| | Gets the name of this application.
|
| |
| virtual void | start (int argc=0, char **argv=nullptr) |
| | Starts the main event loop of the application.
|
| |
|
virtual void | stop () |
| | Stops the application.
|
| |
| const std::string & | get_style () const |
| | Gets the style.
|
| |
| void | set_font_size (index_t value) |
| | Sets the font size.
|
| |
| index_t | get_font_size () const |
| | Gets the font size.
|
| |
|
virtual void | update () |
| | Indicates that the main window should be redrawn.
|
| |
|
void | draw_dock_space () |
| | Draws a dockspace that fills the current window.
|
| |
| void | lock_updates () |
| | Lock updates.
|
| |
| void | unlock_updates () |
| | Unlock updates.
|
| |
| virtual void | draw () |
| | Redraws the main window.
|
| |
| double | scaling () const |
| | Gets the global scaling to be applied to all GUI elements.
|
| |
| void | set_full_screen_mode (index_t w=0, index_t h=0, index_t hz=0, index_t monitor=0) |
| | Sets full-screen mode.
|
| |
| void | set_windowed_mode (index_t w=0, index_t h=0) |
| | Sets windowed mode.
|
| |
| void | list_video_modes () |
| | Lists the video modes that can be used for set_full_screen_mode()
|
| |
|
void | iconify () |
| | Iconifies this application.
|
| |
|
void | restore () |
| | Restores this application.
|
| |
| void | set_gui_state (std::string x) |
| | Sets the gui state.
|
| |
| std::string | get_gui_state () const |
| | Gets the gui state.
|
| |
| void | set_full_screen (bool x) |
| | Sets full-screen mode.
|
| |
| bool | get_full_screen () const |
| | Tests whether this application is in full-screen mode.
|
| |
| index_t | get_width () const |
| | Gets the width of the window.
|
| |
| index_t | get_height () const |
| | Gets the height of the window.
|
| |
| index_t | get_frame_buffer_width () const |
| | Gets the width of the window.
|
| |
| index_t | get_frame_buffer_height () const |
| | Gets the height of the window.
|
| |
| void | set_accept_drops (bool value) |
| | Sets whether drag and drop events should be taken into account.
|
| |
| bool | get_accept_drops () const |
| | Tests whether drag and drop events are taken into account.
|
| |
| void | set_window_icon (Image *image) |
| | Sets the icon of the window.
|
| |
| void | restart_gui () |
| | Restarts the gui.
|
| |
| ApplicationData * | impl_data () |
| | Gets a pointer to the implementation-specific data.
|
| |
| void * | impl_window () |
| | Gets a pointer to the implementation-specific window.
|
| |
| double | hidpi_scaling () const |
| | MacOS non-sense.
|
| |
| double | pixel_ratio () const |
| | More MacOS non-sense.
|
| |
| void | reset_soft_keyboard_flag () |
| | Used internally.
|
| |
| const char * | key_to_string (int key) |
| | Converts a key to a symbolic string with the name of the key.
|
| |
| virtual void | pre_draw () |
| | This function is called before starting drawing operations.
|
| |
| virtual bool | needs_to_redraw () const |
| | Tests whether the window needs to be redrawn.
|
| |
|
virtual void | create_window () |
| | Creates the window using GLFW.
|
| |
|
virtual void | delete_window () |
| | Deletes the window created by GLFW.
|
| |
| virtual void | one_frame () |
| | Draws one frame.
|
| |
| virtual void | main_loop () |
| | Enters the main application loop.
|
| |
|
virtual void | ImGui_load_fonts () |
| | Loads the fonts in ImGui.
|
| |
|
virtual void | ImGui_terminate () |
| | Deallocates objects used by the ImGui library.
|
| |
|
virtual void | ImGui_new_frame () |
| | Notifies ImGui that a new frame has just started.
|
| |
|
void | callbacks_initialize () |
| | Initializes the callbacks if not already initialized.
|
| |
| const std::vector< std::string > & | filenames () const |
| | Gets all the filenames specified on the command line.
|
| |
| bool | animate () const |
| |
| bool * | animate_ptr () |
| |
| void | start_animation () |
| |
| void | stop_animation () |
| |
|
| void | geogram_initialize (int argc, char **argv) override |
| |
| std::string | supported_read_file_extensions () override |
| | Gets the list of supported file extensions for reading.
|
| |
| std::string | supported_write_file_extensions () override |
| | Gets the list of supported file extensions for writing.
|
| |
| void | draw_object_properties () override |
| | Draws the contents of the object properties window.
|
| |
| void | draw_scene () override |
| | Draws the scene.
|
| |
| void | GL_initialize () override |
| | Initializes OpenGL and GLUP objects.
|
| |
| void | GL_terminate () override |
| | Deallocates OpenGL and GLUP objects.
|
| |
| bool | load (const std::string &filename) override |
| | Loads a file.
|
| |
| bool | save (const std::string &filename) override |
| | Saves the current content to a file.
|
| |
| virtual void | draw_points () |
| | Called at the beginning of draw_scene().
|
| |
|
virtual void | draw_edges () |
| |
|
virtual void | draw_surface () |
| |
|
virtual void | draw_volume () |
| |
| void | get_bbox (const Mesh &M_in, double *xyzmin, double *xyzmax, bool animate) |
| | Gets the bounding box of a mesh animation.
|
| |
|
void | jump_to_file (int relative_index) |
| |
| Mesh * | mesh () |
| | Gets the mesh.
|
| |
| MeshGfx * | mesh_gfx () |
| | Gets the mesh graphics.
|
| |
| void | show_vertices () |
| | Makes the vertices visible.
|
| |
| void | hide_vertices () |
| | Makes the vertices invisible.
|
| |
| void | show_surface () |
| | Makes the surface facets visible.
|
| |
| void | hide_surface () |
| | Makes the surface facets invisible.
|
| |
| void | show_volume () |
| | Makes the volume cells visible.
|
| |
| void | hide_volume () |
| | Makes the volume cells invisible.
|
| |
|
virtual void | show_attributes () |
| | Makes the attributes visible.
|
| |
|
virtual void | hide_attributes () |
| | Makes the attributes invisible.
|
| |
|
void | autorange () |
| | Adjusts the current minimum and maximum attribute value to the currently bound attribute if any.
|
| |
| std::string | attribute_names () |
| | Gets the list of attribute names.
|
| |
| void | set_attribute (const std::string &attribute) |
| | Sets the currently displayed attribute.
|
| |
| void | add_key_func (const std::string &key, std::function< void()> cb, const char *help=nullptr) |
| | Declares a function to be triggered when a key is pressed.
|
| |
| void | add_key_toggle (const std::string &key, bool *p_val, const char *help=nullptr) |
| | Declares a boolean to be toggled when a key is pressed.
|
| |
| void | char_callback (unsigned int c) override |
| | Callback called whenever a key is pushed (high level version)
|
| |
| void | key_callback (int key, int scancode, int action, int mods) override |
| | Callback called whenever a key is pushed (low level version)
|
| |
| void | mouse_button_callback (int button, int action, int mods, int source) override |
| | Callback called whenenver a mouse button changed.
|
| |
| void | cursor_pos_callback (double x, double y, int source) override |
| | Callback called whenever the mouse cursor is moved.
|
| |
| void | scroll_callback (double xoffset, double yoffset) override |
| | Callback called whenenver the mouse wheel is moved.
|
| |
|
virtual void | draw_scene_begin () |
| | Setups OpenGL for scene drawing.
|
| |
|
virtual void | draw_scene_end () |
| | Cleanups OpenGL after scene drawing.
|
| |
|
virtual void | draw_viewer_properties_window () |
| | Draws the viewer properties window frame and contents.
|
| |
|
virtual void | draw_viewer_properties () |
| | Draws the contents of viewer properties window.
|
| |
|
virtual void | draw_object_properties_window () |
| | Draw the object properties window frame and contents.
|
| |
|
virtual void | draw_command_window () |
| | Draws the active command window if any.
|
| |
|
virtual void | draw_console () |
| | Draws the console.
|
| |
|
virtual void | draw_menu_bar () |
| | Draws the menu bar.
|
| |
|
virtual void | draw_load_menu () |
| | Draws the load menu and browser.
|
| |
|
virtual void | draw_save_menu () |
| | Draws the save menu.
|
| |
| virtual void | draw_fileops_menu () |
| | Draws other file operation menu.
|
| |
|
virtual void | draw_about () |
| | Draws the about box in the file menu.
|
| |
|
virtual void | draw_help () |
| | Draws help info (accelarators)
|
| |
|
virtual void | draw_windows_menu () |
| | Draws the windows menu.
|
| |
| virtual void | draw_application_menus () |
| | Draws the application menus.
|
| |
| virtual void | draw_application_icons () |
| | Draws the application icons on the menubar.
|
| |
| void | post_draw () override |
| | This function is called after all drawing operations.
|
| |
| virtual bool | can_load (const std::string &filename) |
| | Tests whether a file can be loaded.
|
| |
| ImTextureID | convert_to_ImTextureID (GLuint gl_texture_id_in) |
| | Converts an OpenGL texture ID into an ImGUI texture ID.
|
| |
| void | browse (const std::string &path, bool subdirs=false) |
| | Recursively browses a directory and generates menu items.
|
| |
| void | set_default_filename (const std::string &filename) |
| | Sets the default filename used to save the current file.
|
| |
| void | init_colormap (const std::string &name, const char **xpm_data) |
| | Initializes a new colormap from name and xpm data.
|
| |
| void | init_colormaps () |
| | Initializes all the default colormaps.
|
| |
| void | ImGui_initialize () override |
| | Initializes the ImGui library.
|
| |
| void | set_2d () |
| |
| void | set_3d () |
| |
|
void | set_default_layout () |
| |
| void | resize (index_t w, index_t h, index_t fb_w, index_t fb_h) override |
| | Called whenever window size changes.
|
| |
|
virtual const char * | default_layout () const |
| |
|
virtual const char * | default_layout_android_vertical () const |
| |
|
virtual const char * | default_layout_android_horizontal () const |
| |
An Application that manipulates a single Mesh.
Definition at line 52 of file simple_mesh_application.h.