forked from GIBIS-UNIFESP/BIAL-GUI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimagewidget.h
More file actions
63 lines (41 loc) · 1.14 KB
/
imagewidget.h
File metadata and controls
63 lines (41 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#ifndef IMAGEWIDGET_H
#define IMAGEWIDGET_H
#include "viewerinterface.h"
#include <QWidget>
namespace Ui {
class ImageWidget;
}
class GraphicsScene;
class QGraphicsView;
class ImageWidget : public QWidget, public ViewerInterface {
Q_OBJECT
public:
explicit ImageWidget( QWidget *parent = 0 );
~ImageWidget( );
void hideControls( );
void showControls( );
virtual void setViewBgColor( const QColor &color );
GraphicsScene* scene( ) const;
QGraphicsView* graphicsView( );
size_t viewNumber( ) const;
void setViewNumber( const size_t &viewNumber );
void setRange( int start, int end );
void setSlice( int slice );
void show( );
signals:
void sliceChanged( size_t viewNbr, size_t slice );
void rotate( size_t viewNbr );
void fliph( size_t viewNbr );
void flipv( size_t viewNbr );
private slots:
void on_spinBox_valueChanged( int position );
void on_rotateButton_clicked( );
void on_horizontalSlider_valueChanged( int position );
void on_flip_h_button_clicked();
void on_flip_v_button_clicked();
private:
Ui::ImageWidget *ui;
GraphicsScene *m_scene;
size_t m_viewNumber;
};
#endif /* IMAGEWIDGET_H */