1 #ifndef bwm_popup_menu_h_ 2 #define bwm_popup_menu_h_ 3 //: 4 // \file 5 #include <vgui/vgui_popup_params.h> 6 #include <vgui/vgui_menu.h> 7 #include <vgui/vgui_tableau.h> 8 9 class bwm_popup_menu 10 { 11 public: bwm_popup_menu(vgui_tableau_sptr tab)12 bwm_popup_menu(vgui_tableau_sptr tab) : tab_(tab) {} ~bwm_popup_menu()13 virtual ~bwm_popup_menu() {} 14 void get_menu(vgui_menu& menu); 15 16 // ************* IMAGE Processing Methods 17 18 //: Draws the histogram on a graph (if the image is greyscale) 19 void hist_plot();// { (tab_->hist_plot(); } 20 21 //: Draws the intensity profile on a selected line(if the image is greyscale) 22 void intensity_profile(); 23 24 //: Provides a menu for adjusting the image display range map 25 void range_map(); 26 27 //: Select a polygon before you call this method. 28 // If it is a multiface object, it deletes the object where the selected 29 // polygon belongs to. 30 void clear_poly(); 31 32 //: clears the edges inside a box 33 void clear_box(); 34 35 //: Deletes all the objects created so far 36 void clear_all(); 37 38 //: deselects all the selected objects on the tableau 39 void deselect_all(); 40 41 42 void help_pop(); 43 void toggle_show_image_path(); 44 void zoom_to_fit(); 45 void scroll_to_point(); 46 void step_edges_vd(); 47 void lines_vd(); 48 void recover_edges(); 49 void recover_lines(); 50 51 52 private: 53 vgui_tableau_sptr tab_; 54 }; 55 56 #endif 57