Class to render RGB images in Qt. More...
#include <cmtkQtRenderImageRGB.h>


Signals | |
| void | signalMousePressed (Qt::MouseButton button, int x, int y) |
| This signal is emitted when a mouse button is pressed on the widget. | |
| void | signalMouse3D (Qt::MouseButton button, const Vector3D &v) |
| This signal is emitted when a mouse button is pressed on the widget. | |
Public Member Functions | |
| QtRenderImageRGB (QWidget *const parent=0, Qt::WFlags f=0) | |
| Constructor. | |
| virtual | ~QtRenderImageRGB () |
| Destructor. | |
| virtual void | Execute () |
| The actual renderer function. | |
| QPixmap | GetPixmap () |
| Return currently displayed image. | |
| void | RenderTo (QPaintDevice *pd) |
| Render to given paint device. | |
| virtual void | Render () |
| Render this image. | |
Protected Member Functions | |
| virtual void | paintEvent (QPaintEvent *const ) |
| Repaint widget. | |
| virtual void | mousePressEvent (QMouseEvent *e) |
| React to mouse clicks (generate a signal). | |
| virtual void | mouseMoveEvent (QMouseEvent *e) |
| React to mouse dragging (generate a signal). | |
Private Types | |
| enum | AspectMode { AspectNone, AspectX, AspectY, AspectAuto } |
Aspect mode constants. More... | |
Private Member Functions | |
| igsClassParameter (unsigned int, ZoomFactorPercent) | |
| Zoom factor. | |
| igsClassParameter (bool, FlipX) | |
| Flip image in x-direction. | |
| igsClassParameter (bool, FlipY) | |
| Flip image in y-direction. | |
| igsClassParameter (AspectMode, ImageAspectMode) | |
| Flip image in y-direction. | |
| igsClassParameter (bool, CrosshairMode) | |
| Crosshair mode. | |
| igsClassParameter2Array (unsigned int, CrosshairPosition) | |
| Crosshair position. | |
| igsClassParameter2Array (QColor, CrosshairColors) | |
| Crosshair colors. | |
| void | DrawCrosshair (QPainter &painter, const unsigned int width, const unsigned int height) const |
| Draw crosshair. | |
Private Attributes | |
| QImage | Image |
| Intermediate QImage object for painting. | |
Class to render RGB images in Qt.
Definition at line 61 of file cmtkQtRenderImageRGB.h.
enum cmtk::QtRenderImageRGB::AspectMode [private] |
Aspect mode constants.
| AspectNone |
No aspect control; render as is. |
| AspectX |
Use x-axis as aspect master. |
| AspectY |
Use y-axis as aspect master. |
| AspectAuto |
Automatically select aspect axis. |
Definition at line 79 of file cmtkQtRenderImageRGB.h.
| cmtk::QtRenderImageRGB::igsClassParameter | ( | AspectMode | , |
| ImageAspectMode | |||
| ) | [private] |
Flip image in y-direction.
| cmtk::QtRenderImageRGB::igsClassParameter | ( | unsigned | int, |
| ZoomFactorPercent | |||
| ) | [private] |
Zoom factor.
| cmtk::QtRenderImageRGB::igsClassParameter | ( | bool | , |
| FlipX | |||
| ) | [private] |
Flip image in x-direction.
| cmtk::QtRenderImageRGB::igsClassParameter | ( | bool | , |
| CrosshairMode | |||
| ) | [private] |
Crosshair mode.
| cmtk::QtRenderImageRGB::igsClassParameter | ( | bool | , |
| FlipY | |||
| ) | [private] |
Flip image in y-direction.
| cmtk::QtRenderImageRGB::igsClassParameter2Array | ( | unsigned | int, |
| CrosshairPosition | |||
| ) | [private] |
Crosshair position.
| cmtk::QtRenderImageRGB::igsClassParameter2Array | ( | QColor | , |
| CrosshairColors | |||
| ) | [private] |
Crosshair colors.
| virtual void cmtk::QtRenderImageRGB::Render | ( | ) | [inline, virtual] |
Render this image.
Reimplemented from cmtk::Renderer.
Definition at line 119 of file cmtkQtRenderImageRGB.h.
| void cmtk::QtRenderImageRGB::signalMouse3D | ( | Qt::MouseButton | button, |
| const Vector3D & | v | ||
| ) | [signal] |
This signal is emitted when a mouse button is pressed on the widget.
| void cmtk::QtRenderImageRGB::signalMousePressed | ( | Qt::MouseButton | button, |
| int | x, | ||
| int | y | ||
| ) | [signal] |
This signal is emitted when a mouse button is pressed on the widget.
QImage cmtk::QtRenderImageRGB::Image [private] |
Intermediate QImage object for painting.
Definition at line 144 of file cmtkQtRenderImageRGB.h.
1.7.2