17#ifndef __gui_mrview_tool_screen_capture_h__
18#define __gui_mrview_tool_screen_capture_h__
51 void on_image_changed ();
52 void on_rotation_type (
int);
53 void on_translation_type (
int);
54 void on_screen_capture ();
55 void on_screen_preview ();
56 void on_screen_stop ();
57 void select_output_folder_slot();
58 void on_output_update ();
59 void on_restore_capture_state ();
62 enum RotationType { World = 0, Eye,
Image } rotation_type;
63 QComboBox *rotation_type_combobox;
69 enum TranslationType { Voxel = 0, Scanner, Camera } translation_type;
71 QComboBox* translation_type_combobox;
81 QLineEdit *prefix_textbox;
82 QPushButton *folder_button;
87 class CaptureState {
MEMALIGN(CaptureState)
89 Eigen::Quaternionf orientation;
90 Eigen::Vector3f focus, target;
92 size_t volume, volume_axis;
95 CaptureState(
const Eigen::Quaternionf& orientation,
96 const Eigen::Vector3f& focus,
const Eigen::Vector3f& target,
float fov,
97 size_t volume,
size_t volume_axis,
98 size_t frame_index,
int plane)
99 : orientation(orientation), focus(focus), target(target), fov(fov),
100 volume(volume), volume_axis(volume_axis),
101 frame_index(frame_index), plane(plane) {}
103 constexpr static size_t max_cache_size = 1;
104 std::deque<CaptureState> cached_state;
106 void run (
bool with_capture);
107 void cache_capture_state ();
a class to hold the list of option groups
object storing information about option parsed from command-line