7 #include <QGraphicsPixmapItem> 28 QVector< GuiImage* > m_images;
36 QVector< QGraphicsPixmapItem* > m_pixmapItems;
37 QVector< QGraphicsPixmapItem* > m_labelItems;
43 int m_currentImagePos;
62 explicit Controller(
int views, QObject *parent = 0 );
221 void flipH(
size_t view );
226 void flipV(
size_t view );
233 void setRecentFile( QString fname );
void setCurrentImagePos(int position)
setCurrentImagePos
GuiImage * imageAt(int pos)
currentImage
void recentFilesUpdated()
recentFilesUpdated
void update()
update updates the image pixmaps.
DisplayFormat * currentFormat()
currentFormat returns the modality of current image.
The GuiImage class is a bridge to the Bial::Image data structure to the QImage data structure...
void setCurrentSlice(size_t view, size_t slice)
setCurrentSlice is called by the imageViewer when the slider or the spinbox have theis values updated...
void setInterpolation(bool isSmooth)
setInterpolation switches between smoot and fast interpolation.
void rotate90(size_t view)
rotate90 rotates a view in 90 degrees.
Controller(int views, QObject *parent=0)
Controller's constructor.
void flipH(size_t view)
flipH mirrors the current view on X axis.
bool removeCurrentLabel()
removeCurrentLabel removes the current label from current image.
void setZoom(int value)
setZoom updates the zoom factor.
void removeCurrentImage()
removeCurrentImage removes the current image from vector.
The Controller class is one of the most important classes of the User Interface, and is responsible t...
void rotateAll90()
rotateAll90 rotates all views in 90 degrees.
void flipV(size_t view)
flipV mirrors the current view on Y axis.
void loadNextImage()
loadNextImage is a slot called from controlsdock that loads the next image ( like an circular list )...
void clear()
clear Clears the image vector, and resets thumbnails.
QGraphicsPixmapItem * getLabelItem(size_t view)
getLabelItem returns the LabelItem of the view.
QGraphicsPixmapItem * getPixmapItem(size_t view)
getPixmapItem returns the PixmapItem of the view.
GuiImage * currentImage()
currentImage
int currentImagePos() const
currentImagePos
void currentImageChanged()
This signal is emmited every time the current image changes.
bool addLabel(QString label)
addLabel Adds a label to the current image.
void setThumbsWidget(ThumbsWidget *thumbsWidget)
setThumbsWidget setThumbsWidget sets the pointer to the thumbnails dock.
void containerUpdated()
This signal is emmited avery time the m_images vector is updated.
void imageUpdated()
This signal is emmited every time the current image is updated.
bool addImage(QString fname)
addImage Adds an image to vector m_images.