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

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

Inheritance diagram for qMRMLVolumeThresholdWidget:
Collaboration diagram for qMRMLVolumeThresholdWidget:

Public Types

enum  ControlMode { Auto = 0 , Manual = 1 , Off =2 }
 
typedef qMRMLVolumeWidget Superclass
 Constructors.
 
- Public Types inherited from qMRMLVolumeWidget
typedef QWidget Superclass
 Constructors.
 

Properties

int autoThreshold
 
double lowerThreshold
 
double lowerThresholdBound
 
double upperThreshold
 
double upperThresholdBound
 

Public Slots

void setAutoThreshold (int autoThreshold)
 Set Auto/Manual mode.
 
void setLowerThreshold (double lowerThreshold)
 Set lowerThreshold.
 
void setLowerThresholdBound (double lowerThresholdBound)
 Set lowerThreshold.
 
void setThreshold (double lowerThreshold, double upperThreshold)
 Set lowerThreshold/upperThreshold in once.
 
void setThresholdBounds (double min, double max)
 Set sliders bounds.
 
void setUpperThreshold (double upperThreshold)
 Set upperThreshold.
 
void setUpperThresholdBound (double upperThresholdBound)
 Set upperThreshold.
 
- Public Slots inherited from qMRMLVolumeWidget
void setMRMLVolumeNode (vtkMRMLNode *node)
 
void setMRMLVolumeNode (vtkMRMLScalarVolumeNode *displayNode)
 Set the volume to observe.
 

Signals

void autoThresholdValueChanged (int value)
 Signal sent if the auto/manual value is updated.
 
void thresholdValuesChanged (double lowerThreshold, double upperThreshold)
 Signal sent if the lowerThreshold/upperThreshold value is updated.
 

Public Member Functions

ControlMode autoThreshold () const
 
bool isOff () const
 Is the thresholding activated.
 
double lowerThreshold () const
 Get lowerThreshold.
 
double lowerThresholdBound () const
 Get lower threshold bound.
 
 qMRMLVolumeThresholdWidget (QWidget *parent=nullptr)
 
void setAutoThreshold (ControlMode autoWindowLevel)
 
double upperThreshold () const
 Get upperThreshold.
 
double upperThresholdBound () const
 Get upper threshold bound.
 
 ~qMRMLVolumeThresholdWidget () override
 
- Public Member Functions inherited from qMRMLVolumeWidget
Q_INVOKABLE vtkMRMLScalarVolumeNodemrmlVolumeNode () const
 Return the current MRML node of interest.
 
 qMRMLVolumeWidget (QWidget *parentWidget=nullptr)
 
 ~qMRMLVolumeWidget () override
 

Protected Member Functions

void setMaximum (double max)
 
void setMinimum (double min)
 Set sliders range.
 
void updateWidgetFromMRMLDisplayNode () override
 Update the widget from volume display node properties.
 
- Protected Member Functions inherited from qMRMLVolumeWidget
vtkMRMLScalarVolumeDisplayNodemrmlDisplayNode () const
 Return the volume display node.
 
 qMRMLVolumeWidget (qMRMLVolumeWidgetPrivate *ptr, QWidget *parentWidget=nullptr)
 

Additional Inherited Members

- Protected Slots inherited from qMRMLVolumeWidget
virtual void updateWidgetFromMRMLVolumeNode ()
 
- Protected Attributes inherited from qMRMLVolumeWidget
QScopedPointer< qMRMLVolumeWidgetPrivate > d_ptr
 

Detailed Description

Definition at line 25 of file qMRMLVolumeThresholdWidget.h.

Member Typedef Documentation

◆ Superclass

Member Enumeration Documentation

◆ ControlMode

Enumerator
Auto 
Manual 
Off 

Definition at line 42 of file qMRMLVolumeThresholdWidget.h.

Property Documentation

◆ autoThreshold

int qMRMLVolumeThresholdWidget::autoThreshold
readwrite

Definition at line 29 of file qMRMLVolumeThresholdWidget.h.

◆ lowerThreshold

double qMRMLVolumeThresholdWidget::lowerThreshold
readwrite

