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
14
#include "
core/quantum/quantumtalbot2d.h
"
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
*/
23
class
QuantumTalbotPlotWidget
:
public
QWidget
24
{
25
public
:
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
51
protected
:
52
/**
53
* @brief Paints event.
54
* @param event Qt event being handled.
55
*/
56
void
paintEvent
(QPaintEvent *event)
override
;
57
58
private
:
59
const
qpe::QuantumTalbotHistory2D
*
history_
=
nullptr
;
60
double
mass_
= 1.0;
61
double
hbar_
= 1.0;
62
};
QuantumTalbotPlotWidget
Qt visualization component for Quantum Talbot Plot Widget.
Definition
quantumtalbotplotwidget.h:24
QuantumTalbotPlotWidget::mass_
double mass_
Definition
quantumtalbotplotwidget.h:60
QuantumTalbotPlotWidget::paintEvent
void paintEvent(QPaintEvent *event) override
Paints event.
Definition
quantumtalbotplotwidget.cpp:78
QuantumTalbotPlotWidget::history_
const qpe::QuantumTalbotHistory2D * history_
Definition
quantumtalbotplotwidget.h:59
QuantumTalbotPlotWidget::QuantumTalbotPlotWidget
QuantumTalbotPlotWidget(QWidget *parent=nullptr)
Performs quantum talbot plot widget.
Definition
quantumtalbotplotwidget.cpp:50
QuantumTalbotPlotWidget::hbar_
double hbar_
Definition
quantumtalbotplotwidget.h:61
QuantumTalbotPlotWidget::minimumSizeHint
QSize minimumSizeHint() const override
Performs minimum size hint.
Definition
quantumtalbotplotwidget.cpp:73
QuantumTalbotPlotWidget::clear
void clear()
Performs clear.
Definition
quantumtalbotplotwidget.cpp:67
QuantumTalbotPlotWidget::setData
void setData(const qpe::QuantumTalbotHistory2D &history, double mass, double hbar)
Sets data.
Definition
quantumtalbotplotwidget.cpp:57
qpe::QuantumTalbotHistory2D
Implements the Quantum Talbot History2D component.
Definition
quantumtalbot2d.h:132
quantumtalbot2d.h
Declares the quantumtalbot2d physics/numerical component used by QPE experiments.
graphics
renderer
quantumtalbotplotwidget.h
Generated by
1.12.0