Slicer  5.3
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Properties | Public Slots | Signals | Public Member Functions | Protected Attributes
qMRMLLabelComboBox Class Reference

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

Inheritance diagram for qMRMLLabelComboBox:
Inheritance graph
Collaboration diagram for qMRMLLabelComboBox:
Collaboration graph

Public Types

typedef qMRMLWidget Superclass
- Public Types inherited from qMRMLWidget
typedef QWidget Superclass


bool colorNameVisible
int currentColor
QString currentColorName
bool labelValueVisible
int maximumColorCount
bool noneEnabled

Public Slots

void setCurrentColor (int index)
void setCurrentColor (const QString &colorName)
void setMRMLColorNode (vtkMRMLNode *newMRMLColorNode)
void updateWidgetFromMRML ()
- Public Slots inherited from qMRMLWidget
virtual void setMRMLScene (vtkMRMLScene *newScene)
 Set the MRML scene associated with the widget. More...


void currentColorChanged (const QColor &color)
void currentColorChanged (const QString &name)
void currentColorChanged (int index)
- Signals inherited from qMRMLWidget
void mrmlSceneChanged (vtkMRMLScene *)

Public Member Functions

bool colorNameVisible () const
 Display or not the colors names. More...
int currentColor () const
QString currentColorName () const
bool labelValueVisible () const
 Display or not the label values. More...
int maximumColorCount () const
vtkMRMLColorNodemrmlColorNode () const
bool noneEnabled () const
virtual void printAdditionalInfo ()
 qMRMLLabelComboBox (QWidget *newParent=nullptr)
void setColorNameVisible (bool visible)
void setLabelValueVisible (bool visible)
void setMaximumColorCount (int maximum)
void setNoneEnabled (bool enable)
 ~qMRMLLabelComboBox () override
- Public Member Functions inherited from qMRMLWidget
Q_INVOKABLE vtkMRMLScenemrmlScene () const
 Return a pointer on the current MRML scene. More...
 qMRMLWidget (QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
 ~qMRMLWidget () override

Protected Attributes

QScopedPointer< qMRMLLabelComboBoxPrivate > d_ptr
- Protected Attributes inherited from qMRMLWidget
QScopedPointer< qMRMLWidgetPrivate > d_ptr

Additional Inherited Members

- Static Public Member Functions inherited from qMRMLWidget
static Q_INVOKABLE QPixmap pixmapFromIcon (const QIcon &icon)
static Q_INVOKABLE void postInitializeApplication ()
 Initialization that needs to be performed after application object is created. More...
static Q_INVOKABLE void preInitializeApplication ()

Detailed Description

Definition at line 36 of file qMRMLLabelComboBox.h.

Member Typedef Documentation

◆ Superclass

Definition at line 49 of file qMRMLLabelComboBox.h.

Property Documentation

◆ colorNameVisible

bool qMRMLLabelComboBox::colorNameVisible

Definition at line 44 of file qMRMLLabelComboBox.h.

◆ currentColor

int qMRMLLabelComboBox::currentColor

Definition at line 41 of file qMRMLLabelComboBox.h.

◆ currentColorName

QString qMRMLLabelComboBox::currentColorName

Definition at line 42 of file qMRMLLabelComboBox.h.

◆ labelValueVisible

bool qMRMLLabelComboBox::labelValueVisible

Definition at line 45 of file qMRMLLabelComboBox.h.

◆ maximumColorCount

int qMRMLLabelComboBox::maximumColorCount

Definition at line 43 of file qMRMLLabelComboBox.h.

◆ noneEnabled

bool qMRMLLabelComboBox::noneEnabled

Definition at line 40 of file qMRMLLabelComboBox.h.

Constructor & Destructor Documentation

◆ qMRMLLabelComboBox()

qMRMLLabelComboBox::qMRMLLabelComboBox ( QWidget *  newParent = nullptr)

Construct an empty qMRMLColorTableComboBox with a null scene, no nodeType, where the hidden nodes are not forced on display.

◆ ~qMRMLLabelComboBox()

qMRMLLabelComboBox::~qMRMLLabelComboBox ( )

Member Function Documentation

◆ colorNameVisible()

bool qMRMLLabelComboBox::colorNameVisible ( ) const

Display or not the colors names.

◆ currentColor()

int qMRMLLabelComboBox::currentColor ( ) const

◆ currentColorChanged [1/3]

void qMRMLLabelComboBox::currentColorChanged ( const QColor &  color)

◆ currentColorChanged [2/3]

void qMRMLLabelComboBox::currentColorChanged ( const QString &  name)

◆ currentColorChanged [3/3]

void qMRMLLabelComboBox::currentColorChanged ( int  index)

◆ currentColorName()

QString qMRMLLabelComboBox::currentColorName ( ) const

◆ labelValueVisible()

bool qMRMLLabelComboBox::labelValueVisible ( ) const

Display or not the label values.

◆ maximumColorCount()

int qMRMLLabelComboBox::maximumColorCount ( ) const

◆ mrmlColorNode()

vtkMRMLColorNode* qMRMLLabelComboBox::mrmlColorNode ( ) const

◆ noneEnabled()

bool qMRMLLabelComboBox::noneEnabled ( ) const

Set/Get NoneEnabled flags An additional item is added into the menu list, where the user can select "None".

◆ printAdditionalInfo()

virtual void qMRMLLabelComboBox::printAdditionalInfo ( )

◆ setColorNameVisible()

void qMRMLLabelComboBox::setColorNameVisible ( bool  visible)

◆ setCurrentColor [1/2]

void qMRMLLabelComboBox::setCurrentColor ( int  index)

◆ setCurrentColor [2/2]

void qMRMLLabelComboBox::setCurrentColor ( const QString &  colorName)

◆ setLabelValueVisible()

void qMRMLLabelComboBox::setLabelValueVisible ( bool  visible)

◆ setMaximumColorCount()

void qMRMLLabelComboBox::setMaximumColorCount ( int  maximum)

◆ setMRMLColorNode

void qMRMLLabelComboBox::setMRMLColorNode ( vtkMRMLNode newMRMLColorNode)

◆ setNoneEnabled()

void qMRMLLabelComboBox::setNoneEnabled ( bool  enable)

◆ updateWidgetFromMRML

void qMRMLLabelComboBox::updateWidgetFromMRML ( )

Member Data Documentation

◆ d_ptr

QScopedPointer<qMRMLLabelComboBoxPrivate> qMRMLLabelComboBox::d_ptr

Definition at line 99 of file qMRMLLabelComboBox.h.

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