Fraxinus
22.04
An IGT application
|
#include <cxTransferFunctionAlphaWidget.h>
Classes | |
struct | AlphaPoint |
Internal placeholder for a function 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 | |
TransferFunctionAlphaWidget (ActiveDataPtr activeData, QWidget *parent) | |
virtual | ~TransferFunctionAlphaWidget () |
void | setData (ImagePtr image, ImageTFDataPtr tfData) |
void | setReadOnly (bool readOnly) |
Set class readonly: Disable mouse interaction. More... | |
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 Member Functions | |
virtual void | enterEvent (QEvent *event) |
Reimplemented from superclass. More... | |
virtual void | leaveEvent (QEvent *event) |
Reimplemented from superclass. More... | |
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 | paintEvent (QPaintEvent *event) |
Reimplemented from superclass. Paints the transferfunction GUI. More... | |
virtual void | resizeEvent (QResizeEvent *evt) |
Reimplemented from superclass. More... | |
AlphaPoint | selectPoint (QPoint pos) |
AlphaPoint | getCurrentAlphaPoint (QPoint pos) |
Get aplha point based on mCurrentClickX and mCurrentClickY. More... | |
void | toggleSelectedPoint (QPoint pos) |
Turn a transfer function point on or off (depending on it is on or not) More... | |
void | moveCurrentAlphaPoint (AlphaPoint newAlphaPoint) |
QPoint | alpha2screen (AlphaPoint pt) const |
void | updateTooltip (QPoint pos) |
void | updateTooltip (AlphaPoint point) |
bool | isEndpoint (int intensity) const |
void | paintHistogram (QPainter &painter) |
void | paintOpacityGraph (QPainter &painter) |
std::pair< int, int > | findAllowedMoveRangeAroundAlphaPoint (int selectedPointIntensity) |
virtual QSize | sizeHint () const |
Protected Member Functions inherited from cx::BaseWidget | |
virtual void | showEvent (QShowEvent *event) |
Protected Member Functions inherited from cx::OptimizedUpdateWidget | |
virtual void | prePaintEvent () |
Protected Attributes | |
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... | |
bool | mReadOnly |
Is class readOnly? Eg no mouse interaction possible. More... | |
std::map< int, QRect > | mPointRects |
Cache with all point rectangles. More... | |
AlphaPoint | mSelectedAlphaPoint |
The current alpha point. More... | |
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 cxTransferFunctionAlphaWidget.h.
cx::TransferFunctionAlphaWidget::TransferFunctionAlphaWidget | ( | ActiveDataPtr | activeData, |
QWidget * | parent | ||
) |
Definition at line 33 of file cxTransferFunctionAlphaWidget.cpp.
|
virtual |
Definition at line 46 of file cxTransferFunctionAlphaWidget.cpp.
|
slot |
Acts when the image's transfer function is changed.
Definition at line 64 of file cxTransferFunctionAlphaWidget.cpp.
|
protected |
Definition at line 249 of file cxTransferFunctionAlphaWidget.cpp.
|
protectedvirtual |
Reimplemented from superclass.
Definition at line 69 of file cxTransferFunctionAlphaWidget.cpp.
|
protected |
Definition at line 381 of file cxTransferFunctionAlphaWidget.cpp.
|
protected |
Get aplha point based on mCurrentClickX and mCurrentClickY.
Definition at line 327 of file cxTransferFunctionAlphaWidget.cpp.
|
protected |
Definition at line 318 of file cxTransferFunctionAlphaWidget.cpp.
|
protectedvirtual |
Definition at line 123 of file cxTransferFunctionAlphaWidget.cpp.
|
protectedvirtual |
Reimplemented from superclass.
Definition at line 74 of file cxTransferFunctionAlphaWidget.cpp.
|
protectedvirtual |
Reimplemented from superclass.
Definition at line 105 of file cxTransferFunctionAlphaWidget.cpp.
|
protectedvirtual |
Reimplemented from superclass.
Definition at line 79 of file cxTransferFunctionAlphaWidget.cpp.
|
protectedvirtual |
Reimplemented from superclass.
Definition at line 97 of file cxTransferFunctionAlphaWidget.cpp.
|
protected |
Definition at line 365 of file cxTransferFunctionAlphaWidget.cpp.
|
protectedvirtual |
Reimplemented from superclass. Paints the transferfunction GUI.
Reimplemented from cx::OptimizedUpdateWidget.
Definition at line 170 of file cxTransferFunctionAlphaWidget.cpp.
|
protected |
Definition at line 261 of file cxTransferFunctionAlphaWidget.cpp.
|
protected |
Definition at line 193 of file cxTransferFunctionAlphaWidget.cpp.
|
protectedvirtual |
Reimplemented from superclass.
Definition at line 289 of file cxTransferFunctionAlphaWidget.cpp.
|
protected |
Definition at line 299 of file cxTransferFunctionAlphaWidget.cpp.
void cx::TransferFunctionAlphaWidget::setData | ( | ImagePtr | image, |
ImageTFDataPtr | tfData | ||
) |
Definition at line 49 of file cxTransferFunctionAlphaWidget.cpp.
void cx::TransferFunctionAlphaWidget::setReadOnly | ( | bool | readOnly | ) |
Set class readonly: Disable mouse interaction.
Definition at line 59 of file cxTransferFunctionAlphaWidget.cpp.
|
inlineprotectedvirtual |
Definition at line 114 of file cxTransferFunctionAlphaWidget.h.
|
protected |
Turn a transfer function point on or off (depending on it is on or not)
Definition at line 342 of file cxTransferFunctionAlphaWidget.cpp.
|
protected |
Definition at line 153 of file cxTransferFunctionAlphaWidget.cpp.
|
protected |
Definition at line 162 of file cxTransferFunctionAlphaWidget.cpp.
|
protected |
Definition at line 112 of file cxTransferFunctionAlphaWidget.h.
|
protected |
The size of the border around the transferfunction. The size of the rectangles are mBorder * 2.
Definition at line 103 of file cxTransferFunctionAlphaWidget.h.
|
protected |
The full widget area.
Definition at line 101 of file cxTransferFunctionAlphaWidget.h.
|
protected |
Definition at line 110 of file cxTransferFunctionAlphaWidget.h.
|
protected |
Definition at line 111 of file cxTransferFunctionAlphaWidget.h.
|
protected |
The plot area.
Definition at line 102 of file cxTransferFunctionAlphaWidget.h.
|
protected |
Cache with all point rectangles.
Definition at line 106 of file cxTransferFunctionAlphaWidget.h.
|
protected |
Is class readOnly? Eg no mouse interaction possible.
Definition at line 104 of file cxTransferFunctionAlphaWidget.h.
|
protected |
The current alpha point.
Definition at line 107 of file cxTransferFunctionAlphaWidget.h.