#include <Modules/Loadable/Units/Widgets/qMRMLUnitWidget.h>
|
typedef qMRMLWidget | Superclass |
|
enum | UnitProperty {
None = 0x000,
Preset = 0x001,
Name = 0x002,
Quantity = 0x004,
Precision = 0x008,
Prefix = 0x010,
Suffix = 0x020,
Minimum = 0x040,
Maximum = 0x080,
Coefficient = 0x100,
Offset = 0x200,
All = 0xfff
} |
|
typedef QWidget | Superclass |
|
|
QScopedPointer< qMRMLUnitWidgetPrivate > | d_ptr |
|
QScopedPointer< qMRMLWidgetPrivate > | d_ptr |
|
Definition at line 42 of file qMRMLUnitWidget.h.
◆ Superclass
◆ UnitProperty
Enumerator |
---|
None | |
Preset | |
Name | |
Quantity | |
Precision | |
Prefix | |
Suffix | |
Minimum | |
Maximum | |
Coefficient | |
Offset | |
All | |
Definition at line 119 of file qMRMLUnitWidget.h.
◆ coefficient
double qMRMLUnitWidget::coefficient |
|
readwrite |
◆ displayedProperties
UnitProperties qMRMLUnitWidget::displayedProperties |
|
readwrite |
Set/Get what are the current unit node displayed property by the widget. Hidden properties can still be accessed programatically. By default, all the properties are visible.
- See also
- editableProperties
Definition at line 78 of file qMRMLUnitWidget.h.
◆ editableProperties
UnitProperties qMRMLUnitWidget::editableProperties |
|
readwrite |
This property control which property is editable by the user. All the properties except quantity are editable by default.e
- See also
- displayedProperties
Definition at line 82 of file qMRMLUnitWidget.h.
◆ maximum
double qMRMLUnitWidget::maximum |
|
readwrite |
◆ minimum
double qMRMLUnitWidget::minimum |
|
readwrite |
◆ name
QString qMRMLUnitWidget::name |
|
readwrite |
◆ offset
double qMRMLUnitWidget::offset |
|
readwrite |
◆ precision
int qMRMLUnitWidget::precision |
|
readwrite |
◆ prefix
QString qMRMLUnitWidget::prefix |
|
readwrite |
◆ quantity
QString qMRMLUnitWidget::quantity |
|
readwrite |
◆ suffix
QString qMRMLUnitWidget::suffix |
|
readwrite |
◆ qMRMLUnitWidget()
qMRMLUnitWidget::qMRMLUnitWidget |
( |
QWidget * |
parent = 0 | ) |
|
◆ ~qMRMLUnitWidget()
virtual qMRMLUnitWidget::~qMRMLUnitWidget |
( |
| ) |
|
|
virtual |
◆ coefficient()
double qMRMLUnitWidget::coefficient |
( |
| ) |
const |
◆ coefficientChanged
void qMRMLUnitWidget::coefficientChanged |
( |
double |
| ) |
|
|
signal |
◆ currentNode()
Q_INVOKABLE vtkMRMLNode* qMRMLUnitWidget::currentNode |
( |
| ) |
const |
◆ displayedProperties()
UnitProperties qMRMLUnitWidget::displayedProperties |
( |
| ) |
const |
◆ editableProperties()
UnitProperties qMRMLUnitWidget::editableProperties |
( |
| ) |
const |
◆ maximum()
double qMRMLUnitWidget::maximum |
( |
| ) |
const |
Return the maximum property value.
- See also
- maximum
◆ maximumChanged
void qMRMLUnitWidget::maximumChanged |
( |
double |
| ) |
|
|
signal |
◆ minimum()
double qMRMLUnitWidget::minimum |
( |
| ) |
const |
Return the minimum property value.
- See also
- minimum
◆ minimumChanged
void qMRMLUnitWidget::minimumChanged |
( |
double |
| ) |
|
|
signal |
◆ name()
QString qMRMLUnitWidget::name |
( |
| ) |
const |
Return the name property value.
- See also
- name
◆ nameChanged
void qMRMLUnitWidget::nameChanged |
( |
QString |
| ) |
|
|
signal |
◆ offset()
double qMRMLUnitWidget::offset |
( |
| ) |
const |
Return the offset property value.
- See also
- setOffset
◆ offsetChanged
void qMRMLUnitWidget::offsetChanged |
( |
double |
| ) |
|
|
signal |
◆ precision()
int qMRMLUnitWidget::precision |
( |
| ) |
const |
Return the precision property value.
- See also
- precision
◆ precisionChanged
void qMRMLUnitWidget::precisionChanged |
( |
int |
| ) |
|
|
signal |
◆ prefix()
QString qMRMLUnitWidget::prefix |
( |
| ) |
const |
Return the prefix property value.
- See also
- prefix
◆ prefixChanged
void qMRMLUnitWidget::prefixChanged |
( |
QString |
| ) |
|
|
signal |
◆ quantity()
QString qMRMLUnitWidget::quantity |
( |
| ) |
const |
Return the quantity property value.
- See also
- quantity
◆ quantityChanged
void qMRMLUnitWidget::quantityChanged |
( |
QString |
| ) |
|
|
signal |
◆ setCoefficient
void qMRMLUnitWidget::setCoefficient |
( |
double |
| ) |
|
|
slot |
Set the coefficient property value.
- See also
- coefficient
◆ setCurrentNode
void qMRMLUnitWidget::setCurrentNode |
( |
vtkMRMLNode * |
unitNode | ) |
|
|
slot |
◆ setDisplayedProperties
void qMRMLUnitWidget::setDisplayedProperties |
( |
UnitProperties |
properties | ) |
|
|
slot |
◆ setEditableProperties
void qMRMLUnitWidget::setEditableProperties |
( |
UnitProperties |
properties | ) |
|
|
slot |
◆ setMaximum
void qMRMLUnitWidget::setMaximum |
( |
double |
| ) |
|
|
slot |
Set the maximum property value.
- See also
- maximum
◆ setMinimum
void qMRMLUnitWidget::setMinimum |
( |
double |
| ) |
|
|
slot |
Set the minimum property value.
- See also
- minimum
◆ setMRMLScene()
virtual void qMRMLUnitWidget::setMRMLScene |
( |
vtkMRMLScene * |
unitsLogicScene | ) |
|
|
virtual |
Set the units logic scene for the preset comboxes.
Reimplemented from qMRMLWidget.
◆ setName
void qMRMLUnitWidget::setName |
( |
const QString & |
| ) |
|
|
slot |
Set the name property value.
- See also
- name
◆ setOffset
void qMRMLUnitWidget::setOffset |
( |
double |
| ) |
|
|
slot |
Set the offset property value.
- See also
- offset
◆ setPrecision
void qMRMLUnitWidget::setPrecision |
( |
int |
| ) |
|
|
slot |
Set the precision property value.
- See also
- precision
◆ setPrefix
void qMRMLUnitWidget::setPrefix |
( |
const QString & |
| ) |
|
|
slot |
Set the prefix property value.
- See also
- prefix
◆ setQuantity
void qMRMLUnitWidget::setQuantity |
( |
const QString & |
| ) |
|
|
slot |
Set the quantity property value.
- See also
- quantity
◆ setSuffix
void qMRMLUnitWidget::setSuffix |
( |
const QString & |
| ) |
|
|
slot |
Set the suffix property value.
- See also
- suffix
◆ setUnitFromPreset
void qMRMLUnitWidget::setUnitFromPreset |
( |
vtkMRMLNode * |
presetNode | ) |
|
|
slot |
Apply a preset to the node.
◆ suffix()
QString qMRMLUnitWidget::suffix |
( |
| ) |
const |
Return the suffix property value.
- See also
- suffix
◆ suffixChanged
void qMRMLUnitWidget::suffixChanged |
( |
QString |
| ) |
|
|
signal |
◆ updateWidgetFromNode
void qMRMLUnitWidget::updateWidgetFromNode |
( |
| ) |
|
|
protectedslot |
◆ d_ptr
QScopedPointer<qMRMLUnitWidgetPrivate> qMRMLUnitWidget::d_ptr |
|
protected |
The documentation for this class was generated from the following file: