Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
qMRMLColorListView Class Reference

#include <Modules/Loadable/Colors/Widgets/qMRMLColorListView.h>

Inheritance diagram for qMRMLColorListView:
Collaboration diagram for qMRMLColorListView:

Properties

bool showOnlyNamedColors
 

Public Slots

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

Signals

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

Public Member Functions

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

Protected Slots

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

Protected Attributes

QScopedPointer< qMRMLColorListViewPrivate > d_ptr
 

Detailed Description

Definition at line 38 of file qMRMLColorListView.h.

Property Documentation

◆ showOnlyNamedColors

bool qMRMLColorListView::showOnlyNamedColors
readwrite

Definition at line 41 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 ( const QColor & color)
signal

◆ colorSelected [2/3]

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

◆ colorSelected [3/3]

void qMRMLColorListView::colorSelected ( int index)
signal

Colors are selected when there is a new current item (not fired on the activated 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()

qMRMLSortFilterColorProxyModel * qMRMLColorListView::sortFilterProxyModel ( ) const

Member Data Documentation

◆ d_ptr

QScopedPointer<qMRMLColorListViewPrivate> qMRMLColorListView::d_ptr
protected

Definition at line 70 of file qMRMLColorListView.h.


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