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

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

Inheritance diagram for qMRMLRangeWidget:
Inheritance graph
[legend]
Collaboration diagram for qMRMLRangeWidget:
Collaboration graph
[legend]

Properties

QPalette maximumHandlePalette
 
QPalette minimumHandlePalette
 
vtkMRMLScene mrmlScene
 
QString quantity
 

Public Slots

void setMaximumHandlePalette (const QPalette &palette)
 Set the palette of the minimum handle. More...
 
void setMinimumHandlePalette (const QPalette &palette)
 Set the palette of the minimum handle. More...
 
virtual void setMRMLScene (vtkMRMLScene *scene)
 
void setQuantity (const QString &baseName)
 

Public Member Functions

QPalette maximumHandlePalette () const
 
QPalette minimumHandlePalette () const
 
vtkMRMLScenemrmlScene () const
 
 qMRMLRangeWidget (QWidget *parent=nullptr)
 
QString quantity () const
 
void setSymmetricMoves (bool symmetry) override
 

Protected Slots

void updateRange ()
 
void updateSpinBoxRange (double min, double max)
 
void updateSymmetricMoves (bool symmetric)
 

Protected Attributes

qMRMLSpinBoxMaxSpinBox
 
qMRMLSpinBoxMinSpinBox
 
QAction * SymmetricAction
 

Detailed Description

qMRMLRangeWidget is a wrapper around a ctkRangeWidget It adds QSpinBoxes (in a menu) for controlling the range of the values and supports for the units.

Definition at line 39 of file qMRMLRangeWidget.h.

Property Documentation

◆ maximumHandlePalette

QPalette qMRMLRangeWidget::maximumHandlePalette
readwrite

Definition at line 43 of file qMRMLRangeWidget.h.

◆ minimumHandlePalette

QPalette qMRMLRangeWidget::minimumHandlePalette
readwrite

Definition at line 42 of file qMRMLRangeWidget.h.

◆ mrmlScene

vtkMRMLScene qMRMLRangeWidget::mrmlScene
readwrite

Definition at line 44 of file qMRMLRangeWidget.h.

◆ quantity

QString qMRMLRangeWidget::quantity
readwrite

Definition at line 45 of file qMRMLRangeWidget.h.

Constructor & Destructor Documentation

◆ qMRMLRangeWidget()

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

Constructor If

  • parent is null, qMRMLRangeWidget will be a top-level widget
    Note
    The
  • parent can be set later using QWidget::setParent()

Member Function Documentation

◆ maximumHandlePalette()

QPalette qMRMLRangeWidget::maximumHandlePalette ( ) const

◆ minimumHandlePalette()

QPalette qMRMLRangeWidget::minimumHandlePalette ( ) const

◆ mrmlScene()

vtkMRMLScene* qMRMLRangeWidget::mrmlScene ( ) const

◆ quantity()

QString qMRMLRangeWidget::quantity ( ) const

◆ setMaximumHandlePalette

void qMRMLRangeWidget::setMaximumHandlePalette ( const QPalette &  palette)
slot

Set the palette of the minimum handle.

◆ setMinimumHandlePalette

void qMRMLRangeWidget::setMinimumHandlePalette ( const QPalette &  palette)
slot

Set the palette of the minimum handle.

◆ setMRMLScene

virtual void qMRMLRangeWidget::setMRMLScene ( vtkMRMLScene scene)
virtualslot

Set the scene the spinboxes listens to.

See also
mrmlScene()

◆ setQuantity

void qMRMLRangeWidget::setQuantity ( const QString &  baseName)
slot

Set the quantity the widget should look for.

See also
quantity()

◆ setSymmetricMoves()

void qMRMLRangeWidget::setSymmetricMoves ( bool  symmetry)
override

When symmetricMoves is true, moving a handle will move the other handle symmetrically, otherwise the handles are independent. False by default.

◆ updateRange

void qMRMLRangeWidget::updateRange ( )
protectedslot

◆ updateSpinBoxRange

void qMRMLRangeWidget::updateSpinBoxRange ( double  min,
double  max 
)
protectedslot

◆ updateSymmetricMoves

void qMRMLRangeWidget::updateSymmetricMoves ( bool  symmetric)
protectedslot

Member Data Documentation

◆ MaxSpinBox

qMRMLSpinBox* qMRMLRangeWidget::MaxSpinBox
protected

Definition at line 85 of file qMRMLRangeWidget.h.

◆ MinSpinBox

qMRMLSpinBox* qMRMLRangeWidget::MinSpinBox
protected

Definition at line 84 of file qMRMLRangeWidget.h.

◆ SymmetricAction

QAction* qMRMLRangeWidget::SymmetricAction
protected

Definition at line 86 of file qMRMLRangeWidget.h.


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