Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

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

Definition at line 215 of file G4VisAttributes.cc.

216 {
217  os << "G4VisAttributes: ";
218  if (!a.fVisible) os << "in";
219  os << "visible, daughters ";
220  if (a.fDaughtersInvisible) os << "in";
221  os << "visible, colour: " << a.fColour;
222  os << "\n linestyle: ";
223  switch (a.fLineStyle) {
225  os << "solid"; break;
227  os << "dashed"; break;
228  case G4VisAttributes::dotted: os << "dotted"; break;
229  default: os << "unrecognised"; break;
230  }
231  os << ", line width: " << a.fLineWidth;
232  os << ", min line segments per circle: " << a.GetMinLineSegmentsPerCircle();
233  os << "\n drawing style: ";
234  if (a.fForceDrawingStyle) {
235  os << "forced to ";
236  switch (a.fForcedStyle) {
238  os << "wireframe"; break;
240  os << "solid"; break;
241  default: os << "unrecognised"; break;
242  }
243  }
244  else {
245  os << "not forced";
246  }
247  os << ", auxiliary edge visibility: ";
248  if (a.fForceAuxEdgeVisible) {
249  os << "forced to ";
250  if (!a.fForcedAuxEdgeVisible) {
251  os << "not ";
252  }
253  os << "visible";
254  } else {
255  os << "not forced";
256  }
257  os << "\n line segments per circle: ";
258  if (a.fForcedLineSegmentsPerCircle > 0) {
259  os << "forced to " << a.fForcedLineSegmentsPerCircle;
260  } else {
261  os << "not forced.";
262  }
263  os << "\n time range: (" << a.fStartTime << ',' << a.fEndTime << ')';
264  os << "\n G4AttValue pointer is ";
265  if (a.fAttValues) {
266  os << "non-";
267  }
268  os << "zero";
269  os << ", G4AttDef pointer is ";
270  if (a.fAttDefs) {
271  os << "non-";
272  }
273  os << "zero";
274  return os;
275 }
static G4int GetMinLineSegmentsPerCircle()

Here is the call graph for this function: