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
qMRMLSimpleColorTableView Class Reference

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

#include <Modules/Loadable/Terminologies/Widgets/qMRMLSimpleColorTableView.h>

Inheritance diagram for qMRMLSimpleColorTableView:
Collaboration diagram for qMRMLSimpleColorTableView:

Public Slots

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

Public Member Functions

Q_INVOKABLE qMRMLColorModelcolorModel () const
 
Q_INVOKABLE vtkMRMLColorNodemrmlColorNode () const
 
 qMRMLSimpleColorTableView (QWidget *parent=nullptr)
 
Q_INVOKABLE int selectedColorIndex () const
 
Q_INVOKABLE qMRMLSortFilterColorProxyModelsortFilterProxyModel () const
 
 ~qMRMLSimpleColorTableView () override
 

Protected Attributes

QScopedPointer< qMRMLSimpleColorTableViewPrivate > 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 39 of file qMRMLSimpleColorTableView.h.

Constructor & Destructor Documentation

◆ qMRMLSimpleColorTableView()

qMRMLSimpleColorTableView::qMRMLSimpleColorTableView ( QWidget * parent = nullptr)

◆ ~qMRMLSimpleColorTableView()

qMRMLSimpleColorTableView::~qMRMLSimpleColorTableView ( )
override

Member Function Documentation

◆ colorModel()

Q_INVOKABLE qMRMLColorModel * qMRMLSimpleColorTableView::colorModel ( ) const

◆ mrmlColorNode()

Q_INVOKABLE vtkMRMLColorNode * qMRMLSimpleColorTableView::mrmlColorNode ( ) const

◆ selectColorByIndex

bool qMRMLSimpleColorTableView::selectColorByIndex ( int colorIndex)
slot

Select row in table by color index and scroll to it. Returns true on success.

◆ selectedColorIndex()

Q_INVOKABLE int qMRMLSimpleColorTableView::selectedColorIndex ( ) const

◆ setMRMLColorNode [1/2]

void qMRMLSimpleColorTableView::setMRMLColorNode ( vtkMRMLColorNode * colorNode)
slot

◆ setMRMLColorNode [2/2]

void qMRMLSimpleColorTableView::setMRMLColorNode ( vtkMRMLNode * colorNode)
slot

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

◆ sortFilterProxyModel()

Q_INVOKABLE qMRMLSortFilterColorProxyModel * qMRMLSimpleColorTableView::sortFilterProxyModel ( ) const

Member Data Documentation

◆ d_ptr

QScopedPointer<qMRMLSimpleColorTableViewPrivate> qMRMLSimpleColorTableView::d_ptr
protected

Definition at line 61 of file qMRMLSimpleColorTableView.h.


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