Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4VGraphicsSystem.hh File Reference
#include "globals.hh"
#include <vector>
Include dependency graph for G4VGraphicsSystem.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  G4VGraphicsSystem
 

Functions

std::ostream & operator<< (std::ostream &os, const G4VGraphicsSystem &gs)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const G4VGraphicsSystem gs 
)

Definition at line 74 of file G4VGraphicsSystem.cc.

75 {
76  os << "Graphics System: " << gs.GetName ();
77  os << ", nicknames:"; for (const auto& nickname: gs.GetNicknames())
78  {os << ' ' << nickname;}
79  os << "\n Description: " << gs.GetDescription ();
80  os << "\n Functionality: ";
81  switch (gs.GetFunctionality()) {
83  os << "None";
84  break;
86  os << "nonEuclidian, e.g., tree representation of geometry hierarchy.";
87  break;
89  os << "twoD: Simple 2D, e.g., X (no stored structures).";
90  break;
92  os << "twoDStore: 2D with stored structures.";
93  break;
95  os << "threeD: Passive 3D (with stored structures)";
96  break;
98  os << "threeDInteractive: 3D with \"pick\" functionality.";
99  break;
101  os << "virtualReality";
102  break;
104  os << "fileWriter";
105  break;
106  default:
107  os << "unknown";
108  break;
109  }
110 
112  const G4SceneHandlerList& scenes = pVMan -> GetAvailableSceneHandlers ();
113  if (pVMan -> GetVerbosity() >= G4VisManager::parameters) {
114  size_t nScenes = scenes.size ();
115  if (nScenes) {
116  G4int nScenesOfThisSystem = 0;
117  for (size_t i = 0; i < nScenes; i++) {
118  if (scenes [i] -> GetGraphicsSystem () == &gs) {
119  nScenesOfThisSystem++;
120  }
121  }
122  if (nScenesOfThisSystem) {
123  os << "\n Its scenes are: ";
124  for (size_t i = 0; i < nScenes; i++) {
125  if (scenes [i] -> GetGraphicsSystem () == &gs) {
126  os << "\n " << *(scenes [i]);
127  }
128  }
129  }
130  else {
131  os << "\n It has no scenes at present.";
132  }
133  }
134  else {
135  os << "\n There are no scenes instantiated at present.";
136  }
137  }
138 
139  return os;
140 }
const std::vector< G4String > & GetNicknames() const
int G4int
Definition: G4Types.hh:78
static G4VisManager * GetInstance()
const G4String & GetName() const
const G4String & GetDescription() const
Functionality GetFunctionality() const

Here is the call graph for this function: