CinemaScope
A cross-platform viewer for Cinema databases
Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CinImageView Class Reference

Manages the imageviewer and interactions on it. More...

#include <CinImageView.h>

Inheritance diagram for CinImageView:

Public Slots

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...
 

Public Member Functions

 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 ()
 

Protected Member Functions

void mousePressEvent (QMouseEvent *)
 Mouse press event handler. More...
 
void mouseReleaseEvent (QMouseEvent *)
 Mouse release event handler. More...
 
void mouseMoveEvent (QMouseEvent *)
 Mouse move event handler. This controls the dragging event. More...
 
void wheelEvent (QWheelEvent *event)
 Mouse wheel event. Performs zooming in and out. More...
 

Protected Attributes

QString mCurImage
 
CinParamSetmParamSet =NULL
 

Detailed Description

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.

Member Function Documentation

◆ 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: