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

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

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

Properties

bool showOnlyNamedColors
 

Public Slots

void setMRMLColorNode (vtkMRMLColorNode *colorNode)
 
void setMRMLColorNode (vtkMRMLNode *colorNode)
 Utility function to simply connect signals/slots with Qt Designer. More...
 
void setShowOnlyNamedColors (bool)
 

Signals

void colorSelected (int index)
 
void colorSelected (const QColor &color)
 
void colorSelected (const QString &name)
 

Public Member Functions

qMRMLColorModelcolorModel () const
 
vtkMRMLColorNodemrmlColorNode () const
 
 qMRMLColorListView (QWidget *parent=nullptr)
 
bool showOnlyNamedColors () const
 
QSortFilterProxyModel * sortFilterProxyModel () const
 
 ~qMRMLColorListView () override
 

Protected Slots

void currentChanged (const QModelIndex &, const QModelIndex &) override
 

Protected Attributes

QScopedPointer< qMRMLColorListViewPrivate > d_ptr
 

Detailed Description

Definition at line 36 of file qMRMLColorListView.h.

Property Documentation

◆ showOnlyNamedColors

bool qMRMLColorListView::showOnlyNamedColors
readwrite

Definition at line 39 of file qMRMLColorListView.h.

Constructor & Destructor Documentation

◆ qMRMLColorListView()

qMRMLColorListView::qMRMLColorListView ( QWidget *  parent = nullptr)

◆ ~qMRMLColorListView()

qMRMLColorListView::~qMRMLColorListView ( )
override

Member Function Documentation

◆ colorModel()

qMRMLColorModel* qMRMLColorListView::colorModel ( ) const

◆ colorSelected [1/3]

void qMRMLColorListView::colorSelected ( int  index)
signal

Colors are selected when there is a new current item (not fired on the activated signal).

◆ colorSelected [2/3]

void qMRMLColorListView::colorSelected ( const QColor &  color)
signal

◆ colorSelected [3/3]

void qMRMLColorListView::colorSelected ( const QString &  name)
signal

◆ currentChanged

void qMRMLColorListView::currentChanged ( const QModelIndex &  ,
const QModelIndex &   
)
overrideprotectedslot

◆ mrmlColorNode()

vtkMRMLColorNode* qMRMLColorListView::mrmlColorNode ( ) const

◆ setMRMLColorNode [1/2]

void qMRMLColorListView::setMRMLColorNode ( vtkMRMLColorNode colorNode)
slot

◆ setMRMLColorNode [2/2]

void qMRMLColorListView::setMRMLColorNode ( vtkMRMLNode colorNode)
slot

Utility function to simply connect signals/slots with Qt Designer.

◆ setShowOnlyNamedColors

void qMRMLColorListView::setShowOnlyNamedColors ( bool  )
slot

◆ showOnlyNamedColors()

bool qMRMLColorListView::showOnlyNamedColors ( ) const

◆ sortFilterProxyModel()

QSortFilterProxyModel* qMRMLColorListView::sortFilterProxyModel ( ) const

Member Data Documentation

◆ d_ptr

QScopedPointer<qMRMLColorListViewPrivate> qMRMLColorListView::d_ptr
protected

Definition at line 68 of file qMRMLColorListView.h.


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