Quantum Phenomena Explorer 7.9.8
Interactive quantum-phenomena Explorer Tutor — source documentation
Loading...
Searching...
No Matches
quantumkleinheightscanplotwidget.h
Go to the documentation of this file.
1/**
2 * @file quantumkleinheightscanplotwidget.h
3 * @brief Declares the quantumkleinheightscanplotwidget visualization component used by QPE.
4 * @ingroup qpe_graphics
5 *
6 * Source: @c graphics/renderer/quantumkleinheightscanplotwidget.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
14#include <QWidget>
16
17/**
18 * @brief Qt visualization component for Quantum Klein Height Scan Plot Widget.
19 *
20 * The class presents computed state to the user and does not alter the propagated physical state.
21 */
23{
24public:
25 /**
26 * @brief Performs quantum klein height scan plot widget.
27 * @param parent Optional Qt parent object/widget.
28 */
29 explicit QuantumKleinHeightScanPlotWidget(QWidget *parent = nullptr);
30 /**
31 * @brief Sets data.
32 * @param scan The scan value used by the operation.
33 * @param currentBarrierHeight The current barrier height value used by the operation.
34 * @param packetTransmission The packet transmission value used by the operation.
35 */
37 double currentBarrierHeight,
38 double packetTransmission = -1.0);
39 /**
40 * @brief Performs clear.
41 */
42 void clear();
43 /**
44 * @brief Performs minimum size hint.
45 */
46 QSize minimumSizeHint() const override;
47
48protected:
49 /**
50 * @brief Paints event.
51 * @param event Qt event being handled.
52 */
53 void paintEvent(QPaintEvent *event) override;
54
55private:
58 double packetTransmission_ = -1.0;
59};
Qt visualization component for Quantum Klein Height Scan Plot Widget.
void setData(const qpe::QuantumKleinHeightScan2DResult &scan, double currentBarrierHeight, double packetTransmission=-1.0)
Sets data.
QSize minimumSizeHint() const override
Performs minimum size hint.
void paintEvent(QPaintEvent *event) override
Paints event.
qpe::QuantumKleinHeightScan2DResult scan_
QuantumKleinHeightScanPlotWidget(QWidget *parent=nullptr)
Performs quantum klein height scan plot widget.
Declares the quantumkleinheightscan2d physics/numerical component used by QPE experiments.
Data record containing Quantum Klein Height Scan2D Result.