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

“View” tab for G4Display. More...

#include <g4displayview.h>

Public Member Functions

 G4DisplayView (const std::shared_ptr< GOptions > &gopts, std::shared_ptr< GLogger > logger, QWidget *parent=nullptr)
 Construct the view-control tab.
 
 ~G4DisplayView () override
 Destructor.
 

Detailed Description

Responsibilities:

  • Camera direction control (theta/phi) using sliders and preset dropdowns.
  • Light direction control (theta/phi) using sliders and preset dropdowns.
  • View properties such as projection mode and circle segmentation precision.
  • Scene properties such as culling mode and background color.
  • Cutaway plane (“slice”) controls for X/Y/Z planes, including union/intersection mode.
  • Toggleable visualization features (hidden edges, anti-aliasing, auxiliary edges, field lines, axes, scale).

Implementation notes:

  • User actions are translated into Geant4 visualization commands and sent to G4UImanager.
  • This widget relies on Qt parent-child ownership for memory management of child widgets.
  • Logging uses the shared Glogger instance provided by G4Display.

Definition at line 37 of file g4displayview.h.

Constructor & Destructor Documentation

◆ G4DisplayView()

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

The constructor reads initial camera settings from GOptions (via g4display option helpers), creates all UI controls, arranges them in layouts, and connects Qt signals to slots that issue commands through G4UImanager.

Parameters
goptsShared options object used to initialize defaults (camera angles, etc.).
loggerShared logger instance (created/owned upstream, typically by G4Display).
parentOptional Qt parent widget for ownership management.

Definition at line 19 of file g4displayview.cc.

◆ ~G4DisplayView()

G4DisplayView::~G4DisplayView ( )
inlineoverride

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

Definition at line 62 of file g4displayview.h.


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