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

“Utilities” tab for G4Display. More...

#include <g4displayutilities.h>

Public Member Functions

 G4DisplayUtilities (const std::shared_ptr< GOptions > &gopt, std::shared_ptr< GLogger > logger, QWidget *parent=nullptr)
 Construct the utilities tab widget.
 
 ~G4DisplayUtilities () override
 Destructor.
 

Detailed Description

This widget is placed in the “Utilities” tab of G4Display. It is intended to host miscellaneous visualization helpers such as:

  • status/diagnostic panes (e.g. an in-GUI log board),
  • quick command launchers for common viewer operations,
  • future convenience widgets that do not fit in G4DisplayView.

Lifetime and ownership:

  • Child widgets created with this as parent are owned by Qt and deleted automatically.
  • Logging uses the shared Glogger instance passed by the parent G4Display.

Definition at line 30 of file g4displayutilities.h.

Constructor & Destructor Documentation

◆ G4DisplayUtilities()

G4DisplayUtilities::G4DisplayUtilities ( const std::shared_ptr< GOptions > & gopt,
std::shared_ptr< GLogger > logger,
QWidget * parent = nullptr )

The constructor stores a shared logger and builds the tab contents.

Parameters
goptShared options object used by the module (may be unused in early implementations).
loggerShared logger instance (created/owned upstream, typically by G4Display).
parentOptional Qt parent widget for ownership management.

Definition at line 12 of file g4displayutilities.cc.

◆ ~G4DisplayUtilities()

G4DisplayUtilities::~G4DisplayUtilities ( )
inlineoverride

Emits a debug-level log message. Child widgets are deleted by Qt parent-child ownership.

Definition at line 53 of file g4displayutilities.h.


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