Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4PlotterManager Class Reference

#include <G4PlotterManager.hh>

Public Types

using StyleItem = std::pair<G4String,G4String>
using Style = std::vector<StyleItem>
using NamedStyle = std::pair<G4String,Style>
using Styles = std::vector<NamedStyle>

Public Member Functions

G4PlotterGetPlotter (const G4String &a_name)
void List () const
const StylesGetStyles () const
StylesGetStyles ()

Static Public Member Functions

static G4PlotterManagerGetInstance ()

Detailed Description

Definition at line 38 of file G4PlotterManager.hh.

Member Typedef Documentation

◆ NamedStyle

Definition at line 46 of file G4PlotterManager.hh.

◆ Style

using G4PlotterManager::Style = std::vector<StyleItem>

Definition at line 45 of file G4PlotterManager.hh.

◆ StyleItem

Definition at line 44 of file G4PlotterManager.hh.

◆ Styles

using G4PlotterManager::Styles = std::vector<NamedStyle>

Definition at line 47 of file G4PlotterManager.hh.

Member Function Documentation

◆ GetInstance()

G4PlotterManager & G4PlotterManager::GetInstance ( )
static

Definition at line 34 of file G4PlotterManager.cc.

34 {
35 static G4PlotterManager s_instance;
36 return s_instance;
37}

Referenced by G4VisCommandSceneAddPlotter::SetNewValue(), and SetPlotterStyles().

◆ GetPlotter()

G4Plotter & G4PlotterManager::GetPlotter ( const G4String & a_name)

Definition at line 47 of file G4PlotterManager.cc.

47 {
48 for(auto& plotter : fPlotters) {
49 if(plotter.first == a_name) {
50 return plotter.second;
51 }
52 }
53 fPlotters.push_back(NamedPlotter(a_name,G4Plotter()));
54 return fPlotters.back().second;
55}

Referenced by G4VisCommandSceneAddPlotter::SetNewValue().

◆ GetStyles() [1/2]

Styles & G4PlotterManager::GetStyles ( )
inline

Definition at line 49 of file G4PlotterManager.hh.

49{return fStyles;}

◆ GetStyles() [2/2]

const Styles & G4PlotterManager::GetStyles ( ) const
inline

Definition at line 48 of file G4PlotterManager.hh.

48{return fStyles;}

Referenced by SetPlotterStyles().

◆ List()

void G4PlotterManager::List ( ) const

Definition at line 57 of file G4PlotterManager.cc.

57 {
58 for(const auto& plotter : fPlotters) {
59 G4cout << plotter.first << G4endl;
60 }
61}
#define G4endl
Definition G4ios.hh:67
G4GLOB_DLL std::ostream G4cout

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