GOFIGURE2  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
QGoImageView2D.h
Go to the documentation of this file.
1 /*=========================================================================
2  Authors: The GoFigure Dev. Team.
3  at Megason Lab, Systems biology, Harvard Medical school, 2009-11
4 
5  Copyright (c) 2009-11, President and Fellows of Harvard College.
6  All rights reserved.
7 
8  Redistribution and use in source and binary forms, with or without
9  modification, are permitted provided that the following conditions are met:
10 
11  Redistributions of source code must retain the above copyright notice,
12  this list of conditions and the following disclaimer.
13  Redistributions in binary form must reproduce the above copyright notice,
14  this list of conditions and the following disclaimer in the documentation
15  and/or other materials provided with the distribution.
16  Neither the name of the President and Fellows of Harvard College
17  nor the names of its contributors may be used to endorse or promote
18  products derived from this software without specific prior written
19  permission.
20 
21  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
23  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
24  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
25  BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
26  OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
27  OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
28  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
29  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
30  OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
31  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 
33 =========================================================================*/
34 
35 #ifndef __QGoImageView2D_h
36 #define __QGoImageView2D_h
37 
38 #include <QtGui/QWidget>
39 #include <QHBoxLayout>
40 
41 #include "SnapshotHelper.h"
42 
43 #include "QGoImageView.h"
44 
45 class vtkImageData;
47 class QVTKWidget;
48 class vtkEventQtSlotConnect;
49 
55 class QGOGUILIB_EXPORT QGoImageView2D:public QGoImageView
56 {
57  Q_OBJECT
58 public:
59  explicit QGoImageView2D(QWidget *parent = 0);
60  ~QGoImageView2D();
61 
62  void SetImage(vtkImageData *iImage);
63 
64  QVTKInteractor * GetInteractor(const int & i = 0);
65 
66  void Update();
67 
68  void setupUi(QWidget *parent);
69 
70  void retranslateUi(QWidget *parent);
71 
72  virtual void ChangeCursorShape(QCursor iCursorShape);
73 
74 public slots:
75  QString SnapshotViewXY( const GoFigure::FileType & iType,
76  const QString & iBaseName = tr("Snapshot") );
77 
78 protected:
80  QVTKWidget * m_QVTKWidgetXY;
81  vtkEventQtSlotConnect *m_VTKEventQtConnector;
82 };
83 #endif
QVTKWidget * m_QVTKWidgetXY
QString tr(const char *sourceText, const char *disambiguation, int n)
virtual void setupUi(QWidget *parent)=0
virtual void SetImage(vtkImageData *iImage)=0
Set the image to displaid.
Abstract class for the visualization of 3D Image represented by one vtkImageData*.
Definition: QGoImageView.h:75
vtkEventQtSlotConnect * m_VTKEventQtConnector
Manage a collection of 2D views.
virtual void ChangeCursorShape(QCursor iCursorShape)=0
virtual QVTKInteractor * GetInteractor(const int &)=0
Returns the interactor for one given view.
Widget to visualize a 2D image (represented as vtkImageData).
QHBoxLayout * m_LayOut
virtual void retranslateUi(QWidget *parent)=0