#include <Libs/MRML/Widgets/qMRMLColorModel.h>
|
static void | onMRMLNodeEvent (vtkObject *vtk_obj, unsigned long event, void *client_data, void *call_data) |
|
|
QScopedPointer< qMRMLColorModelPrivate > | d_ptr |
|
Definition at line 42 of file qMRMLColorModel.h.
◆ Superclass
◆ ItemDataRole
ColorRole is an invivisble role that contains the true color (QColor) when Qt::DecorationRole contains a pixmap of the color.
Enumerator |
---|
ColorEntryRole | |
PointerRole | |
ColorRole | |
Definition at line 79 of file qMRMLColorModel.h.
◆ checkableColumn
int qMRMLColorModel::checkableColumn |
|
readwrite |
◆ colorColumn
int qMRMLColorModel::colorColumn |
|
readwrite |
◆ labelColumn
int qMRMLColorModel::labelColumn |
|
readwrite |
◆ noneEnabled
bool qMRMLColorModel::noneEnabled |
|
readwrite |
◆ opacityColumn
int qMRMLColorModel::opacityColumn |
|
readwrite |
◆ qMRMLColorModel() [1/2]
qMRMLColorModel::qMRMLColorModel |
( |
QObject * |
parent = 0 | ) |
|
◆ ~qMRMLColorModel()
virtual qMRMLColorModel::~qMRMLColorModel |
( |
| ) |
|
|
virtual |
◆ qMRMLColorModel() [2/2]
qMRMLColorModel::qMRMLColorModel |
( |
qMRMLColorModelPrivate * |
pimpl, |
|
|
QObject * |
parent = 0 |
|
) |
| |
|
protected |
◆ checkableColumn()
int qMRMLColorModel::checkableColumn |
( |
| ) |
const |
◆ colorColumn()
int qMRMLColorModel::colorColumn |
( |
| ) |
const |
◆ colorFromIndex()
int qMRMLColorModel::colorFromIndex |
( |
const QModelIndex & |
index | ) |
const |
|
inline |
◆ colorFromItem()
int qMRMLColorModel::colorFromItem |
( |
QStandardItem * |
item | ) |
const |
◆ colorFromName()
int qMRMLColorModel::colorFromName |
( |
const QString & |
name | ) |
const |
◆ headerData()
virtual QVariant qMRMLColorModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
virtual |
Overload the header data method for the vertical header so that can return the color index rather than the row
◆ indexes()
QModelIndexList qMRMLColorModel::indexes |
( |
int |
color | ) |
const |
◆ itemFromColor()
QStandardItem* qMRMLColorModel::itemFromColor |
( |
int |
color, |
|
|
int |
column = 0 |
|
) |
| const |
◆ labelColumn()
int qMRMLColorModel::labelColumn |
( |
| ) |
const |
◆ mrmlColorNode()
◆ nameFromColor()
QString qMRMLColorModel::nameFromColor |
( |
int |
colorEntry | ) |
const |
◆ noneEnabled()
bool qMRMLColorModel::noneEnabled |
( |
| ) |
const |
◆ onItemChanged
void qMRMLColorModel::onItemChanged |
( |
QStandardItem * |
item | ) |
|
|
protectedslot |
◆ onMRMLColorNodeModified
void qMRMLColorModel::onMRMLColorNodeModified |
( |
vtkObject * |
node | ) |
|
|
protectedslot |
◆ onMRMLNodeEvent()
static void qMRMLColorModel::onMRMLNodeEvent |
( |
vtkObject * |
vtk_obj, |
|
|
unsigned long |
event, |
|
|
void * |
client_data, |
|
|
void * |
call_data |
|
) |
| |
|
staticprotected |
◆ opacityColumn()
int qMRMLColorModel::opacityColumn |
( |
| ) |
const |
◆ qcolorFromColor()
QColor qMRMLColorModel::qcolorFromColor |
( |
int |
color | ) |
const |
◆ qcolorFromIndex()
QColor qMRMLColorModel::qcolorFromIndex |
( |
const QModelIndex & |
nodeIndex | ) |
const |
|
inline |
◆ qcolorFromItem()
QColor qMRMLColorModel::qcolorFromItem |
( |
QStandardItem * |
nodeItem | ) |
const |
|
inline |
◆ setCheckableColumn()
void qMRMLColorModel::setCheckableColumn |
( |
int |
column | ) |
|
◆ setColorColumn()
void qMRMLColorModel::setColorColumn |
( |
int |
column | ) |
|
◆ setLabelColumn()
void qMRMLColorModel::setLabelColumn |
( |
int |
column | ) |
|
◆ setMRMLColorNode()
◆ setNoneEnabled()
void qMRMLColorModel::setNoneEnabled |
( |
bool |
enable | ) |
|
Set/Get NoneEnabled flags An additional item is added into the menu list, where the user can select "None".
◆ setOpacityColumn()
void qMRMLColorModel::setOpacityColumn |
( |
int |
column | ) |
|
◆ updateColorFromItem()
virtual void qMRMLColorModel::updateColorFromItem |
( |
int |
color, |
|
|
QStandardItem * |
item |
|
) |
| |
|
protectedvirtual |
◆ updateItemFromColor()
virtual void qMRMLColorModel::updateItemFromColor |
( |
QStandardItem * |
item, |
|
|
int |
color, |
|
|
int |
column |
|
) |
| |
|
protectedvirtual |
◆ updateNode()
virtual void qMRMLColorModel::updateNode |
( |
| ) |
|
|
protectedvirtual |
◆ d_ptr
QScopedPointer<qMRMLColorModelPrivate> qMRMLColorModel::d_ptr |
|
protected |
The documentation for this class was generated from the following file: