Geant4  10.02.p03
G4VisAttributes.cc File Reference
#include "G4VisAttributes.hh"
#include "G4AttValue.hh"
#include "G4AttDef.hh"
Include dependency graph for G4VisAttributes.cc:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const G4VisAttributes &a)
 

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
const G4VisAttributes a 
)

Definition at line 176 of file G4VisAttributes.cc.

177 {
178  os << "G4VisAttributes: ";
179  if (!a.fVisible) os << "in";
180  os << "visible, daughters ";
181  if (a.fDaughtersInvisible) os << "in";
182  os << "visible, colour: " << a.fColour;
183  os << "\n linestyle: ";
184  switch (a.fLineStyle) {
186  os << "solid"; break;
188  os << "dashed"; break;
189  case G4VisAttributes::dotted: os << "dotted"; break;
190  default: os << "unrecognised"; break;
191  }
192  os << ", line width: " << a.fLineWidth;
193  os << ", min line segments per circle: " << a.GetMinLineSegmentsPerCircle();
194  os << "\n drawing style: ";
195  if (a.fForceDrawingStyle) {
196  os << "forced to: ";
197  switch (a.fForcedStyle) {
199  os << "wireframe"; break;
201  os << "solid"; break;
202  default: os << "unrecognised"; break;
203  }
204  }
205  else {
206  os << "not forced";
207  }
208  os << ", auxiliary edge visibility: ";
209  if (!a.fForceAuxEdgeVisible) {
210  os << "not ";
211  }
212  os << "forced";
213  os << "\n line segments per circle: ";
214  if (a.fForcedLineSegmentsPerCircle > 0) {
215  os << "forced to " << a.fForcedLineSegmentsPerCircle;
216  } else {
217  os << "not forced.";
218  }
219  os << "\n time range: (" << a.fStartTime << ',' << a.fEndTime << ')';
220  os << "\n G4AttValue pointer is ";
221  if (a.fAttValues) {
222  os << "non-";
223  }
224  os << "zero";
225  os << ", G4AttDef pointer is ";
226  if (a.fAttDefs) {
227  os << "non-";
228  }
229  os << "zero";
230  return os;
231 }
const std::map< G4String, G4AttDef > * fAttDefs
ForcedDrawingStyle fForcedStyle
static G4int GetMinLineSegmentsPerCircle()
const std::vector< G4AttValue > * fAttValues
G4int fForcedLineSegmentsPerCircle
Here is the call graph for this function: