g4display
Loading...
Searching...
No Matches
G4Display Class Reference

Main GUI container for Geant4 visualization controls. More...

#include <g4display.h>

Public Member Functions

 G4Display (const std::shared_ptr< GOptions > &gopt, QWidget *parent=nullptr)
 Construct the main display widget.
 
 G4Display (const G4Display &)=delete
 Copy is disabled (Qt widgets are not safely copyable and ownership should remain explicit).
 
G4Displayoperator= (const G4Display &)=delete
 Assignment is disabled for the same reason as copy construction.
 
- Public Member Functions inherited from GBase< G4Display >
 GBase (const std::shared_ptr< GOptions > &gopt, std::string logger_name="")
 
 GBase (const std::shared_ptr< GLogger > &logger)
 
 GBase (const GBase &)=default
 
 GBase (GBase &&) noexcept=default
 
virtual ~GBase ()
 
GBaseoperator= (const GBase &)=default
 
GBaseoperator= (GBase &&) noexcept=default
 

Additional Inherited Members

- Protected Attributes inherited from GBase< G4Display >
std::shared_ptr< GLoggerlog
 

Detailed Description

G4Display:

  • owns/uses the module logger (via its GBase inheritance),
  • builds a QTabWidget containing visualization control panels (e.g. G4DisplayView),
  • is typically embedded into a higher-level application window.

Ownership model:

  • Tabs are created as child widgets of the G4Display instance; Qt manages their lifetime.
  • Copy is disabled to avoid unintended QWidget copying and logger ownership issues.

Definition at line 34 of file g4display.h.

Constructor & Destructor Documentation

◆ G4Display() [1/2]

G4Display::G4Display ( const std::shared_ptr< GOptions > & gopt,
QWidget * parent = nullptr )
explicit

The constructor initializes the base logger for the "g4display" module and creates the tabbed UI.

Parameters
goptShared options object used to configure the module and logging.
parentOptional Qt parent widget for ownership management.

Definition at line 12 of file g4display.cc.

◆ G4Display() [2/2]

G4Display::G4Display ( const G4Display & )
delete

Member Function Documentation

◆ operator=()

G4Display & G4Display::operator= ( const G4Display & )
delete

The documentation for this class was generated from the following files: