Developer documentation
Version 3.0.3-105-gd3941f44
render_window.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_dwi_render_window_h__
18#define __gui_dwi_render_window_h__
19
21#include "gui/opengl/gl.h"
22
23namespace MR
24{
25 namespace GUI
26 {
27 class LightingDock;
28
29 namespace DWI
30 {
31
32 class Window : public QMainWindow
34 Q_OBJECT
35
36 class RenderFrame : public DWI::RenderFrame
38 public:
40 void set_colour (const QColor& c) {
41 renderer.set_colour (c);
42 update();
43 }
44 QColor get_colour() const {
45 return renderer.get_colour();
46 }
47 };
48
49 public:
50 Window (bool is_response_coefs);
52 void set_values (const std::string& filename);
53
54 protected slots:
55 void open_slot ();
56 void close_slot ();
57 void use_lighting_slot (bool is_checked);
58 void show_axes_slot (bool is_checked);
59 void hide_negative_lobes_slot (bool is_checked);
60 void colour_by_direction_slot (bool is_checked);
63 void response_slot (bool is_checked);
65 void next_slot ();
67 void next_10_slot ();
68 void lmax_slot ();
69 void lod_slot ();
75
76 protected:
81
82 std::string name;
84 Eigen::Matrix<float, Eigen::Dynamic, Eigen::Dynamic> values;
86
87 void set_values (int row);
88 };
89
90
91 }
92 }
93}
94
95
96#endif
97
RenderFrame(QWidget *parent)
QActionGroup * screenshot_OS_group
Definition: render_window.h:79
QAction * response_action
Definition: render_window.h:80
void colour_by_direction_slot(bool is_checked)
Eigen::Matrix< float, Eigen::Dynamic, Eigen::Dynamic > values
Definition: render_window.h:84
void set_values(int row)
void use_lighting_slot(bool is_checked)
void response_slot(bool is_checked)
void set_values(const std::string &filename)
void show_axes_slot(bool is_checked)
QActionGroup * lmax_group
Definition: render_window.h:79
QDialog * lighting_dialog
Definition: render_window.h:78
RenderFrame * render_frame
Definition: render_window.h:77
Window(bool is_response_coefs)
QAction * colour_by_direction_action
Definition: render_window.h:80
void hide_negative_lobes_slot(bool is_checked)
QActionGroup * lod_group
Definition: render_window.h:79
Definition: base.h:24
#define MEMALIGN(...)
Definition: types.h:185