Geant4-11
Functions
G4VisAttributes.cc File Reference
#include "G4VisAttributes.hh"
#include "G4AttValue.hh"
#include "G4AttDef.hh"

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 238 of file G4VisAttributes.cc.

239{
240 os << "G4VisAttributes: ";
241 if (!a.fVisible) os << "in";
242 os << "visible, daughters ";
243 if (a.fDaughtersInvisible) os << "in";
244 os << "visible, colour: " << a.fColour;
245 os << "\n linestyle: ";
246 switch (a.fLineStyle) {
248 os << "solid"; break;
250 os << "dashed"; break;
251 case G4VisAttributes::dotted: os << "dotted"; break;
252 default: os << "unrecognised"; break;
253 }
254 os << ", line width: " << a.fLineWidth;
255 os << ", min line segments per circle: " << a.GetMinLineSegmentsPerCircle();
256 os << "\n drawing style: ";
257 if (a.fForceDrawingStyle) {
258 os << "forced to ";
259 switch (a.fForcedStyle) {
261 os << "wireframe"; break;
263 os << "solid"; break;
264 default: os << "unrecognised"; break;
265 }
266 }
267 else {
268 os << "not forced";
269 }
270 os << ", auxiliary edge visibility: ";
271 if (a.fForceAuxEdgeVisible) {
272 os << "forced to ";
273 if (!a.fForcedAuxEdgeVisible) {
274 os << "not ";
275 }
276 os << "visible";
277 } else {
278 os << "not forced";
279 }
280 os << "\n line segments per circle: ";
282 os << "forced to " << a.fForcedLineSegmentsPerCircle;
283 } else {
284 os << "not forced.";
285 }
286 os << "\n time range: (" << a.fStartTime << ',' << a.fEndTime << ')';
287 os << "\n G4AttValue pointer is ";
288 if (a.fAttValues) {
289 os << "non-";
290 }
291 os << "zero";
292 os << ", G4AttDef pointer is ";
293 if (a.fAttDefs) {
294 os << "non-";
295 }
296 os << "zero";
297 return os;
298}
const std::vector< G4AttValue > * fAttValues
G4int fForcedLineSegmentsPerCircle
ForcedDrawingStyle fForcedStyle
static G4int GetMinLineSegmentsPerCircle()
G4bool fForcedAuxEdgeVisible
const std::map< G4String, G4AttDef > * fAttDefs