#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) |
std::ostream& operator<< | ( | std::ostream & | os, | |
const G4VisAttributes & | a | |||
) |
Definition at line 170 of file G4VisAttributes.cc.
References G4VisAttributes::dashed, G4VisAttributes::dotted, G4VisAttributes::fAttDefs, G4VisAttributes::fAttValues, G4VisAttributes::fColour, G4VisAttributes::fDaughtersInvisible, G4VisAttributes::fEndTime, G4VisAttributes::fForceAuxEdgeVisible, G4VisAttributes::fForcedLineSegmentsPerCircle, G4VisAttributes::fForceDrawingStyle, G4VisAttributes::fForcedStyle, G4VisAttributes::fLineStyle, G4VisAttributes::fLineWidth, G4VisAttributes::fStartTime, G4VisAttributes::fVisible, G4VisAttributes::solid, G4VisAttributes::unbroken, and G4VisAttributes::wireframe.
00170 { 00171 00172 os << "G4VisAttributes: "; 00173 if (&a){ 00174 if (!a.fVisible) os << "in"; 00175 os << "visible, daughters "; 00176 if (a.fDaughtersInvisible) os << "in"; 00177 os << "visible, colour: " << a.fColour; 00178 os << "\n linestyle: "; 00179 switch (a.fLineStyle) { 00180 case G4VisAttributes::unbroken: 00181 os << "solid"; break; 00182 case G4VisAttributes::dashed: 00183 os << "dashed"; break; 00184 case G4VisAttributes::dotted: os << "dotted"; break; 00185 default: os << "unrecognised"; break; 00186 } 00187 os << ", line width: " << a.fLineWidth; 00188 os << "\n drawing style: "; 00189 if (a.fForceDrawingStyle) { 00190 os << "forced to: "; 00191 switch (a.fForcedStyle) { 00192 case G4VisAttributes::wireframe: 00193 os << "wireframe"; break; 00194 case G4VisAttributes::solid: 00195 os << "solid"; break; 00196 default: os << "unrecognised"; break; 00197 } 00198 } 00199 else { 00200 os << "not forced"; 00201 } 00202 os << ", auxiliary edge visibility: "; 00203 if (!a.fForceAuxEdgeVisible) { 00204 os << "not "; 00205 } 00206 os << "forced"; 00207 os << "\n line segments per circle: "; 00208 if (a.fForcedLineSegmentsPerCircle > 0) { 00209 os << "forced to " << a.fForcedLineSegmentsPerCircle; 00210 } else { 00211 os << "not forced."; 00212 } 00213 os << "\n time range: (" << a.fStartTime << ',' << a.fEndTime << ')'; 00214 os << "\n G4AttValue pointer is "; 00215 if (a.fAttValues) { 00216 os << "non-"; 00217 } 00218 os << "zero"; 00219 os << ", G4AttDef pointer is "; 00220 if (a.fAttDefs) { 00221 os << "non-"; 00222 } 00223 os << "zero"; 00224 } 00225 else os << " zero G4VisAttributes pointer"; 00226 return os; 00227 }