g4display
Loading...
Searching...
No Matches
g4display.h
Go to the documentation of this file.
1#pragma once
2
3// C++
4#include <memory> // Required for std::unique_ptr
5
6// gemc
7#include "gbase.h" // Provides application options/configuration
8
9// qt
10#include <QtWidgets/QWidget> // Required for QWidget parent parameter
11
12
13
23class G4Display : public GBase<G4Display>, public QWidget {
24
25public:
31 explicit G4Display(const std::shared_ptr<GOptions>& gopt, QWidget *parent = nullptr);
32
33
34 // Disable copy constructor and assignment operator to prevent slicing
35 // and issues with unique_ptr ownership.
36 G4Display(const G4Display&) = delete;
37 G4Display& operator=(const G4Display&) = delete;
38
39
40};
The main widget for controlling Geant4 visualization.
Definition g4display.h:23
G4Display(const std::shared_ptr< GOptions > &gopt, QWidget *parent=nullptr)
Constructs the G4Display widget.
Definition g4display.cc:10
G4Display & operator=(const G4Display &)=delete
G4Display(const G4Display &)=delete