#include <Libs/MRML/Widgets/qMRMLTransformSliders.h>
|
QScopedPointer< qMRMLTransformSlidersPrivate > | d_ptr |
|
QScopedPointer< qMRMLWidgetPrivate > | d_ptr |
|
Definition at line 38 of file qMRMLTransformSliders.h.
◆ Superclass
◆ CoordinateReferenceType
Set/Get Coordinate system By default, the selector coordinate system will be set to GLOBAL
Definition at line 66 of file qMRMLTransformSliders.h.
◆ TransformType
Set/Get TypeOfTransform By default, the selector coordinate system will be set to TRANSLATION
Enumerator |
---|
ROTATION | |
TRANSLATION | |
Definition at line 73 of file qMRMLTransformSliders.h.
◆ CoordinateReference
◆ decimals
int qMRMLTransformSliders::decimals |
|
readwrite |
◆ ISLabel
QString qMRMLTransformSliders::ISLabel |
|
readwrite |
◆ LRLabel
QString qMRMLTransformSliders::LRLabel |
|
readwrite |
◆ maximum
double qMRMLTransformSliders::maximum |
|
readwrite |
◆ minimum
double qMRMLTransformSliders::minimum |
|
readwrite |
◆ minMaxVisible
bool qMRMLTransformSliders::minMaxVisible |
|
readwrite |
◆ PALabel
QString qMRMLTransformSliders::PALabel |
|
readwrite |
◆ SingleStep
double qMRMLTransformSliders::SingleStep |
|
readwrite |
◆ Title
QString qMRMLTransformSliders::Title |
|
readwrite |
◆ TypeOfTransform
◆ qMRMLTransformSliders()
qMRMLTransformSliders::qMRMLTransformSliders |
( |
QWidget * |
parent | ) |
|
|
explicit |
◆ ~qMRMLTransformSliders()
qMRMLTransformSliders::~qMRMLTransformSliders |
( |
| ) |
|
|
override |
◆ coordinateReference()
◆ decimals()
int qMRMLTransformSliders::decimals |
( |
| ) |
const |
Return the decimals property value.
- See also
- decimals
◆ decimalsChanged
void qMRMLTransformSliders::decimalsChanged |
( |
int |
newDecimals | ) |
|
|
signal |
Signal sent when the number of decimals has changed.
- See also
- decimals
◆ extractMinMaxTranslationValue()
static QPair<double, double> qMRMLTransformSliders::extractMinMaxTranslationValue |
( |
vtkMatrix4x4 * |
mat, |
|
|
double |
pad = 0 |
|
) |
| |
|
staticprotected |
Extract min/max translation values from the transform matrix. Parameter 'pad' allows to specify (using a value between 0 and 1) which percentage of the found range(max-min) value should be subtracted/added to the min/max value found.
◆ isLabel()
QString qMRMLTransformSliders::isLabel |
( |
| ) |
const |
◆ isMinMaxVisible()
bool qMRMLTransformSliders::isMinMaxVisible |
( |
| ) |
const |
◆ lrLabel()
QString qMRMLTransformSliders::lrLabel |
( |
| ) |
const |
◆ maximum()
double qMRMLTransformSliders::maximum |
( |
| ) |
const |
◆ minimum()
double qMRMLTransformSliders::minimum |
( |
| ) |
const |
◆ mrmlTransformNode()
Return the current MRML node of interest
◆ onMaximumChanged
void qMRMLTransformSliders::onMaximumChanged |
( |
double |
max | ) |
|
|
protectedslot |
◆ onMinimumChanged
void qMRMLTransformSliders::onMinimumChanged |
( |
double |
min | ) |
|
|
protectedslot |
◆ onMRMLTransformNodeModified
void qMRMLTransformSliders::onMRMLTransformNodeModified |
( |
vtkObject * |
caller | ) |
|
|
protectedslot |
Triggered upon MRML node transform modified events
◆ onSliderPositionChanged
void qMRMLTransformSliders::onSliderPositionChanged |
( |
double |
position | ) |
|
|
protectedslot |
◆ paLabel()
QString qMRMLTransformSliders::paLabel |
( |
| ) |
const |
◆ rangeChanged
void qMRMLTransformSliders::rangeChanged |
( |
double |
newMinimum, |
|
|
double |
newMaximum |
|
) |
| |
|
signal |
Signal sent if the minimum or maximum slider's value is updated.
◆ reset
void qMRMLTransformSliders::reset |
( |
| ) |
|
|
slot |
Reset all sliders to their 0 position and value. Note that it can change the transform node values.
◆ resetUnactiveSliders
void qMRMLTransformSliders::resetUnactiveSliders |
( |
| ) |
|
|
slot |
Reset all sliders but the one that is currently active (i.e. the user is changing its value. The reset doesn't fire any event and the node is not modified. If no slider is active, then all sliders are reset.
◆ setCoordinateReference()
◆ setDecimals
void qMRMLTransformSliders::setDecimals |
( |
int |
newDecimals | ) |
|
|
slot |
Set the decimals property value.
- See also
- decimals
◆ setISLabel()
void qMRMLTransformSliders::setISLabel |
( |
const QString & |
label | ) |
|
◆ setLRLabel()
void qMRMLTransformSliders::setLRLabel |
( |
const QString & |
label | ) |
|
◆ setMaximum()
void qMRMLTransformSliders::setMaximum |
( |
double |
max | ) |
|
◆ setMinimum()
void qMRMLTransformSliders::setMinimum |
( |
double |
min | ) |
|
◆ setMinMaxVisible()
void qMRMLTransformSliders::setMinMaxVisible |
( |
bool |
visible | ) |
|
Set the visibility property of the minimum QSpinBox and maximum QSpinBox. Note: If the QSpinBoxes are hidden, you can still can setMinimum() and setMaximum() manually
◆ setMRMLTransformNode [1/2]
Set the MRML node of interest
◆ setMRMLTransformNode [2/2]
void qMRMLTransformSliders::setMRMLTransformNode |
( |
vtkMRMLNode * |
node | ) |
|
|
slot |
◆ setPALabel()
void qMRMLTransformSliders::setPALabel |
( |
const QString & |
label | ) |
|
◆ setRange()
void qMRMLTransformSliders::setRange |
( |
double |
min, |
|
|
double |
max |
|
) |
| |
Utility function that set min/max in once
◆ setSingleStep()
void qMRMLTransformSliders::setSingleStep |
( |
double |
step | ) |
|
◆ setTitle()
void qMRMLTransformSliders::setTitle |
( |
const QString & |
title | ) |
|
Set/Get Title of the group box
◆ setTypeOfTransform()
void qMRMLTransformSliders::setTypeOfTransform |
( |
TransformType |
typeOfTransform | ) |
|
◆ singleStep()
double qMRMLTransformSliders::singleStep |
( |
| ) |
const |
◆ title()
QString qMRMLTransformSliders::title |
( |
| ) |
const |
◆ typeOfTransform()
◆ updateRangeFromTransform()
Extract the min/max values from the matrix and change the slider min/max values accordingly. Needed if the matrix changed externally (python, cli, etc.)
◆ valuesChanged
void qMRMLTransformSliders::valuesChanged |
( |
| ) |
|
|
signal |
Signal sent if at least one of the slider's value is updated
◆ d_ptr
QScopedPointer<qMRMLTransformSlidersPrivate> qMRMLTransformSliders::d_ptr |
|
protected |
The documentation for this class was generated from the following file: