63void G4XXXSGSceneHandler::PrintThings() {
65 " with transformation "
66 << (
void*)fpObjectTransformation;
72 G4cout <<
"(not from a model)";
78 "\n current physical volume: "
80 "\n current logical volume: "
83 "\n current depth of geometry tree: "
97 if (pPVModel && !pLVModel) {
106 typedef std::vector<PVNodeID> PVPath;
137 static G4int index = 0;
236 "G4XXXSGSceneHandler::AddSolid(const G4Box& box) called for "
241 std::ostringstream oss;
247 "Length")).
strip() <<
')' << std::endl;
254 "G4XXXSGSceneHandler::AddPrimitive(const G4Polyline& polyline) called.\n"
262 std::ostringstream oss;
263 oss << polyline << std::endl;
270 "G4XXXSGSceneHandler::AddPrimitive(const G4Text& text) called.\n"
280 std::ostringstream oss;
281 oss << text << std::endl;
288 "G4XXXSGSceneHandler::AddPrimitive(const G4Circle& circle) called.\n"
310 std::ostringstream oss;
311 oss << circle << std::endl;
318 "G4XXXSGSceneHandler::AddPrimitive(const G4Square& square) called.\n"
340 std::ostringstream oss;
341 oss << square << std::endl;
348 "G4XXXSGSceneHandler::AddPrimitive(const G4Polyhedron& polyhedron) called.\n"
353 std::ostringstream oss;
377 switch (drawing_style) {
406 "G4XXXSGSceneHandler::AddPrimitive(const G4NURBS& nurbs) called."
440 G4bool found =
false;
size_t foundPosition = 0;
441 for (
size_t i = 0; i < node->
fDaughters.size(); ++i) {
452 if (pathLength == 1) {
454 node->
fDaughters[foundPosition]->fIndex = index;
463 Insert(pvPath+1,--pathLength,index,
467 Insert(pvPath+1,--pathLength,index,
475 static G4int depth = -1;
479 const size_t& nDaughters = node->
fDaughters.size();
481 if (!thisPhysicalVolume) os <<
"Root" << std::endl;
483 for (
G4int i = 0; i < depth; ++i) os <<
"__";
486 << thisIndex <<
")" << std::endl;;
488 for (
size_t i = 0; i < nDaughters; ++i) {
496 const size_t& nDaughters = node->
fDaughters.size();
497 for (
size_t i = 0; i < nDaughters; ++i) {
G4DLLIMPORT std::ostream G4cout
G4double GetYHalfLength() const
G4double GetZHalfLength() const
G4double GetXHalfLength() const
G4VPhysicalVolume * GetPhysicalVolume() const
const std::vector< G4PhysicalVolumeNodeID > & GetDrawnPVPath() const
G4VPhysicalVolume * GetCurrentPV() const
G4LogicalVolume * GetCurrentLV() const
G4int GetCurrentDepth() const
G4String strip(G4int strip_Type=trailing, char c=' ')
virtual G4String GetCurrentDescription() const
virtual G4String GetCurrentTag() const
const G4String & GetName() const
virtual void EndPrimitives()
G4double GetMarkerSize(const G4VMarker &, MarkerSizeType &)
virtual void PreAddSolid(const G4Transform3D &objectTransformation, const G4VisAttributes &)
virtual void PostAddSolid()
virtual void BeginPrimitives(const G4Transform3D &objectTransformation)
G4ViewParameters::DrawingStyle GetDrawingStyle(const G4VisAttributes *)
const G4VisAttributes * GetVisAttributes() const
void CreateCurrentItem(const G4String &)
G4XXXSGSceneHandler(G4VGraphicsSystem &system, const G4String &name)
static G4int fSceneIdCount
void AddPrimitive(const G4Polyline &)
void PreAddSolid(const G4Transform3D &objectTransformation, const G4VisAttributes &)
void ClearTransientStore()
void BeginPrimitives(const G4Transform3D &objectTransformation)
void AddSolid(const G4Box &)
virtual ~G4XXXSGSceneHandler()
G4int GetNoFacets() const
void PrintTree(std::ostream &, Node *)
void Insert(const PVNodeID *pvPath, size_t pathLength, G4int index, Node *node)
std::vector< Node * > fDaughters