Developer documentation
Version 3.0.3-105-gd3941f44
track_scalar_file.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_mrtrix_tools_tractography_scalar_file_options_h__
18#define __gui_mrtrix_tools_tractography_scalar_file_options_h__
19
24
25
26
27namespace MR
28{
29 namespace GUI
30 {
31 namespace MRView
32 {
33
34 namespace Tool
35 {
36 class Tractogram;
37 class Tractography;
38
39 class TrackScalarFileOptions : public QGroupBox, public DisplayableVisitor
41 Q_OBJECT
42
43 public:
45 virtual ~TrackScalarFileOptions () {}
46
47 void set_tractogram (Tractogram* selected_tractogram);
48
49 void render_tractogram_colourbar (const Tool::Tractogram&) override;
50
51 void update_UI();
52 void set_scaling(default_type min, default_type max);
53 void set_threshold(GUI::MRView::Tool::TrackThresholdType dataSource, default_type min, default_type max);
54 void set_colourmap (int colourmap_index);
55
56 public slots:
59
60
61 private slots:
62 void show_colour_bar_slot();
63 void select_colourmap_slot ();
64 void on_set_scaling_slot ();
65 bool threshold_scalar_file_slot (int);
66 void threshold_lower_changed (int unused);
67 void threshold_upper_changed (int unused);
68 void threshold_lower_value_changed ();
69 void threshold_upper_value_changed ();
70 void invert_colourmap_slot ();
71 void reset_intensity_slot ();
72
73
74 protected:
78 QGroupBox *colour_groupbox;
80 QAction *invert_scale;
83 QActionGroup *colourmap_group;
84 QToolButton *colourmap_button;
90
91 private:
92 // Required since this no longer derives from Tool::Base
93 Window& window () const { return *Window::main; }
94
95 };
96
97 }
98 }
99 }
100}
101
102#endif
103
static Window * main
Definition: window.h:160
Definition: base.h:24
double default_type
the default type used throughout MRtrix
Definition: types.h:228
#define MEMALIGN(...)
Definition: types.h:185