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// g4display
13#include "g4display_options.h"
14
24class G4Display : public GBase<G4Display>, public QWidget {
25
26public:
32 explicit G4Display(const std::shared_ptr<GOptions>& gopt, QWidget *parent = nullptr);
33
34
35 // Disable copy constructor and assignment operator to prevent slicing
36 // and issues with unique_ptr ownership.
37 G4Display(const G4Display&) = delete;
38 G4Display& operator=(const G4Display&) = delete;
39
40
41};
The main widget for controlling Geant4 visualization.
Definition g4display.h:24
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