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

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

Inheritance diagram for qMRMLScalarInvariantComboBox:
Collaboration diagram for qMRMLScalarInvariantComboBox:

Properties

QVTK_OBJECTint scalarInvariant
 

Public Slots

void setDisplayPropertiesNode (vtkMRMLDiffusionTensorDisplayPropertiesNode *node)
 
void setDisplayPropertiesNode (vtkMRMLNode *node)
 Utility function to be connected with generic signals.
 
void setScalarInvariant (int value)
 

Signals

void scalarInvariantChanged (int scalarInvariant)
 

Public Member Functions

vtkMRMLDiffusionTensorDisplayPropertiesNodedisplayPropertiesNode () const
 Return the optionally set display properties node set.
 
 qMRMLScalarInvariantComboBox (QWidget *parent=nullptr)
 
int scalarInvariant () const
 Returns the currently selected scalar invariant.
 
 ~qMRMLScalarInvariantComboBox () override
 

Protected Slots

void onCurrentScalarInvariantChanged (int index)
 
void updateWidgetFromMRML ()
 

Protected Attributes

QScopedPointer< qMRMLScalarInvariantComboBoxPrivate > d_ptr
 

Detailed Description

Combobox to select a function to compute a scalar from a diffusion tensor. If an optional display properties node is provided, its ColorGlyphBy property is automatically synchronized with the combobox entree.

Definition at line 40 of file qMRMLScalarInvariantComboBox.h.

Property Documentation

◆ scalarInvariant

QVTK_OBJECTint qMRMLScalarInvariantComboBox::scalarInvariant
readwrite

Definition at line 44 of file qMRMLScalarInvariantComboBox.h.

Constructor & Destructor Documentation

◆ qMRMLScalarInvariantComboBox()

qMRMLScalarInvariantComboBox::qMRMLScalarInvariantComboBox ( QWidget * parent = nullptr)

◆ ~qMRMLScalarInvariantComboBox()

qMRMLScalarInvariantComboBox::~qMRMLScalarInvariantComboBox ( )
override

Member Function Documentation

◆ displayPropertiesNode()

vtkMRMLDiffusionTensorDisplayPropertiesNode * qMRMLScalarInvariantComboBox::displayPropertiesNode ( ) const

Return the optionally set display properties node set.

◆ onCurrentScalarInvariantChanged

void qMRMLScalarInvariantComboBox::onCurrentScalarInvariantChanged ( int index)
protectedslot

◆ scalarInvariant()

int qMRMLScalarInvariantComboBox::scalarInvariant ( ) const

Returns the currently selected scalar invariant.

◆ scalarInvariantChanged

void qMRMLScalarInvariantComboBox::scalarInvariantChanged ( int scalarInvariant)
signal

Fired anytime the scalar invariant is changed (by the user, programmatically or via the node)

◆ setDisplayPropertiesNode [1/2]

void qMRMLScalarInvariantComboBox::setDisplayPropertiesNode ( vtkMRMLDiffusionTensorDisplayPropertiesNode * node)
slot

Set the volume node properties to synchronize the combobox with. It listens to the ColorGlyphBy property (not ScalarInvariant). If the property is externally modified, the combobox is updated with the new value, on the other hand, if the user graphically select a new menu entry, the node will be updated with the user choice.

◆ setDisplayPropertiesNode [2/2]

void qMRMLScalarInvariantComboBox::setDisplayPropertiesNode ( vtkMRMLNode * node)
slot

Utility function to be connected with generic signals.

◆ setScalarInvariant

void qMRMLScalarInvariantComboBox::setScalarInvariant ( int value)
slot

Set the combobox entry to the new scalar invariant value. If a display properties node is set, it sets to the value to the node.

◆ updateWidgetFromMRML

void qMRMLScalarInvariantComboBox::updateWidgetFromMRML ( )
protectedslot

Member Data Documentation

◆ d_ptr

QScopedPointer<qMRMLScalarInvariantComboBoxPrivate> qMRMLScalarInvariantComboBox::d_ptr
protected

Definition at line 81 of file qMRMLScalarInvariantComboBox.h.


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