CustusX
22.09
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 37 of file cxTransferFunctionColorWidget.h.
cx::TransferFunctionColorWidget::TransferFunctionColorWidget | ( | ActiveDataPtr | activeData, |
QWidget * | parent | ||
) |
Definition at line 34 of file cxTransferFunctionColorWidget.cpp.
|
virtual |
Definition at line 54 of file cxTransferFunctionColorWidget.cpp.
|
slot |
Acts when the image's transfer function is changed.
Definition at line 78 of file cxTransferFunctionColorWidget.cpp.
|
protected |
Decides what happens when you rightclick in a view.
Definition at line 289 of file cxTransferFunctionColorWidget.cpp.
|
protectedvirtual |
Definition at line 57 of file cxTransferFunctionColorWidget.cpp.
|
protected |
Definition at line 362 of file cxTransferFunctionColorWidget.cpp.
|
protected |
Calculate the color point (position and color) based on clicked x coordinate.
Definition at line 306 of file cxTransferFunctionColorWidget.cpp.
|
protected |
Definition at line 311 of file cxTransferFunctionColorWidget.cpp.
|
protected |
Calculate the screen point of a given scalar (x-axis) and value (y-axis)
|
protected |
Definition at line 159 of file cxTransferFunctionColorWidget.cpp.
|
protected |
Definition at line 280 of file cxTransferFunctionColorWidget.cpp.
|
protectedvirtual |
Definition at line 136 of file cxTransferFunctionColorWidget.cpp.
|
protectedvirtual |
Definition at line 62 of file cxTransferFunctionColorWidget.cpp.
|
protectedvirtual |
Reimplemented from superclass.
Definition at line 102 of file cxTransferFunctionColorWidget.cpp.
|
protectedvirtual |
Reimplemented from superclass.
Definition at line 83 of file cxTransferFunctionColorWidget.cpp.
|
protectedvirtual |
Reimplemented from superclass.
Definition at line 95 of file cxTransferFunctionColorWidget.cpp.
|
protected |
Definition at line 346 of file cxTransferFunctionColorWidget.cpp.
|
protected |
Definition at line 193 of file cxTransferFunctionColorWidget.cpp.
|
protected |
Definition at line 222 of file cxTransferFunctionColorWidget.cpp.
|
protectedvirtual |
Reimplemented from superclass. Paints the transferfunction GUI.
Reimplemented from cx::OptimizedUpdateWidget.
Definition at line 176 of file cxTransferFunctionColorWidget.cpp.
|
protectedslot |
Definition at line 407 of file cxTransferFunctionColorWidget.cpp.
|
protectedvirtual |
Reimplemented from superclass.
Definition at line 252 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 169 of file cxTransferFunctionColorWidget.cpp.
|
protected |
Definition at line 262 of file cxTransferFunctionColorWidget.cpp.
|
protectedslot |
Definition at line 386 of file cxTransferFunctionColorWidget.cpp.
|
protectedslot |
Definition at line 392 of file cxTransferFunctionColorWidget.cpp.
void cx::TransferFunctionColorWidget::setData | ( | ImagePtr | image, |
ImageTFDataPtr | tfData | ||
) |
Definition at line 68 of file cxTransferFunctionColorWidget.cpp.
|
inlineprotectedvirtual |
Definition at line 117 of file cxTransferFunctionColorWidget.h.
|
protected |
Definition at line 117 of file cxTransferFunctionColorWidget.cpp.
|
protected |
Definition at line 126 of file cxTransferFunctionColorWidget.cpp.
|
protected |
Definition at line 95 of file cxTransferFunctionColorWidget.h.
|
protected |
The size of the border around the transferfunction. The size of the rectangles are mBorder * 2.
Definition at line 79 of file cxTransferFunctionColorWidget.h.
|
protected |
Definition at line 84 of file cxTransferFunctionColorWidget.h.
|
protected |
Action for choosing custom color.
Definition at line 74 of file cxTransferFunctionColorWidget.h.
|
protected |
The full widget area.
Definition at line 77 of file cxTransferFunctionColorWidget.h.
|
protected |
Definition at line 93 of file cxTransferFunctionColorWidget.h.
|
protected |
Definition at line 94 of file cxTransferFunctionColorWidget.h.
|
protected |
The plot area.
Definition at line 78 of file cxTransferFunctionColorWidget.h.
|
protected |
Cache with all point rectangles.
Definition at line 81 of file cxTransferFunctionColorWidget.h.
|
protected |
Action for removing a color.
Definition at line 75 of file cxTransferFunctionColorWidget.h.
|
protected |
The currently selected point.
Definition at line 82 of file cxTransferFunctionColorWidget.h.