![]() |
NorMIT-nav
16.5
An IGT application
|
#include <cxTransferFunctionColorWidget.h>
Classes | |
| struct | ColorPoint |
| Internal placeholder for a color point. More... | |
Public Slots | |
| void | activeImageTransferFunctionsChangedSlot () |
| Acts when the image's transfer function is changed. More... | |
Public Slots inherited from cx::BaseWidget | |
| void | adjustSizeSlot () |
Public Slots inherited from cx::OptimizedUpdateWidget | |
| virtual void | setModified () |
Public Member Functions | |
| TransferFunctionColorWidget (ActiveDataPtr activeData, QWidget *parent) | |
| virtual | ~TransferFunctionColorWidget () |
| void | setData (ImagePtr image, ImageTFDataPtr tfData) |
Public Member Functions inherited from cx::BaseWidget | |
| BaseWidget (QWidget *parent, QString objectName, QString windowTitle) | |
| virtual | ~BaseWidget () |
| QWidget * | createMethodWidget (QWidget *inputWidget, QWidget *outputWidget, QString methodname, bool inputChecked=false, bool outputVisible=true) |
| Create a specialized widget for filters, with input/ouput, enable and options. More... | |
| QGroupBox * | createGroupbox (QWidget *widget, QString boxname) |
| Create a group box with a given name. More... | |
| QGroupBox * | wrapInGroupBox (QWidget *base, QString name) |
| CXFrame * | wrapInFrame (QWidget *base) |
| QAction * | createAction2 (QObject *parent, QIcon iconName, QString text, QString tip, QLayout *layout=NULL, QToolButton *button=new QToolButton()) |
| template<class T > | |
| QAction * | createAction (QObject *parent, QIcon iconName, QString text, QString tip, T slot, QLayout *layout=NULL, QToolButton *button=new QToolButton()) |
Public Member Functions inherited from cx::OptimizedUpdateWidget | |
| OptimizedUpdateWidget (QWidget *parent=NULL) | |
| virtual | ~OptimizedUpdateWidget () |
| void | forcePrePaint () |
Protected Slots | |
| void | removeColorSlot () |
| void | setColorSlot () |
| void | setColorSlotDelayed () |
Protected Member Functions | |
| ColorPoint | selectPoint (QPoint pos) const |
| std::pair< int, int > | findAllowedMoveRangeAroundColorPoint (int selectedPointIntensity) |
| void | paintColorPointsAndGenerateCache (QPainter &painter) |
| void | paintColorBar (QPainter &painter) |
| void | updateTooltip (QPoint pos) |
| void | updateTooltip (ColorPoint point) |
| bool | isEndpoint (int intensity) const |
| void | contextMenuEvent (QContextMenuEvent *event) |
| Decides what happens when you rightclick in a view. More... | |
| QPoint | getPlotPoint (int iScalar) |
| Calculate the screen point of a given scalar (x-axis) and value (y-axis) More... | |
| ColorPoint | getCurrentColorPoint () |
| Calculate the color point (position and color) based on clicked x coordinate. More... | |
| ColorPoint | getCurrentColorPoint (int clickX) |
| void | moveSelectedPointTo (ColorPoint newPoint) |
| virtual void | enterEvent (QEvent *event) |
| virtual void | leaveEvent (QEvent *event) |
| virtual void | mousePressEvent (QMouseEvent *event) |
| Reimplemented from superclass. More... | |
| virtual void | mouseReleaseEvent (QMouseEvent *event) |
| Reimplemented from superclass. More... | |
| virtual void | mouseMoveEvent (QMouseEvent *event) |
| Reimplemented from superclass. More... | |
| virtual void | keyPressEvent (QKeyEvent *event) |
| virtual void | resizeEvent (QResizeEvent *evt) |
| Reimplemented from superclass. More... | |
| virtual void | paintEvent (QPaintEvent *event) |
| Reimplemented from superclass. Paints the transferfunction GUI. More... | |
| virtual QSize | sizeHint () const |
| int | screenX2imageIntensity (int screenX) |
| Define a recommended size. More... | |
| int | imageIntensity2screenX (int intensity) |
Protected Member Functions inherited from cx::BaseWidget | |
| virtual void | showEvent (QShowEvent *event) |
Protected Member Functions inherited from cx::OptimizedUpdateWidget | |
| virtual void | prePaintEvent () |
Protected Attributes | |
| QAction * | mCustomColorAction |
| Action for choosing custom color. More... | |
| QAction * | mRemoveColorAction |
| Action for removing a color. More... | |
| QRect | mFullArea |
| The full widget area. More... | |
| QRect | mPlotArea |
| The plot area. More... | |
| int | mBorder |
| The size of the border around the transferfunction. The size of the rectangles are mBorder * 2. More... | |
| std::map< int, QRect > | mPointRects |
| Cache with all point rectangles. More... | |
| ColorPoint | mSelectedPoint |
| The currently selected point. More... | |
| QPoint | mCurrentClickPos |
| ImagePtr | mImage |
| ImageTFDataPtr | mImageTF |
| ActiveImageProxyPtr | mActiveImageProxy |
Additional Inherited Members | |
Static Public Member Functions inherited from cx::BaseWidget | |
| static QFrame * | createHorizontalLine () |
| Creates a horizontal line which can be inserted into widgets. More... | |
Definition at line 59 of file cxTransferFunctionColorWidget.h.
| cx::TransferFunctionColorWidget::TransferFunctionColorWidget | ( | ActiveDataPtr | activeData, |
| QWidget * | parent | ||
| ) |
Definition at line 57 of file cxTransferFunctionColorWidget.cpp.
|
virtual |
Definition at line 77 of file cxTransferFunctionColorWidget.cpp.
|
slot |
Acts when the image's transfer function is changed.
Definition at line 101 of file cxTransferFunctionColorWidget.cpp.
|
protected |
Decides what happens when you rightclick in a view.
Definition at line 312 of file cxTransferFunctionColorWidget.cpp.
|
protectedvirtual |
Definition at line 80 of file cxTransferFunctionColorWidget.cpp.
|
protected |
Definition at line 385 of file cxTransferFunctionColorWidget.cpp.
|
protected |
Calculate the color point (position and color) based on clicked x coordinate.
Definition at line 329 of file cxTransferFunctionColorWidget.cpp.
|
protected |
Definition at line 334 of file cxTransferFunctionColorWidget.cpp.
|
protected |
Calculate the screen point of a given scalar (x-axis) and value (y-axis)
|
protected |
Definition at line 182 of file cxTransferFunctionColorWidget.cpp.
|
protected |
Definition at line 303 of file cxTransferFunctionColorWidget.cpp.
|
protectedvirtual |
Definition at line 159 of file cxTransferFunctionColorWidget.cpp.
|
protectedvirtual |
Definition at line 85 of file cxTransferFunctionColorWidget.cpp.
|
protectedvirtual |
Reimplemented from superclass.
Definition at line 125 of file cxTransferFunctionColorWidget.cpp.
|
protectedvirtual |
Reimplemented from superclass.
Definition at line 106 of file cxTransferFunctionColorWidget.cpp.
|
protectedvirtual |
Reimplemented from superclass.
Definition at line 118 of file cxTransferFunctionColorWidget.cpp.
|
protected |
Definition at line 369 of file cxTransferFunctionColorWidget.cpp.
|
protected |
Definition at line 216 of file cxTransferFunctionColorWidget.cpp.
|
protected |
Definition at line 245 of file cxTransferFunctionColorWidget.cpp.
|
protectedvirtual |
Reimplemented from superclass. Paints the transferfunction GUI.
Reimplemented from cx::OptimizedUpdateWidget.
Definition at line 199 of file cxTransferFunctionColorWidget.cpp.
|
protectedslot |
Definition at line 430 of file cxTransferFunctionColorWidget.cpp.
|
protectedvirtual |
Reimplemented from superclass.
Definition at line 275 of file cxTransferFunctionColorWidget.cpp.
|
protected |
Define a recommended size.
Calculate the correct position within the color transfer function, based on a screen x coordinate
Definition at line 192 of file cxTransferFunctionColorWidget.cpp.
|
protected |
Definition at line 285 of file cxTransferFunctionColorWidget.cpp.
|
protectedslot |
Definition at line 409 of file cxTransferFunctionColorWidget.cpp.
|
protectedslot |
Definition at line 415 of file cxTransferFunctionColorWidget.cpp.
| void cx::TransferFunctionColorWidget::setData | ( | ImagePtr | image, |
| ImageTFDataPtr | tfData | ||
| ) |
Definition at line 91 of file cxTransferFunctionColorWidget.cpp.
|
inlineprotectedvirtual |
Definition at line 139 of file cxTransferFunctionColorWidget.h.
|
protected |
Definition at line 140 of file cxTransferFunctionColorWidget.cpp.
|
protected |
Definition at line 149 of file cxTransferFunctionColorWidget.cpp.
|
protected |
Definition at line 117 of file cxTransferFunctionColorWidget.h.
|
protected |
The size of the border around the transferfunction. The size of the rectangles are mBorder * 2.
Definition at line 101 of file cxTransferFunctionColorWidget.h.
|
protected |
Definition at line 106 of file cxTransferFunctionColorWidget.h.
|
protected |
Action for choosing custom color.
Definition at line 96 of file cxTransferFunctionColorWidget.h.
|
protected |
The full widget area.
Definition at line 99 of file cxTransferFunctionColorWidget.h.
|
protected |
Definition at line 115 of file cxTransferFunctionColorWidget.h.
|
protected |
Definition at line 116 of file cxTransferFunctionColorWidget.h.
|
protected |
The plot area.
Definition at line 100 of file cxTransferFunctionColorWidget.h.
|
protected |
Cache with all point rectangles.
Definition at line 103 of file cxTransferFunctionColorWidget.h.
|
protected |
Action for removing a color.
Definition at line 97 of file cxTransferFunctionColorWidget.h.
|
protected |
The currently selected point.
Definition at line 104 of file cxTransferFunctionColorWidget.h.