17#ifndef __gui_mrview_tool_view_h__
18#define __gui_mrview_tool_view_h__
52 QPushButton *clip_on_button[3], *clip_edit_button[3], *clip_modify_button;
56 bool get_cliphighlightstate ()
const;
57 bool get_clipintersectionmodestate ()
const;
59 void update_lightbox_mode_gui(
const Mode::LightBox &mode)
override;
60 void update_ortho_mode_gui (
const Mode::Ortho &mode)
override;
61 void deactivate ()
override;
69 virtual void showEvent (QShowEvent* event)
override;
73 void onImageChanged ();
74 void onImageVisibilityChanged (
bool);
75 void onFocusChanged ();
76 void onVolumeIndexChanged();
80 void onSetVolumeIndex ();
81 void onPlaneChanged ();
82 void onSetPlane (
int index);
84 void onScalingChanged ();
85 void onSetTransparency ();
87 void onCheckThreshold (
bool);
88 void onModeChanged ();
89 void hide_image_slot (
bool flag);
90 void copy_focus_slot ();
91 void copy_voxel_slot ();
92 void clip_planes_right_click_menu_slot (
const QPoint& pos);
93 void clip_planes_selection_changed_slot ();
94 void clip_planes_toggle_shown_slot();
95 void clip_planes_toggle_highlight_slot();
96 void clip_planes_toggle_intersectionmode_slot();
98 void clip_planes_add_axial_slot ();
99 void clip_planes_add_sagittal_slot ();
100 void clip_planes_add_coronal_slot ();
102 void clip_planes_reset_axial_slot ();
103 void clip_planes_reset_sagittal_slot ();
104 void clip_planes_reset_coronal_slot ();
106 void clip_planes_invert_slot ();
107 void clip_planes_remove_slot ();
108 void clip_planes_clear_slot ();
110 void light_box_slice_inc_reset_slot ();
111 void light_box_toggle_volumes_slot (
bool);
114 QPushButton *hide_button;
115 QPushButton *copy_focus_button;
116 QPushButton *copy_voxel_button;
122 QCheckBox *lower_threshold_check_box, *upper_threshold_check_box, *clip_highlight_check_box, *clip_intersectionmode_check_box, *ortho_view_in_row_check_box;
123 QComboBox *plane_combobox;
124 QGroupBox *volume_box, *transparency_box, *threshold_box, *clip_box, *lightbox_box;
126 QMenu *clip_planes_option_menu, *clip_planes_reset_submenu;
127 QAction *clip_planes_new_axial_action, *clip_planes_new_sagittal_action, *clip_planes_new_coronal_action;
128 QAction *clip_planes_reset_axial_action, *clip_planes_reset_sagittal_action, *clip_planes_reset_coronal_action;
129 QAction *clip_planes_invert_action, *clip_planes_remove_action, *clip_planes_clear_action;
132 QLabel *light_box_slice_inc_label, *light_box_volume_inc_label;
134 SpinBox *light_box_rows, *light_box_cols, *light_box_volume_inc;
135 QCheckBox *light_box_show_grid, *light_box_show_4d;
137 class ClipPlaneModel;
138 ClipPlaneModel* clip_planes_model;
139 QListView* clip_planes_list_view;
141 void connect_mode_specific_slots ();
142 void init_lightbox_gui (QLayout* parent);
143 void reset_light_box_gui_controls ();
144 void set_transparency_from_image ();
147 void rotate_clip_planes (
vector<GL::vec4*>& clip,
const Eigen::Quaternionf& rot);