Slicer  5.1
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 Slots | Protected Attributes
qSlicerVolumeRenderingPresetComboBox Class Reference

#include <Modules/Loadable/VolumeRendering/Widgets/qSlicerVolumeRenderingPresetComboBox.h>

Inheritance diagram for qSlicerVolumeRenderingPresetComboBox:
Inheritance graph
Collaboration diagram for qSlicerVolumeRenderingPresetComboBox:
Collaboration graph

Public Types

typedef qSlicerWidget Superclass
 Constructors. More...


bool showIcons

Public Slots

void applyPreset (vtkMRMLNode *volumePropertyNode)
void setCurrentNode (vtkMRMLNode *node)
 Set selected preset node in the combobox. Triggers update of the volume property node. More...
void setCurrentNodeID (const QString &nodeID)
void setMRMLVolumePropertyNode (vtkMRMLNode *node)
void updatePresetSliderRange ()
- Public Slots inherited from qSlicerWidget
void setMRMLScene (vtkMRMLScene *scene) override


void currentNodeChanged (vtkMRMLNode *node)
void currentNodeIDChanged (const QString &id)
void presetOffsetChanged (double xOffset, double yOffset, bool dontMoveFirstAndLast)
- Signals inherited from qSlicerWidget
void mrmlSceneChanged (vtkMRMLScene *)

Public Member Functions

Q_INVOKABLE vtkMRMLNodecurrentNode () const
Q_INVOKABLE QString currentNodeID () const
Q_INVOKABLE vtkMRMLVolumePropertyNodemrmlVolumePropertyNode () const
 qSlicerVolumeRenderingPresetComboBox (QWidget *parent=nullptr)
void setShowIcons (bool show)
bool showIcons () const
 ~qSlicerVolumeRenderingPresetComboBox () override
- Public Member Functions inherited from qSlicerWidget
vtkSlicerApplicationLogicappLogic () const
vtkMRMLAbstractLogicmoduleLogic (const QString &moduleName) const
 qSlicerWidget (QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
 ~qSlicerWidget () override
- Public Member Functions inherited from qSlicerObject
vtkMRMLScenemrmlScene () const
 Return a pointer on the MRML scene. More...
 qSlicerObject ()
virtual void setMRMLScene (vtkMRMLScene *)
 Set the current MRML scene to the widget. More...
virtual ~qSlicerObject ()

Protected Slots

void endInteraction ()
void interaction ()
void offsetPreset (double newPosition)
void resetOffset ()
void startInteraction ()

Protected Attributes

QScopedPointer< qSlicerVolumeRenderingPresetComboBoxPrivate > d_ptr
- Protected Attributes inherited from qSlicerWidget
QScopedPointer< qSlicerWidgetPrivate > d_ptr
- Protected Attributes inherited from qSlicerObject
QScopedPointer< qSlicerObjectPrivate > d_ptr

Detailed Description

Definition at line 35 of file qSlicerVolumeRenderingPresetComboBox.h.

Member Typedef Documentation

◆ Superclass


Definition at line 43 of file qSlicerVolumeRenderingPresetComboBox.h.

Property Documentation

◆ showIcons

bool qSlicerVolumeRenderingPresetComboBox::showIcons

Definition at line 39 of file qSlicerVolumeRenderingPresetComboBox.h.

Constructor & Destructor Documentation

◆ qSlicerVolumeRenderingPresetComboBox()

qSlicerVolumeRenderingPresetComboBox::qSlicerVolumeRenderingPresetComboBox ( QWidget *  parent = nullptr)

◆ ~qSlicerVolumeRenderingPresetComboBox()

qSlicerVolumeRenderingPresetComboBox::~qSlicerVolumeRenderingPresetComboBox ( )

Member Function Documentation

◆ applyPreset

void qSlicerVolumeRenderingPresetComboBox::applyPreset ( vtkMRMLNode volumePropertyNode)

◆ currentNode()

Q_INVOKABLE vtkMRMLNode* qSlicerVolumeRenderingPresetComboBox::currentNode ( ) const

Get selected preset node in the combobox. Note: This node is not in the main MRML scene, but from the private presets scene

◆ currentNodeChanged

void qSlicerVolumeRenderingPresetComboBox::currentNodeChanged ( vtkMRMLNode node)

◆ currentNodeID()

Q_INVOKABLE QString qSlicerVolumeRenderingPresetComboBox::currentNodeID ( ) const

Return the currently selected node id . "" if no node is selected Utility function that is based on currentNode

◆ currentNodeIDChanged

void qSlicerVolumeRenderingPresetComboBox::currentNodeIDChanged ( const QString &  id)

◆ endInteraction

void qSlicerVolumeRenderingPresetComboBox::endInteraction ( )

◆ interaction

void qSlicerVolumeRenderingPresetComboBox::interaction ( )

◆ mrmlVolumePropertyNode()

Q_INVOKABLE vtkMRMLVolumePropertyNode* qSlicerVolumeRenderingPresetComboBox::mrmlVolumePropertyNode ( ) const

Get volume property node controlling volume rendering transfer functions. Its content mirrors the currently selected preset node in the combobox.

◆ offsetPreset

void qSlicerVolumeRenderingPresetComboBox::offsetPreset ( double  newPosition)

◆ presetOffsetChanged

void qSlicerVolumeRenderingPresetComboBox::presetOffsetChanged ( double  xOffset,
double  yOffset,
bool  dontMoveFirstAndLast 

Signal notifying about offset change. Handled by

See also
qMRMLVolumePropertyNodeWidget or
ctkVTKVolumePropertyWidget by moving all control points.

◆ resetOffset

void qSlicerVolumeRenderingPresetComboBox::resetOffset ( )

◆ setCurrentNode

void qSlicerVolumeRenderingPresetComboBox::setCurrentNode ( vtkMRMLNode node)

Set selected preset node in the combobox. Triggers update of the volume property node.

◆ setCurrentNodeID

void qSlicerVolumeRenderingPresetComboBox::setCurrentNodeID ( const QString &  nodeID)

Select the node to be current. If nodeID is invalid (or can't be found in the scene), the current node becomes 0.

◆ setMRMLVolumePropertyNode

void qSlicerVolumeRenderingPresetComboBox::setMRMLVolumePropertyNode ( vtkMRMLNode node)

Set volume property node controlling volume rendering transfer functions. Its content mirrors the currently selected preset node in the combobox.

◆ setShowIcons()

void qSlicerVolumeRenderingPresetComboBox::setShowIcons ( bool  show)

◆ showIcons()

bool qSlicerVolumeRenderingPresetComboBox::showIcons ( ) const

◆ startInteraction

void qSlicerVolumeRenderingPresetComboBox::startInteraction ( )

◆ updatePresetSliderRange

void qSlicerVolumeRenderingPresetComboBox::updatePresetSliderRange ( )

Member Data Documentation

◆ d_ptr

QScopedPointer<qSlicerVolumeRenderingPresetComboBoxPrivate> qSlicerVolumeRenderingPresetComboBox::d_ptr

Definition at line 92 of file qSlicerVolumeRenderingPresetComboBox.h.

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