A parallel C++ Library for Simulations in the Heisenberg Model
window.h
Go to the documentation of this file.
1 #ifndef WINDOW_H
2 #define WINDOW_H
3 
4 #include <QWidget>
5 #include <QTimer>
6 #include <string>
7 #include <QLineEdit>
8 #include <QLabel>
9 #include <QGridLayout>
10 #include <iostream>
11 #include <QPainter>
12 
13 #include "simulation.h"
14 
15 class Window : public QWidget
16 {
17  Q_OBJECT
18 
19  public:
20  Window(gridDim dim, float3 B, float J, float beta,
21  simulationType simulationType, bool heat, QWidget *parent = 0);
22 
23  void paintEvent(QPaintEvent *);
24 
25  private:
27  std::unique_ptr<Grid<short int>> grid;
28 };
29 
30 #endif
Window
Definition: ising_window.h:24
Window::Window
Window(gridDim dim, float3 B, float J, float beta, simulationType simulationType, bool heat, QWidget *parent=0)
Window::paintEvent
void paintEvent(QPaintEvent *)
Window::grid
std::unique_ptr< Grid< short int > > grid
Definition: window.h:27
Window::models
Models models
Definition: window.h:26
HB::Models
std::vector< std::unique_ptr< HB::Model > > Models
Definition: simulation.h:270
simulation.h