#include <Libs/MRML/Widgets/qMRMLColorPickerWidget.h>
|
QScopedPointer< qMRMLColorPickerWidgetPrivate > | d_ptr |
|
QScopedPointer< qMRMLWidgetPrivate > | d_ptr |
|
Given a mrml scene, qMRMLColorPickerWidget allows the selection of a color/label from all the vtkMRMLColorNode in the scene.
Definition at line 41 of file qMRMLColorPickerWidget.h.
◆ qMRMLColorPickerWidget()
qMRMLColorPickerWidget::qMRMLColorPickerWidget |
( |
QWidget * |
parent = nullptr | ) |
|
◆ ~qMRMLColorPickerWidget()
qMRMLColorPickerWidget::~qMRMLColorPickerWidget |
( |
| ) |
|
|
override |
◆ colorEntrySelected
void qMRMLColorPickerWidget::colorEntrySelected |
( |
int |
index | ) |
|
|
signal |
Fired when the user selects a color in the list. index is the selected color node entry.
◆ colorNameSelected
void qMRMLColorPickerWidget::colorNameSelected |
( |
const QString & |
name | ) |
|
|
signal |
Fired when the user selects a color in the list. name is the name of the color node entry.
◆ colorSelected
void qMRMLColorPickerWidget::colorSelected |
( |
const QColor & |
color | ) |
|
|
signal |
Fired when the user selects a color in the list.
◆ currentColorNode()
Q_INVOKABLE vtkMRMLColorNode* qMRMLColorPickerWidget::currentColorNode |
( |
| ) |
const |
◆ currentColorNodeChanged
void qMRMLColorPickerWidget::currentColorNodeChanged |
( |
vtkMRMLNode * |
node | ) |
|
|
signal |
Fired wen the current color table node is selected.
◆ eventFilter()
bool qMRMLColorPickerWidget::eventFilter |
( |
QObject * |
target, |
|
|
QEvent * |
event |
|
) |
| |
|
override |
◆ mrmlColorLogic()
◆ onCurrentColorNodeChanged
void qMRMLColorPickerWidget::onCurrentColorNodeChanged |
( |
vtkMRMLNode * |
node | ) |
|
|
protectedslot |
◆ onNodeAdded
void qMRMLColorPickerWidget::onNodeAdded |
( |
vtkObject * |
, |
|
|
vtkObject * |
|
|
) |
| |
|
protectedslot |
◆ onTextChanged
void qMRMLColorPickerWidget::onTextChanged |
( |
const QString & |
colorText | ) |
|
|
protectedslot |
◆ setCurrentColorNode
void qMRMLColorPickerWidget::setCurrentColorNode |
( |
vtkMRMLNode * |
node | ) |
|
|
slot |
◆ setCurrentColorNodeToDefault
void qMRMLColorPickerWidget::setCurrentColorNodeToDefault |
( |
| ) |
|
|
slot |
◆ setMRMLColorLogic()
Q_INVOKABLE void qMRMLColorPickerWidget::setMRMLColorLogic |
( |
vtkMRMLColorLogic * |
colorLogic | ) |
|
A color logic is needed to select the color default nodes. A default color logic is created.
◆ setMRMLScene()
void qMRMLColorPickerWidget::setMRMLScene |
( |
vtkMRMLScene * |
newScene | ) |
|
|
overridevirtual |
Set the MRML scene associated with the widget.
Reimplemented from qMRMLWidget.
◆ d_ptr
QScopedPointer<qMRMLColorPickerWidgetPrivate> qMRMLColorPickerWidget::d_ptr |
|
protected |
The documentation for this class was generated from the following file: