Quantum Phenomena Explorer 7.9.8
Interactive quantum-phenomena Explorer Tutor — source documentation
Loading...
Searching...
No Matches
quantumbilliardplotwidget.h
Go to the documentation of this file.
1/**
2 * @file quantumbilliardplotwidget.h
3 * @brief Declares the quantumbilliardplotwidget visualization component used by QPE.
4 * @ingroup qpe_graphics
5 *
6 * Source: @c graphics/renderer/quantumbilliardplotwidget.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 Billiard Plot Widget.
22 *
23 * The class presents computed state to the user and does not alter the propagated physical state.
24 */
25class QuantumBilliardPlotWidget final : public QWidget
26{
27public:
28 /**
29 * @brief Performs quantum billiard plot widget.
30 * @param parent Optional Qt parent object/widget.
31 */
32 explicit QuantumBilliardPlotWidget(QWidget *parent = nullptr);
33
34 /**
35 * @brief Sets data.
36 * @param history The history value used by the operation.
37 * @param geometry The geometry value used by the operation.
38 */
39 void setData(const qpe::QuantumBilliardHistory2D &history,
40 const qpe::QuantumBilliardGeometry2D &geometry);
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:
61};
Qt visualization component for Quantum Billiard Plot Widget.
void setData(const qpe::QuantumBilliardHistory2D &history, const qpe::QuantumBilliardGeometry2D &geometry)
Sets data.
QSize minimumSizeHint() const override
Performs minimum size hint.
QuantumBilliardPlotWidget(QWidget *parent=nullptr)
Performs quantum billiard plot widget.
void paintEvent(QPaintEvent *event) override
Paints event.
qpe::QuantumBilliardGeometry2D geometry_
const qpe::QuantumBilliardHistory2D * history_
Implements the Quantum Billiard History2D component.
Declares the quantumbilliards2d physics/numerical component used by QPE experiments.
Data structure used by the Quantum Billiard Geometry2D component.