21#ifndef __qMRMLColorTableView_h
22#define __qMRMLColorTableView_h
26#include <QItemDelegate>
29#include "qMRMLWidgetsExport.h"
31class QSortFilterProxyModel;
32class qMRMLColorTableViewPrivate;
46 Q_PROPERTY(
bool showOnlyNamedColors READ showOnlyNamedColors WRITE setShowOnlyNamedColors)
72 QScopedPointer<qMRMLColorTableViewPrivate>
d_ptr;
Table view for color table nodes. Edition of color (opening dialog) and opacity (slider popup) is han...
Q_INVOKABLE qMRMLColorModel * colorModel() const
Q_INVOKABLE int rowFromColorName(const QString &colorName) const
bool showOnlyNamedColors() const
void setMRMLColorNode(vtkMRMLNode *colorNode)
Utility function to simply connect signals/slots with Qt Designer.
Q_INVOKABLE QSortFilterProxyModel * sortFilterProxyModel() const
QScopedPointer< qMRMLColorTableViewPrivate > d_ptr
Q_INVOKABLE vtkMRMLColorNode * mrmlColorNode() const
void setMRMLColorNode(vtkMRMLColorNode *colorNode)
qMRMLColorTableView(QWidget *parent=nullptr)
~qMRMLColorTableView() override
Q_INVOKABLE int rowFromColorIndex(int colorIndex) const
void setShowOnlyNamedColors(bool)
Abstract MRML node to represent color information.
Abstract Superclass for all specific types of MRML nodes.