Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
imagewidget.h
Go to the documentation of this file.
1 #ifndef IMAGEWIDGET_H
2 #define IMAGEWIDGET_H
3 
4 #include "viewerinterface.h"
5 
6 #include <QWidget>
7 
8 namespace Ui {
9  class ImageWidget;
10 }
11 
12 class GraphicsScene;
13 class QGraphicsView;
14 
15 class ImageWidget : public QWidget, public ViewerInterface {
16  Q_OBJECT
17 
18 public:
19  explicit ImageWidget( QWidget *parent = 0 );
20  ~ImageWidget( );
21  void hideControls( );
22  void showControls( );
23  virtual void setViewBgColor( const QColor &color );
24  GraphicsScene* scene( ) const;
25  QGraphicsView* graphicsView( );
26  size_t viewNumber( ) const;
27  void setViewNumber( const size_t &viewNumber );
28  void setRange( int start, int end );
29  void setSlice( int slice );
30  void show( );
31 
32 signals:
33  void sliceChanged( size_t viewNbr, size_t slice );
34  void rotate( size_t viewNbr );
35  void fliph( size_t viewNbr );
36  void flipv( size_t viewNbr );
37  void dropImage( const QString &filePath );
38  void dropFolder( const QString &folderPath );
39 
40 private slots:
41  void on_spinBox_valueChanged( int position );
42  void on_rotateButton_clicked( );
43  void on_horizontalSlider_valueChanged( int position );
44  void on_flip_h_button_clicked( );
45  void on_flip_v_button_clicked( );
46 
47 private:
48  Ui::ImageWidget *ui;
49  GraphicsScene *m_scene;
50  size_t m_viewNumber;
51 };
52 
53 #endif /* IMAGEWIDGET_H */
AdjacencyIterator end(const Adjacency &adj, const Vector< D > &vct, size_t pixel_index)
Returns an iterator to position after the end of elements.
static void rotate(unsigned char *list, unsigned len, unsigned rot)
Definition: gzappend.c:123