Quantum Phenomena Explorer 7.9.8
Interactive quantum-phenomena Explorer Tutor — source documentation
Loading...
Searching...
No Matches
quantumvortexplotwidget.h
Go to the documentation of this file.
1/**
2 * @file quantumvortexplotwidget.h
3 * @brief Declares the quantumvortexplotwidget visualization component used by QPE.
4 * @ingroup qpe_graphics
5 *
6 * Source: @c graphics/renderer/quantumvortexplotwidget.h. This file is part of Quantum Phenomena Explorer (QPE),
7 * maintained by Officina Turini. See LICENSE_IT.txt / LICENSE.txt for the
8 * QPE freeware source-available terms and THIRD_PARTY_NOTICES.txt for
9 * third-party components.
10 */
11
12#pragma once
13
15
16#include <QWidget>
17
18class QPaintEvent;
19
20/**
21 * @brief Qt visualization component for Quantum Vortex Plot Widget.
22 *
23 * The class presents computed state to the user and does not alter the propagated physical state.
24 */
25class QuantumVortexPlotWidget final : public QWidget
26{
27public:
28 /**
29 * @brief Performs quantum vortex plot widget.
30 * @param parent Optional Qt parent object/widget.
31 */
32 explicit QuantumVortexPlotWidget(QWidget *parent = nullptr);
33
34 /**
35 * @brief Sets data.
36 * @param history The history value used by the operation.
37 * @param mass The mass value used by the operation.
38 * @param hbar The hbar value used by the operation.
39 */
40 void setData(const qpe::QuantumVortexHistory2D &history,
41 double mass,
42 double hbar);
43 /**
44 * @brief Performs clear.
45 */
46 void clear();
47
48 /**
49 * @brief Performs minimum size hint.
50 */
51 QSize minimumSizeHint() const override;
52
53protected:
54 /**
55 * @brief Paints event.
56 * @param event Qt event being handled.
57 */
58 void paintEvent(QPaintEvent *event) override;
59
60private:
62 double mass_ = 1.0;
63 double hbar_ = 1.0;
64};
Qt visualization component for Quantum Vortex Plot Widget.
QSize minimumSizeHint() const override
Performs minimum size hint.
const qpe::QuantumVortexHistory2D * history_
void paintEvent(QPaintEvent *event) override
Paints event.
QuantumVortexPlotWidget(QWidget *parent=nullptr)
Performs quantum vortex plot widget.
void setData(const qpe::QuantumVortexHistory2D &history, double mass, double hbar)
Sets data.
Implements the Quantum Vortex History2D component.
Declares the quantumvortex2d physics/numerical component used by QPE experiments.