Manages the imageviewer and interactions on it.
More...
#include <CinImageView.h>
|
void | onLoadImage (const QString &key, const QString &path) |
| This slot gets called when a parameter is changed and a new image needs to be loaded. key is ignored for now, since we're only loading one artifact. More...
|
|
|
| CinImageView (QWidget *parent) |
|
void | setParameters (CinParamSet *paramset) |
|
void | setHorizontalParameter (const QString &h) |
|
void | setVerticalParameter (const QString &v) |
|
const QString & | getHorizontalParameter () |
|
const QString & | getVerticalParameter () |
|
bool | loadImage (const QString &path) |
| Given a path to an image, this function loads the image. If the image was loaded previously, then it uses the image from cache. More...
|
|
void | clear () |
|
Manages the imageviewer and interactions on it.
This class contains everything it needs to show the right image given the current parameter values. It is also responsible for controlling the mouse drag event, which is another way of interacting and changing the images while exploring the database.
◆ loadImage()
bool CinImageView::loadImage |
( |
const QString & |
path | ) |
|
Given a path to an image, this function loads the image. If the image was loaded previously, then it uses the image from cache.
◆ mouseMoveEvent()
void CinImageView::mouseMoveEvent |
( |
QMouseEvent * |
e | ) |
|
|
protected |
Mouse move event handler. This controls the dragging event.
◆ mousePressEvent()
void CinImageView::mousePressEvent |
( |
QMouseEvent * |
e | ) |
|
|
protected |
Mouse press event handler.
◆ mouseReleaseEvent()
void CinImageView::mouseReleaseEvent |
( |
QMouseEvent * |
e | ) |
|
|
protected |
Mouse release event handler.
◆ onLoadImage
void CinImageView::onLoadImage |
( |
const QString & |
key, |
|
|
const QString & |
path |
|
) |
| |
|
slot |
This slot gets called when a parameter is changed and a new image needs to be loaded. key is ignored for now, since we're only loading one artifact.
◆ wheelEvent()
void CinImageView::wheelEvent |
( |
QWheelEvent * |
event | ) |
|
|
protected |
Mouse wheel event. Performs zooming in and out.
The documentation for this class was generated from the following files: