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