Developer documentation
Version 3.0.3-105-gd3941f44
preview.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_preview_h__
18#define __gui_mrview_tool_odf_preview_h__
19
21
23#include "gui/mrview/spin_box.h"
24#include "gui/mrview/window.h"
25
26namespace MR
27{
28 namespace GUI
29 {
30 namespace MRView
31 {
32 namespace Tool
33 {
34
35 class ODF_Preview : public QWidget
37 Q_OBJECT
38
39 class RenderFrame : public DWI::RenderFrame
40 { MEMALIGN(RenderFrame)
41 public:
42 RenderFrame (QWidget* parent);
43
44 void set_colour (const QColor& c) {
45 renderer.set_colour (c);
46 }
47
48 protected:
49 Window& window () const { return *Window::main; }
50 virtual void wheelEvent (QWheelEvent*);
51 };
52
53 public:
55 void set (const Eigen::VectorXf&);
56 bool interpolate() const { return interpolation_box->isChecked(); }
57 void set_lod_enabled (const bool i) { level_of_detail_selector->setEnabled (i); }
58 Window& window () const { return *Window::main; }
59 private slots:
60 void lock_orientation_to_image_slot (int);
61 void interpolation_slot (int);
62 void show_axes_slot (int);
63 void level_of_detail_slot (int);
64 void lighting_update_slot();
65 protected:
67 RenderFrame* render_frame;
71 friend class ODF;
72 };
73
74 }
75 }
76 }
77}
78
79#endif
80
81
82
83
84
void set(const Eigen::VectorXf &)
QCheckBox * lock_orientation_to_image_box
Definition: preview.h:68
void set_lod_enabled(const bool i)
Definition: preview.h:57
static Window * main
Definition: window.h:160
Definition: base.h:24
#define MEMALIGN(...)
Definition: types.h:185