Definition at line 30 of file qMRMLVolumeThresholdWidget.h.

◆ lowerThresholdBound

double qMRMLVolumeThresholdWidget::lowerThresholdBound
readwrite

Definition at line 32 of file qMRMLVolumeThresholdWidget.h.

◆ upperThreshold

double qMRMLVolumeThresholdWidget::upperThreshold
readwrite

Definition at line 31 of file qMRMLVolumeThresholdWidget.h.

◆ upperThresholdBound

double qMRMLVolumeThresholdWidget::upperThresholdBound
readwrite

Definition at line 33 of file qMRMLVolumeThresholdWidget.h.

Constructor & Destructor Documentation

◆ qMRMLVolumeThresholdWidget()

qMRMLVolumeThresholdWidget::qMRMLVolumeThresholdWidget ( QWidget * parent = nullptr)
explicit

◆ ~qMRMLVolumeThresholdWidget()

qMRMLVolumeThresholdWidget::~qMRMLVolumeThresholdWidget ( )
override

Member Function Documentation

◆ autoThreshold()

ControlMode qMRMLVolumeThresholdWidget::autoThreshold ( ) const

◆ autoThresholdValueChanged

void qMRMLVolumeThresholdWidget::autoThresholdValueChanged ( int value)
signal

Signal sent if the auto/manual value is updated.

◆ isOff()

bool qMRMLVolumeThresholdWidget::isOff ( ) const

Is the thresholding activated.

◆ lowerThreshold()

double qMRMLVolumeThresholdWidget::lowerThreshold ( ) const

Get lowerThreshold.

◆ lowerThresholdBound()

double qMRMLVolumeThresholdWidget::lowerThresholdBound ( ) const

Get lower threshold bound.

◆ setAutoThreshold() [1/2]

void qMRMLVolumeThresholdWidget::setAutoThreshold ( ControlMode autoWindowLevel)

◆ setAutoThreshold [2/2]

void qMRMLVolumeThresholdWidget::setAutoThreshold ( int autoThreshold)
slot

Set Auto/Manual mode.

◆ setLowerThreshold

void qMRMLVolumeThresholdWidget::setLowerThreshold ( double lowerThreshold)
slot

Set lowerThreshold.

◆ setLowerThresholdBound

void qMRMLVolumeThresholdWidget::setLowerThresholdBound ( double lowerThresholdBound)
slot

Set lowerThreshold.

◆ setMaximum()

void qMRMLVolumeThresholdWidget::setMaximum ( double max)
protected

◆ setMinimum()

void qMRMLVolumeThresholdWidget::setMinimum ( double min)
protected

Set sliders range.

◆ setThreshold

void qMRMLVolumeThresholdWidget::setThreshold ( double lowerThreshold,
double upperThreshold )
slot

Set lowerThreshold/upperThreshold in once.

◆ setThresholdBounds

void qMRMLVolumeThresholdWidget::setThresholdBounds ( double min,
double max )
slot

Set sliders bounds.

◆ setUpperThreshold

void qMRMLVolumeThresholdWidget::setUpperThreshold ( double upperThreshold)
slot

Set upperThreshold.

◆ setUpperThresholdBound

void qMRMLVolumeThresholdWidget::setUpperThresholdBound ( double upperThresholdBound)
slot

Set upperThreshold.

◆ thresholdValuesChanged

void qMRMLVolumeThresholdWidget::thresholdValuesChanged ( double lowerThreshold,
double upperThreshold )
signal

Signal sent if the lowerThreshold/upperThreshold value is updated.

◆ updateWidgetFromMRMLDisplayNode()

void qMRMLVolumeThresholdWidget::updateWidgetFromMRMLDisplayNode ( )
overrideprotectedvirtual

Update the widget from volume display node properties.

Reimplemented from qMRMLVolumeWidget.

◆ upperThreshold()

double qMRMLVolumeThresholdWidget::upperThreshold ( ) const

Get upperThreshold.

◆ upperThresholdBound()

double qMRMLVolumeThresholdWidget::upperThresholdBound ( ) const

Get upper threshold bound.


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