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