|
Quantum Phenomena Explorer 7.9.8
Interactive quantum-phenomena Explorer Tutor — source documentation
|
Qt visualization component for Quantum Vortex Plot Widget. More...
#include <quantumvortexplotwidget.h>
Public Member Functions | |
| QuantumVortexPlotWidget (QWidget *parent=nullptr) | |
| Performs quantum vortex plot widget. | |
| void | setData (const qpe::QuantumVortexHistory2D &history, double mass, double hbar) |
| Sets data. | |
| void | clear () |
| Performs clear. | |
| QSize | minimumSizeHint () const override |
| Performs minimum size hint. | |
Protected Member Functions | |
| void | paintEvent (QPaintEvent *event) override |
| Paints event. | |
Private Attributes | |
| const qpe::QuantumVortexHistory2D * | history_ = nullptr |
| double | mass_ = 1.0 |
| double | hbar_ = 1.0 |
Qt visualization component for Quantum Vortex Plot Widget.
The class presents computed state to the user and does not alter the propagated physical state.
Definition at line 25 of file quantumvortexplotwidget.h.
|
explicit |
Performs quantum vortex plot widget.
| parent | Optional Qt parent object/widget. |
Definition at line 36 of file quantumvortexplotwidget.cpp.
| void QuantumVortexPlotWidget::clear | ( | ) |
|
override |
Performs minimum size hint.
Definition at line 59 of file quantumvortexplotwidget.cpp.
|
overrideprotected |
Paints event.
| event | Qt event being handled. |
Definition at line 64 of file quantumvortexplotwidget.cpp.
References qpe::QuantumVortexTrap2D::centerX, qpe::QuantumVortexTrap2D::centerY, qpe::QuantumVortexInitialState2DConfig::charge, qpe::QuantumVortexHistory2D::config(), qpe::QuantumVortexHistory2D::configured(), qpe::QuantumVortexInitialState2DConfig::coreX, qpe::QuantumVortexInitialState2DConfig::coreY, qpe::QuantumVortexHistory2D::empty(), hbar_, history_, mass_, qpe::QuantumVortexHistory2D::samples(), qpe::QuantumVortexHistory2D::trap(), qpe::QuantumVortex2D::trapAngularFrequency(), and qpe::QuantumVortex2D::trapPeriod().
| void QuantumVortexPlotWidget::setData | ( | const qpe::QuantumVortexHistory2D & | history, |
| double | mass, | ||
| double | hbar ) |
Sets data.
| history | The history value used by the operation. |
| mass | The mass value used by the operation. |
| hbar | The hbar value used by the operation. |
Definition at line 43 of file quantumvortexplotwidget.cpp.
|
private |
Definition at line 63 of file quantumvortexplotwidget.h.
Referenced by paintEvent(), and setData().
|
private |
Definition at line 61 of file quantumvortexplotwidget.h.
Referenced by clear(), paintEvent(), and setData().
|
private |
Definition at line 62 of file quantumvortexplotwidget.h.
Referenced by paintEvent(), and setData().