iRoCS Toolbox  1.1.0
OpenGlRenderingViewWidget.hh
Go to the documentation of this file.
1 /**************************************************************************
2  *
3  * This file belongs to the iRoCS Toolbox.
4  *
5  * Copyright (C) 2015 Thorsten Falk
6  *
7  * Image Analysis Lab, University of Freiburg, Germany
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 3 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software Foundation,
21  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22  *
23  **************************************************************************/
24 
25 #ifndef OPENGLRENDERINGVIEWWIDGET_HH
26 #define OPENGLRENDERINGVIEWWIDGET_HH
27 
28 #ifdef HAVE_CONFIG_H
29 #include <config.hh>
30 #endif
31 
32 #include "ViewWidget.hh"
33 
36 
37 class QPushButton;
38 
39 class OrthoViewWidget;
42 
44 {
45 
46  Q_OBJECT
47 
48 public:
49 
52  QWidget* parent = NULL, Qt::WindowFlags f = 0);
54 
56 
57  void addChannel(ChannelSpecs *channel);
58  void removeChannel(ChannelSpecs* channel);
59 
60  void showProgressReporter(bool show);
62 
63  double latitudeSamplingUm() const;
64  int longitudeSampling() const;
65 
66  bool positionVisible(blitz::TinyVector<double,3> const &positionUm) const;
67 
70 
72 
73 signals:
74 
75  void visibilityStateChanged(bool);
76 
77 public slots:
78 
79  virtual void redraw();
80  void reinitializeAndUpdate();
81 
82 private:
83 
84  void closeEvent(QCloseEvent *event);
85  void showEvent(QShowEvent *event);
86  void hideEvent(QHideEvent *event);
87 
88  OrthoViewWidget *p_orthoView;
89  OpenGlRenderingWidget *p_renderingWidget;
90  OpenGlRenderingSettingsWidget *p_renderingSettings;
91  QLabel *p_statusText;
92  QProgressBar *p_progressBar;
93  QPushButton *p_cancelButton;
94  iRoCS::ProgressReporterQt4 *p_progress;
95 
96  friend class OpenGlRenderingWidget;
97 
98 };
99 
100 #endif
void visibilityStateChanged(bool)
blitz::TinyVector< double, 3 > positionUm() const
OrthoViewWidget * orthoView()
OpenGlRenderingSettingsWidget * renderingSettingsWidget()
MultiChannelModel * model() const
OpenGlRenderingWidget * renderingWidget()
void showProgressReporter(bool show)
iRoCS::ProgressReporterQt4 * progressReporter()
bool positionVisible(blitz::TinyVector< double, 3 > const &positionUm) const
void addChannel(ChannelSpecs *channel)
void removeChannel(ChannelSpecs *channel)
The marching cubes algorithm to convert the zero levelset of a 3D function into a polygon mesh...
ViewWidget::ViewType viewType() const
OpenGlRenderingViewWidget(MultiChannelModel *model, OrthoViewWidget *orthoView=NULL, QWidget *parent=NULL, Qt::WindowFlags f=0)
double latitudeSamplingUm() const