64 #ifdef G4XXXStoredDEBUG
66 void G4XXXStoredSceneHandler::PrintThings() {
68 " with transformation "
69 << (
void*)fpObjectTransformation;
75 G4cout <<
"(not from a model)";
81 "\n current physical volume: "
83 "\n current logical volume: "
86 "\n current depth of geometry tree: "
100 const std::map<G4String,G4AttDef>* userAttDefs = visAttribs.
GetAttDefs();
102 #ifdef G4XXXStoredDEBUG
103 const std::vector<G4AttValue>* userAttValues =
105 G4cout <<
"\nProvided G4Atts:\n"
108 G4AttCheck attCheck(userAttValues, userAttDefs);
111 std::vector<G4AttValue> standardValues;
112 std::map<G4String,G4AttDef> standardDefinitions;
113 attCheck.
Standard(&standardValues, &standardDefinitions);
114 G4cout <<
"\nStandard G4Atts:\n"
115 << G4AttCheck(&standardValues, &standardDefinitions);
118 delete userAttValues;
126 const std::map<G4String,G4AttDef>* solidAttDefs = pPVModel->
GetAttDefs();
128 #ifdef G4XXXStoredDEBUG
129 std::vector<G4AttValue>* solidAttValues =
131 G4cout <<
"\nProvided G4Atts:\n"
134 G4AttCheck attCheck(solidAttValues,solidAttDefs);
137 std::vector<G4AttValue> standardValues;
138 std::map<G4String,G4AttDef> standardDefinitions;
139 attCheck.
Standard(&standardValues, &standardDefinitions);
140 G4cout <<
"\nStandard G4Atts:\n"
141 << G4AttCheck(&standardValues, &standardDefinitions);
144 delete solidAttValues;
150 fCurrentItem = fStore.insert(fStore.end(),
G4String(
"\nPreAddSolid:\n"));
151 if (fReadyForTransients) {
152 fTransients.push_back(fCurrentItem);
154 fPermanents.push_back(fCurrentItem);
171 if (!fProcessingSolid) {
173 fCurrentItem = fStore.insert(fStore.end(),
175 if (fReadyForTransients) {
176 fTransients.push_back(fCurrentItem);
178 fPermanents.push_back(fCurrentItem);
201 #ifdef G4XXXStoredDEBUG
203 "G4XXXStoredSceneHandler::AddSolid(const G4Box& box) called for "
208 std::ostringstream oss;
214 "Length")).strip() <<
')';
219 #ifdef G4XXXStoredDEBUG
221 "G4XXXStoredSceneHandler::AddPrimitive(const G4Polyline& polyline) called.\n"
229 std::ostringstream oss;
235 #ifdef G4XXXStoredDEBUG
237 "G4XXXStoredSceneHandler::AddPrimitive(const G4Text& text) called.|n"
247 std::ostringstream oss;
253 #ifdef G4XXXStoredDEBUG
255 "G4XXXStoredSceneHandler::AddPrimitive(const G4Circle& circle) called.\n"
277 std::ostringstream oss;
283 #ifdef G4XXXStoredDEBUG
285 "G4XXXStoredSceneHandler::AddPrimitive(const G4Square& square) called.\n"
307 std::ostringstream oss;
313 #ifdef G4XXXStoredDEBUG
315 "G4XXXStoredSceneHandler::AddPrimitive(const G4Polyhedron&) called.\n"
320 std::ostringstream oss;
329 if (polyhedron.GetNoFacets() == 0)
return;
333 fpViewer -> GetApplicableVisAttributes (polyhedron.GetVisAttributes ());
344 switch (drawing_style) {
379 typedef std::vector<StoreIterator>::iterator StoreIteratorIterator;
380 for (StoreIteratorIterator i =
fTransients.begin();
G4double GetYHalfLength() const
std::vector< StoreIterator > fPermanents
void AddSolid(const G4Box &)
system("rm -rf microbeam.root")
virtual void BeginPrimitives(const G4Transform3D &objectTransformation)
static G4int fSceneIdCount
void PreAddSolid(const G4Transform3D &objectTransformation, const G4VisAttributes &)
G4ViewParameters::DrawingStyle GetDrawingStyle(const G4VisAttributes *)
virtual ~G4XXXStoredSceneHandler()
const std::vector< G4AttValue > * CreateAttValues() const
const std::map< G4String, G4AttDef > * GetAttDefs() const
virtual void PostAddSolid()
virtual G4String GetCurrentDescription() const
std::vector< StoreIterator > fTransients
G4bool Standard(std::vector< G4AttValue > *standardValues, std::map< G4String, G4AttDef > *standardDefinitions) const
void BeginPrimitives(const G4Transform3D &objectTransformation)
const std::map< G4String, G4AttDef > * GetAttDefs() const
G4double GetXHalfLength() const
G4LogicalVolume * GetCurrentLV() const
G4double GetMarkerSize(const G4VMarker &, MarkerSizeType &)
virtual void PreAddSolid(const G4Transform3D &objectTransformation, const G4VisAttributes &)
G4int GetCurrentDepth() const
void AddPrimitive(const G4Polyline &)
G4VPhysicalVolume * GetCurrentPV() const
G4XXXStoredSceneHandler(G4VGraphicsSystem &system, const G4String &name)
G4bool Check(const G4String &leader="") const
G4GLOB_DLL std::ostream G4cout
StoreIterator fCurrentItem
virtual G4String GetCurrentTag() const
void ClearTransientStore()
G4double GetZHalfLength() const
std::vector< G4AttValue > * CreateCurrentAttValues() const
virtual void EndPrimitives()
const G4String & GetName() const
const G4String & GetName() const