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 | Public Member Functions | Protected Attributes
qMRMLColorTableView Class Reference

Table view for color table nodes. Edition of color (opening dialog) and opacity (slider popup) is handled by qMRMLItemDelegate. More...

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

Inheritance diagram for qMRMLColorTableView:
Inheritance graph
[legend]
Collaboration diagram for qMRMLColorTableView:
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)
 

Public Member Functions

Q_INVOKABLE qMRMLColorModelcolorModel () const
 
Q_INVOKABLE vtkMRMLColorNodemrmlColorNode () const
 
 qMRMLColorTableView (QWidget *parent=nullptr)
 
Q_INVOKABLE int rowFromColorIndex (int colorIndex) const
 
Q_INVOKABLE int rowFromColorName (const QString &colorName) const
 
bool showOnlyNamedColors () const
 
Q_INVOKABLE QSortFilterProxyModel * sortFilterProxyModel () const
 
 ~qMRMLColorTableView () override
 

Protected Attributes

QScopedPointer< qMRMLColorTableViewPrivate > d_ptr
 

Detailed Description

Table view for color table nodes. Edition of color (opening dialog) and opacity (slider popup) is handled by qMRMLItemDelegate.

Definition at line 40 of file qMRMLColorTableView.h.

Property Documentation

◆ showOnlyNamedColors

bool qMRMLColorTableView::showOnlyNamedColors
readwrite

This property show/hides the colors whose name are (none). false by default.

See also
showOnlyNamedColors(), setShowOnlyNamedColors()

Definition at line 46 of file qMRMLColorTableView.h.

Constructor & Destructor Documentation

◆ qMRMLColorTableView()

qMRMLColorTableView::qMRMLColorTableView ( QWidget *  parent = nullptr)

◆ ~qMRMLColorTableView()

qMRMLColorTableView::~qMRMLColorTableView ( )
override

Member Function Documentation

◆ colorModel()

Q_INVOKABLE qMRMLColorModel* qMRMLColorTableView::colorModel ( ) const

◆ mrmlColorNode()

Q_INVOKABLE vtkMRMLColorNode* qMRMLColorTableView::mrmlColorNode ( ) const

◆ rowFromColorIndex()

Q_INVOKABLE int qMRMLColorTableView::rowFromColorIndex ( int  colorIndex) const

Return the row of the color of index colorIndex.

See also
rowFromColorIndex()

◆ rowFromColorName()

Q_INVOKABLE int qMRMLColorTableView::rowFromColorName ( const QString &  colorName) const

Return the row of the color with name colorName.

See also
rowFromColorIndex()

◆ setMRMLColorNode [1/2]

void qMRMLColorTableView::setMRMLColorNode ( vtkMRMLColorNode colorNode)
slot

◆ setMRMLColorNode [2/2]

void qMRMLColorTableView::setMRMLColorNode ( vtkMRMLNode colorNode)
slot

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

◆ setShowOnlyNamedColors

void qMRMLColorTableView::setShowOnlyNamedColors ( bool  )
slot

◆ showOnlyNamedColors()

bool qMRMLColorTableView::showOnlyNamedColors ( ) const

◆ sortFilterProxyModel()

Q_INVOKABLE QSortFilterProxyModel* qMRMLColorTableView::sortFilterProxyModel ( ) const

Member Data Documentation

◆ d_ptr

QScopedPointer<qMRMLColorTableViewPrivate> qMRMLColorTableView::d_ptr
protected

Definition at line 72 of file qMRMLColorTableView.h.


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