Slicer  5.0
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Slots | Signals | Public Member Functions | Protected Slots | Protected Attributes
qMRMLColorPickerWidget Class Reference

#include <Libs/MRML/Widgets/qMRMLColorPickerWidget.h>

Inheritance diagram for qMRMLColorPickerWidget:
Inheritance graph
[legend]
Collaboration diagram for qMRMLColorPickerWidget:
Collaboration graph
[legend]

Public Slots

void setCurrentColorNode (vtkMRMLNode *node)
 
void setCurrentColorNodeToDefault ()
 
- Public Slots inherited from qMRMLWidget

Signals

void colorEntrySelected (int index)
 
void colorNameSelected (const QString &name)
 
void colorSelected (const QColor &color)
 Fired when the user selects a color in the list. More...
 
void currentColorNodeChanged (vtkMRMLNode *node)
 Fired wen the current color table node is selected. More...
 
- Signals inherited from qMRMLWidget
void mrmlSceneChanged (vtkMRMLScene *)
 

Public Member Functions

Q_INVOKABLE vtkMRMLColorNodecurrentColorNode () const
 
bool eventFilter (QObject *target, QEvent *event) override
 
Q_INVOKABLE vtkMRMLColorLogicmrmlColorLogic () const
 
 qMRMLColorPickerWidget (QWidget *parent=nullptr)
 
Q_INVOKABLE void setMRMLColorLogic (vtkMRMLColorLogic *colorLogic)
 
void setMRMLScene (vtkMRMLScene *scene) override
 Set the MRML scene associated with the widget. More...
 
 ~qMRMLColorPickerWidget () override
 
- Public Member Functions inherited from qMRMLWidget
Q_INVOKABLE vtkMRMLScenemrmlScene () const
 Return a pointer on the current MRML scene. More...
 
 qMRMLWidget (QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
 
 ~qMRMLWidget () override
 

Protected Slots

void onCurrentColorNodeChanged (vtkMRMLNode *node)
 
void onNodeAdded (vtkObject *, vtkObject *)
 
void onTextChanged (const QString &colorText)
 

Protected Attributes

QScopedPointer< qMRMLColorPickerWidgetPrivate > d_ptr
 
- Protected Attributes inherited from qMRMLWidget
QScopedPointer< qMRMLWidgetPrivate > d_ptr
 

Additional Inherited Members

- Public Types inherited from qMRMLWidget
typedef QWidget Superclass
 
- Static Public Member Functions inherited from qMRMLWidget
static Q_INVOKABLE QPixmap pixmapFromIcon (const QIcon &icon)
 
static Q_INVOKABLE void postInitializeApplication ()
 Initialization that needs to be performed after application object is created. More...
 
static Q_INVOKABLE void preInitializeApplication ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ qMRMLColorPickerWidget()

qMRMLColorPickerWidget::qMRMLColorPickerWidget ( QWidget *  parent = nullptr)

◆ ~qMRMLColorPickerWidget()

qMRMLColorPickerWidget::~qMRMLColorPickerWidget ( )
override

Member Function Documentation

◆ 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()

Q_INVOKABLE vtkMRMLColorLogic* qMRMLColorPickerWidget::mrmlColorLogic ( ) const

◆ 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.

Member Data Documentation

◆ d_ptr

QScopedPointer<qMRMLColorPickerWidgetPrivate> qMRMLColorPickerWidget::d_ptr
protected

Definition at line 84 of file qMRMLColorPickerWidget.h.


The documentation for this class was generated from the following file: