Signals | Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes

cmtk::QtRenderImageRGB Class Reference
[cmtkQt Library]

Class to render RGB images in Qt. More...

#include <cmtkQtRenderImageRGB.h>

Inheritance diagram for cmtk::QtRenderImageRGB:
Inheritance graph
[legend]
Collaboration diagram for cmtk::QtRenderImageRGB:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

Class to render RGB images in Qt.

Definition at line 61 of file cmtkQtRenderImageRGB.h.


Member Enumeration Documentation

Aspect mode constants.

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


Member Function Documentation

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.


Member Data Documentation

Intermediate QImage object for painting.

Definition at line 144 of file cmtkQtRenderImageRGB.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines