Developer documentation
Version 3.0.3-105-gd3941f44
odf.h
Go to the documentation of this file.
1/* Copyright (c) 2008-2022 the MRtrix3 contributors.
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 *
7 * Covered Software is provided under this License on an "as is"
8 * basis, without warranty of any kind, either expressed, implied, or
9 * statutory, including, without limitation, warranties that the
10 * Covered Software is free of defects, merchantable, fit for a
11 * particular purpose or non-infringing.
12 * See the Mozilla Public License v. 2.0 for more details.
13 *
14 * For more details, see http://www.mrtrix.org/.
15 */
16
17#ifndef __gui_mrview_tool_odf_odf_h__
18#define __gui_mrview_tool_odf_odf_h__
19
20#include "gui/color_button.h"
24#include "gui/mrview/spin_box.h"
25
26namespace MR
27{
28 namespace GUI
29 {
30 namespace DWI {
31 class Renderer;
32 class RenderFrame;
33 }
34
35 class LightingDock;
36
37
38 namespace MRView
39 {
40 namespace Tool
41 {
42
43 class ODF_Item;
44 class ODF_Model;
45 class ODF_Preview;
46
47 class ODF : public Base
48 { MEMALIGN(ODF)
49 Q_OBJECT
50
51 public:
52
53 ODF (Dock* parent);
54 ~ODF();
55
56 void draw (const Projection& projection, bool is_3D, int axis, int slice) override;
57
58 static void add_commandline_options (MR::App::OptionList& options);
59 virtual bool process_commandline_option (const MR::App::ParsedOption& opt) override;
60
61 private slots:
62 void onPreviewClosed ();
63 void sh_open_slot ();
64 void tensor_open_slot ();
65 void dixel_open_slot ();
66 void image_close_slot ();
67 void show_preview_slot ();
68 void hide_all_slot ();
69 void selection_changed_slot (const QItemSelection &, const QItemSelection &);
70 void lmax_slot (int);
71 void dirs_slot();
72 void shell_slot();
73 void adjust_scale_slot ();
74 void colour_by_direction_slot (int unused);
75 void hide_negative_values_slot (int unused);
76 void colour_change_slot();
77 void use_lighting_slot (int unused);
78 void lighting_settings_slot (bool unused);
79 void updateGL ();
80 void update_preview();
81
82 void close_event() override;
83
84 protected:
86
88
90 QListView* image_list_view;
99
101
104
105 int lmax;
106
107 void add_images (vector<std::string>& list, const odf_type_t mode);
108
109 virtual void closeEvent (QCloseEvent* event) override;
110
112 void get_values (Eigen::VectorXf&, ODF_Item&, const Eigen::Vector3f&, const bool);
114
115 friend class ODF_Preview;
116
117 };
118
119 }
120 }
121 }
122}
123
124#endif
125
126
127
128
129
a class to hold the list of option groups
Definition: app.h:139
object storing information about option parsed from command-line
Definition: app.h:286
ODF_Preview * preview
Definition: odf.h:85
DWI::Renderer * renderer
Definition: odf.h:87
GL::Lighting * lighting
Definition: odf.h:103
SpinBox * lmax_selector
Definition: odf.h:93
QCheckBox * colour_by_direction_box
Definition: odf.h:97
void setup_ODFtype_UI(const ODF_Item *)
AdjustButton * scale
Definition: odf.h:100
QComboBox * dirs_selector
Definition: odf.h:95
QLabel * level_of_detail_label
Definition: odf.h:92
ODF_Model * image_list_model
Definition: odf.h:89
virtual void closeEvent(QCloseEvent *event) override
QLabel * shell_label
Definition: odf.h:94
QCheckBox * main_grid_box
Definition: odf.h:96
QLabel * lmax_label
Definition: odf.h:92
QPushButton * hide_all_button
Definition: odf.h:91
LightingDock * lighting_dock
Definition: odf.h:102
QCheckBox * interpolation_box
Definition: odf.h:97
QListView * image_list_view
Definition: odf.h:90
QCheckBox * colour_relative_to_projection_box
Definition: odf.h:97
void add_images(vector< std::string > &list, const odf_type_t mode)
QPushButton * show_preview_button
Definition: odf.h:91
void get_values(Eigen::VectorXf &, ODF_Item &, const Eigen::Vector3f &, const bool)
QColorButton * colour_button
Definition: odf.h:98
QLabel * dirs_label
Definition: odf.h:94
QCheckBox * lock_to_grid_box
Definition: odf.h:96
QCheckBox * hide_negative_values_box
Definition: odf.h:96
QComboBox * shell_selector
Definition: odf.h:95
SpinBox * level_of_detail_selector
Definition: odf.h:93
QCheckBox * use_lighting_box
Definition: odf.h:96
Definition: base.h:24
int axis
#define MEMALIGN(...)
Definition: types.h:185