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