Quantum Phenomena Explorer 7.9.8
Interactive quantum-phenomena Explorer Tutor — source documentation
Loading...
Searching...
No Matches
quantumtalbotplotwidget.h
Go to the documentation of this file.
1/**
2 * @file quantumtalbotplotwidget.h
3 * @brief Declares the quantumtalbotplotwidget visualization component used by QPE.
4 * @ingroup qpe_graphics
5 *
6 * Source: @c graphics/renderer/quantumtalbotplotwidget.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
18/**
19 * @brief Qt visualization component for Quantum Talbot Plot Widget.
20 *
21 * The class presents computed state to the user and does not alter the propagated physical state.
22 */
23class QuantumTalbotPlotWidget : public QWidget
24{
25public:
26 /**
27 * @brief Performs quantum talbot plot widget.
28 * @param parent Optional Qt parent object/widget.
29 */
30 explicit QuantumTalbotPlotWidget(QWidget *parent = nullptr);
31
32 /**
33 * @brief Sets data.
34 * @param history The history value used by the operation.
35 * @param mass The mass value used by the operation.
36 * @param hbar The hbar value used by the operation.
37 */
38 void setData(const qpe::QuantumTalbotHistory2D &history,
39 double mass,
40 double hbar);
41 /**
42 * @brief Performs clear.
43 */
44 void clear();
45
46 /**
47 * @brief Performs minimum size hint.
48 */
49 QSize minimumSizeHint() const override;
50
51protected:
52 /**
53 * @brief Paints event.
54 * @param event Qt event being handled.
55 */
56 void paintEvent(QPaintEvent *event) override;
57
58private:
60 double mass_ = 1.0;
61 double hbar_ = 1.0;
62};
Qt visualization component for Quantum Talbot Plot Widget.
void paintEvent(QPaintEvent *event) override
Paints event.
const qpe::QuantumTalbotHistory2D * history_
QuantumTalbotPlotWidget(QWidget *parent=nullptr)
Performs quantum talbot plot widget.
QSize minimumSizeHint() const override
Performs minimum size hint.
void setData(const qpe::QuantumTalbotHistory2D &history, double mass, double hbar)
Sets data.
Implements the Quantum Talbot History2D component.
Declares the quantumtalbot2d physics/numerical component used by QPE experiments.