62 void G4XXXSGSceneHandler::PrintThings() {
64 " with transformation "
65 << (
void*)fpObjectTransformation;
71 G4cout <<
"(not from a model)";
77 "\n current physical volume: "
79 "\n current logical volume: "
82 "\n current depth of geometry tree: "
96 if (pPVModel && !pLVModel) {
105 typedef std::vector<PVNodeID>
PVPath;
136 static G4int index = 0;
204 CreateCurrentItem(
G4String(
"\nPreAddSolid:\n"));
235 "G4XXXSGSceneHandler::AddSolid(const G4Box& box) called for "
240 std::ostringstream oss;
246 "Length")).strip() <<
')' << std::endl;
253 "G4XXXSGSceneHandler::AddPrimitive(const G4Polyline& polyline) called.\n"
261 std::ostringstream oss;
262 oss << polyline << std::endl;
269 "G4XXXSGSceneHandler::AddPrimitive(const G4Text& text) called.\n"
279 std::ostringstream oss;
280 oss << text << std::endl;
287 "G4XXXSGSceneHandler::AddPrimitive(const G4Circle& circle) called.\n"
309 std::ostringstream oss;
310 oss << circle << std::endl;
317 "G4XXXSGSceneHandler::AddPrimitive(const G4Square& square) called.\n"
339 std::ostringstream oss;
340 oss << square << std::endl;
347 "G4XXXSGSceneHandler::AddPrimitive(const G4Polyhedron& polyhedron) called.\n"
352 std::ostringstream oss;
361 if (polyhedron.GetNoFacets() == 0)
return;
365 fpViewer -> GetApplicableVisAttributes (polyhedron.GetVisAttributes ());
376 switch (drawing_style) {
430 G4bool found =
false;
size_t foundPosition = 0;
431 for (
size_t i = 0; i < node->
fDaughters.size(); ++i) {
442 if (pathLength == 1) {
444 node->
fDaughters[foundPosition]->fIndex = index;
453 Insert(pvPath+1,--pathLength,index,
457 Insert(pvPath+1,--pathLength,index,
465 static G4int depth = -1;
469 const size_t& nDaughters = node->
fDaughters.size();
471 if (!thisPhysicalVolume) os <<
"Root" << std::endl;
473 for (
G4int i = 0; i < depth; ++i) os <<
"__";
476 << thisIndex <<
")" << std::endl;;
478 for (
size_t i = 0; i < nDaughters; ++i) {
486 const size_t& nDaughters = node->
fDaughters.size();
487 for (
size_t i = 0; i < nDaughters; ++i) {