|
Quantum Phenomena Explorer 7.9.8
Interactive quantum-phenomena Explorer Tutor — source documentation
|
Qt visualization component for Quantum Resonance Plot Widget. More...
#include <quantumresonanceplotwidget.h>
Public Member Functions | |
| QuantumResonancePlotWidget (QWidget *parent=nullptr) | |
| Performs quantum resonance plot widget. | |
| void | setSamples (const std::vector< qpe::ResonanceSweepSample2D > &samples) |
| Sets samples. | |
| void | clearSamples () |
| Clears samples. | |
| void | setAxisLabel (const QString &label) |
| Sets axis label. | |
| void | setCurrentMarker (double parameter, double theoreticalTransmission) |
| Sets current marker. | |
| void | setNumericalTransmission (bool valid, double transmission) |
| Sets numerical transmission. | |
| QSize | minimumSizeHint () const override |
| Performs minimum size hint. | |
Protected Member Functions | |
| void | paintEvent (QPaintEvent *event) override |
| Paints event. | |
Private Attributes | |
| std::vector< qpe::ResonanceSweepSample2D > | samples_ |
| QString | axisLabel_ = QStringLiteral("energy Ex") |
| Performs q string literal. | |
| double | markerParameter_ = 0.0 |
| double | markerTheoryTransmission_ = 0.0 |
| bool | markerValid_ = false |
| double | numericalTransmission_ = 0.0 |
| bool | numericalValid_ = false |
Qt visualization component for Quantum Resonance Plot Widget.
The class presents computed state to the user and does not alter the propagated physical state.
Definition at line 26 of file quantumresonanceplotwidget.h.
|
explicit |
Performs quantum resonance plot widget.
| parent | Optional Qt parent object/widget. |
Definition at line 21 of file quantumresonanceplotwidget.cpp.
| void QuantumResonancePlotWidget::clearSamples | ( | ) |
Clears samples.
Definition at line 35 of file quantumresonanceplotwidget.cpp.
References markerValid_, numericalValid_, and samples_.
|
override |
Performs minimum size hint.
Definition at line 67 of file quantumresonanceplotwidget.cpp.
|
overrideprotected |
Paints event.
| event | Qt event being handled. |
Definition at line 72 of file quantumresonanceplotwidget.cpp.
References axisLabel_, markerParameter_, markerTheoryTransmission_, markerValid_, numericalTransmission_, numericalValid_, and samples_.
| void QuantumResonancePlotWidget::setAxisLabel | ( | const QString & | label | ) |
Sets axis label.
| label | The label value used by the operation. |
Definition at line 43 of file quantumresonanceplotwidget.cpp.
References axisLabel_.
| void QuantumResonancePlotWidget::setCurrentMarker | ( | double | parameter, |
| double | theoreticalTransmission ) |
Sets current marker.
| parameter | The parameter value used by the operation. |
| theoreticalTransmission | The theoretical transmission value used by the operation. |
Definition at line 49 of file quantumresonanceplotwidget.cpp.
References markerParameter_, markerTheoryTransmission_, and markerValid_.
| void QuantumResonancePlotWidget::setNumericalTransmission | ( | bool | valid, |
| double | transmission ) |
Sets numerical transmission.
| valid | Stable identifier of the requested object. |
| transmission | The transmission value used by the operation. |
Definition at line 59 of file quantumresonanceplotwidget.cpp.
References numericalTransmission_, and numericalValid_.
| void QuantumResonancePlotWidget::setSamples | ( | const std::vector< qpe::ResonanceSweepSample2D > & | samples | ) |
Sets samples.
| samples | The samples value used by the operation. |
Definition at line 28 of file quantumresonanceplotwidget.cpp.
References samples_.
|
private |
Performs q string literal.
| Ex | The ex value used by the operation. |
Definition at line 80 of file quantumresonanceplotwidget.h.
Referenced by paintEvent(), and setAxisLabel().
|
private |
Definition at line 81 of file quantumresonanceplotwidget.h.
Referenced by paintEvent(), and setCurrentMarker().
|
private |
Definition at line 82 of file quantumresonanceplotwidget.h.
Referenced by paintEvent(), and setCurrentMarker().
|
private |
Definition at line 83 of file quantumresonanceplotwidget.h.
Referenced by clearSamples(), paintEvent(), and setCurrentMarker().
|
private |
Definition at line 84 of file quantumresonanceplotwidget.h.
Referenced by paintEvent(), and setNumericalTransmission().
|
private |
Definition at line 85 of file quantumresonanceplotwidget.h.
Referenced by clearSamples(), paintEvent(), and setNumericalTransmission().
|
private |
Definition at line 75 of file quantumresonanceplotwidget.h.
Referenced by clearSamples(), paintEvent(), and setSamples().