This class represents the DGV Image Display object. WORK IN PROGESS. More...
#include <DGVImage.h>
Public Slots | |
void | table () |
Sets up table of the image data. | |
void | updateData (int row, int col) |
Updates the content of cell changed by user of table in the image data. | |
void | refreshImage () |
Updates the display of the of the image data. | |
void | normGreyscale () |
Normalizes the greyscale so that the whole range of greyscale values are used in the display of the of the image data. | |
void | setInterpolation (bool interpolation) |
Sets whether to enable interpolation (i.e. anti-aliasing) for image display. | |
void | save () |
Saves the image. | |
Signals | |
void | resultAvailable (DGVImage *) |
Send signal that Result is available for showing. | |
void | tableAvailable (DGVTable *tableWidget) |
Send signal that a table is available for showing. | |
Public Member Functions | |
DGVImage (QWidget *parent=0) | |
The standard constructor. | |
DGVImage (Array< imageType, 2 > &data, QWidget *parent=0) | |
Overloaded constructor. | |
virtual | ~DGVImage () |
The standard destructor. | |
void | setName (QString filename) |
Set the name of the image. | |
bool | openImage (QString filename) |
Opens image with filename. | |
void | linkResult (DGVImage *result) |
The standard destructor. | |
DGVImage * | getResult () |
virtual void | setPixmap (const QPixmap &pix) |
The standard destructor. | |
virtual void | setPixmap (const Array< imageType, 2 > &bins) |
Array< imageType, 2 > * | dataPtr () |
Pointer to the Blitz++ data held. | |
Array< imageType, 2 > & | data () |
Blitz++ Array data held. | |
QString | strippedName () |
Returns the stripped (path removed) name of the image. | |
QString | strippedNamePrefix () |
Returns the stripped (path removed) name of the image with "Image" prefix. | |
Protected Member Functions | |
void | createActions () |
Private Functions. | |
void | createConnections () |
void | connectTable (DGVTable *child) |
void | contextMenuEvent (QContextMenuEvent *event) |
The context menu setup member. | |
void | paintEvent (QPaintEvent *event) |
Protected Attributes | |
QString | name |
Name of the image (with full path). | |
QMenu * | imageMenu |
Context menu attributes. | |
QAction * | normGreyAct |
Action object for normalizing the greyscale in the display of an image. | |
QAction * | interpolateAct |
Transform Right-Mouse Menu. | |
QAction * | tableAct |
Action object for displaying a table of data. | |
QAction * | refreshAct |
Action object for refreshing the display of an image. | |
QAction * | saveAct |
Saves window. | |
QAction * | closeAct |
Closes window. | |
DGVImage * | resultImage |
Image Data. | |
Array< imageType, 2 > | imageData |
Contains the actual image data in full. | |
DGVTable * | dataTable |
Table form of data. | |
bool | loadComplete |
Keeps track when the image is loaded. | |
DGVBlitzArrayCaster< imageType > | Blitz |
Used to cast to and from Blitz arrays. |
This class represents the DGV Image Display object. WORK IN PROGESS.
The class represents the DGV Image Display object using the Qt Library. It handles the elements necessary for Image Display and subsequent operations on images (such as transforms etc.).
Definition at line 37 of file DGVImage.h.
DGVImage::DGVImage | ( | QWidget * | parent = 0 |
) |
The standard constructor.
Definition at line 24 of file DGVImage.cpp.
DGVImage::DGVImage | ( | Array< imageType, 2 > & | data, | |
QWidget * | parent = 0 | |||
) |
Overloaded constructor.
Definition at line 32 of file DGVImage.cpp.
DGVImage::~DGVImage | ( | ) | [virtual] |
The standard destructor.
Definition at line 42 of file DGVImage.cpp.
void DGVImage::connectTable | ( | DGVTable * | child | ) | [protected] |
Definition at line 232 of file DGVImage.cpp.
void DGVImage::contextMenuEvent | ( | QContextMenuEvent * | event | ) | [protected] |
The context menu setup member.
Image Operations Menu
Setup Data action
Setup Refresh action
Setup Save action
Setup Close action
Definition at line 237 of file DGVImage.cpp.
void DGVImage::createActions | ( | ) | [protected] |
Private Functions.
Definition at line 215 of file DGVImage.cpp.
void DGVImage::createConnections | ( | ) | [protected] |
When triggered, create embed dialog and let Main Window know
Definition at line 225 of file DGVImage.cpp.
DGVImage::data | ( | ) | [inline] |
Blitz++ Array data held.
Definition at line 99 of file DGVImage.h.
DGVImage::dataPtr | ( | ) | [inline] |
Pointer to the Blitz++ data held.
Definition at line 91 of file DGVImage.h.
DGVImage* DGVImage::getResult | ( | ) | [inline] |
Definition at line 77 of file DGVImage.h.
void DGVImage::linkResult | ( | DGVImage * | result | ) |
The standard destructor.
Definition at line 72 of file DGVImage.cpp.
void DGVImage::normGreyscale | ( | ) | [slot] |
Normalizes the greyscale so that the whole range of greyscale values are used in the display of the of the image data.
Find Max
Set colour table
Scaling is required
call the original setPixmap member (of base class).
Definition at line 155 of file DGVImage.cpp.
bool DGVImage::openImage | ( | QString | filename | ) |
Opens image with filename.
Set the image into the viewer
Definition at line 53 of file DGVImage.cpp.
void DGVImage::paintEvent | ( | QPaintEvent * | event | ) | [protected] |
Definition at line 266 of file DGVImage.cpp.
void DGVImage::refreshImage | ( | ) | [slot] |
Updates the display of the of the image data.
Definition at line 146 of file DGVImage.cpp.
void DGVImage::resultAvailable | ( | DGVImage * | _t1 | ) | [signal] |
Send signal that Result is available for showing.
Definition at line 102 of file moc_DGVImage.cpp.
void DGVImage::save | ( | ) | [slot] |
Saves the image.
Definition at line 203 of file DGVImage.cpp.
void DGVImage::setInterpolation | ( | bool | interpolation | ) | [slot] |
Sets whether to enable interpolation (i.e. anti-aliasing) for image display.
Definition at line 108 of file DGVImage.cpp.
void DGVImage::setName | ( | QString | filename | ) |
Set the name of the image.
Definition at line 47 of file DGVImage.cpp.
void DGVImage::setPixmap | ( | const QPixmap & | pix | ) | [virtual] |
The standard destructor.
Definition at line 77 of file DGVImage.cpp.
void DGVImage::setPixmap | ( | const Array< imageType, 2 > & | bins | ) | [virtual] |
call the original setPixmap member (of base class).
Definition at line 88 of file DGVImage.cpp.
QString DGVImage::strippedName | ( | ) |
Returns the stripped (path removed) name of the image.
Definition at line 118 of file DGVImage.cpp.
QString DGVImage::strippedNamePrefix | ( | ) |
Returns the stripped (path removed) name of the image with "Image" prefix.
Definition at line 123 of file DGVImage.cpp.
void DGVImage::table | ( | ) | [slot] |
Sets up table of the image data.
Definition at line 129 of file DGVImage.cpp.
void DGVImage::tableAvailable | ( | DGVTable * | tableWidget | ) | [signal] |
Send signal that a table is available for showing.
Definition at line 109 of file moc_DGVImage.cpp.
void DGVImage::updateData | ( | int | row, | |
int | col | |||
) | [slot] |
Updates the content of cell changed by user of table in the image data.
Definition at line 141 of file DGVImage.cpp.
DGVBlitzArrayCaster<imageType> DGVImage::Blitz [protected] |
Used to cast to and from Blitz arrays.
Definition at line 179 of file DGVImage.h.
QAction* DGVImage::closeAct [protected] |
Closes window.
Definition at line 171 of file DGVImage.h.
DGVTable* DGVImage::dataTable [protected] |
Table form of data.
Definition at line 176 of file DGVImage.h.
Array<imageType,2> DGVImage::imageData [protected] |
Contains the actual image data in full.
Definition at line 175 of file DGVImage.h.
QMenu* DGVImage::imageMenu [protected] |
QAction* DGVImage::interpolateAct [protected] |
Transform Right-Mouse Menu.
Definition at line 166 of file DGVImage.h.
bool DGVImage::loadComplete [protected] |
Keeps track when the image is loaded.
Definition at line 177 of file DGVImage.h.
QString DGVImage::name [protected] |
Name of the image (with full path).
Definition at line 161 of file DGVImage.h.
QAction* DGVImage::normGreyAct [protected] |
Action object for normalizing the greyscale in the display of an image.
Definition at line 165 of file DGVImage.h.
QAction* DGVImage::refreshAct [protected] |
Action object for refreshing the display of an image.
Definition at line 169 of file DGVImage.h.
DGVImage* DGVImage::resultImage [protected] |
Image Data.
Points to where the result of any operation is to be kept.
Definition at line 174 of file DGVImage.h.
QAction* DGVImage::saveAct [protected] |
Saves window.
Definition at line 170 of file DGVImage.h.
QAction* DGVImage::tableAct [protected] |
Action object for displaying a table of data.
Definition at line 167 of file DGVImage.h.