Developer documentation
Version 3.0.3-105-gd3941f44
ortho.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_mode_ortho_h__
18#define __gui_mrview_mode_ortho_h__
19
20#include "app.h"
22
23namespace MR
24{
25 namespace GUI
26 {
27 namespace MRView
28 {
29 namespace Mode
30 {
31
32 class Ortho : public Slice
34 Q_OBJECT
35
36 public:
37 Ortho ();
38 virtual void paint (Projection& projection);
39
40 virtual void mouse_press_event ();
41 virtual void slice_move_event (float x);
42 virtual void panthrough_event ();
43 virtual const Projection* get_current_projection () const;
44 virtual void request_update_mode_gui (ModeGuiVisitor& visitor) const {
45 visitor.update_ortho_mode_gui(*this); }
46
47 static bool show_as_row;
48
49 public slots:
50 void set_show_as_row_slot (bool state);
51
52 protected:
58 };
59
60 }
61 }
62 }
63}
64
65#endif
66
67
68
69
vector< Projection > projections
Definition: ortho.h:53
GL::Shader::Program frame_program
Definition: ortho.h:57
GL::VertexBuffer frame_VB
Definition: ortho.h:55
void set_show_as_row_slot(bool state)
GL::VertexArrayObject frame_VAO
Definition: ortho.h:56
Definition: base.h:24
#define MEMALIGN(...)
Definition: types.h:185