Geant4 11.2.2
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 35 of file G4PlotterManager.cc.

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

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

◆ GetPlotter()

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

Definition at line 48 of file G4PlotterManager.cc.

48 {
49 tools_vforit(NamedPlotter,fPlotters,it) {
50 if((*it).first==a_name) {
51 return (*it).second;
52 }
53 }
54 fPlotters.push_back(NamedPlotter(a_name,G4Plotter()));
55 return fPlotters.back().second;
56}

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 58 of file G4PlotterManager.cc.

58 {
59 tools_vforcit(NamedPlotter,fPlotters,it) {
60 G4cout << (*it).first << G4endl;
61 }
62}
#define G4endl
Definition G4ios.hh:67
G4GLOB_DLL std::ostream G4cout

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