63#ifdef G4XXXStoredDEBUG
65void G4XXXStoredSceneHandler::PrintThings() {
67 " with transformation "
68 << (
void*)fpObjectTransformation;
74 G4cout <<
"(not from a model)";
80 "\n current physical volume: "
82 "\n current logical volume: "
85 "\n current depth of geometry tree: "
99 const std::map<G4String,G4AttDef>* userAttDefs = visAttribs.
GetAttDefs();
101#ifdef G4XXXStoredDEBUG
102 const std::vector<G4AttValue>* userAttValues =
104 G4cout <<
"\nProvided G4Atts:\n"
107 G4AttCheck attCheck(userAttValues, userAttDefs);
110 std::vector<G4AttValue> standardValues;
111 std::map<G4String,G4AttDef> standardDefinitions;
112 attCheck.
Standard(&standardValues, &standardDefinitions);
113 G4cout <<
"\nStandard G4Atts:\n"
114 <<
G4AttCheck(&standardValues, &standardDefinitions);
117 delete userAttValues;
125 const std::map<G4String,G4AttDef>* solidAttDefs = pPVModel->
GetAttDefs();
127#ifdef G4XXXStoredDEBUG
128 std::vector<G4AttValue>* solidAttValues =
130 G4cout <<
"\nProvided G4Atts:\n"
133 G4AttCheck attCheck(solidAttValues,solidAttDefs);
136 std::vector<G4AttValue> standardValues;
137 std::map<G4String,G4AttDef> standardDefinitions;
138 attCheck.
Standard(&standardValues, &standardDefinitions);
139 G4cout <<
"\nStandard G4Atts:\n"
140 <<
G4AttCheck(&standardValues, &standardDefinitions);
143 delete solidAttValues;
200#ifdef G4XXXStoredDEBUG
202 "G4XXXStoredSceneHandler::AddSolid(const G4Box& box) called for "
207 std::ostringstream oss;
213 "Length")).
strip() <<
')';
218#ifdef G4XXXStoredDEBUG
220 "G4XXXStoredSceneHandler::AddPrimitive(const G4Polyline& polyline) called.\n"
228 std::ostringstream oss;
234#ifdef G4XXXStoredDEBUG
236 "G4XXXStoredSceneHandler::AddPrimitive(const G4Text& text) called.|n"
246 std::ostringstream oss;
252#ifdef G4XXXStoredDEBUG
254 "G4XXXStoredSceneHandler::AddPrimitive(const G4Circle& circle) called.\n"
276 std::ostringstream oss;
282#ifdef G4XXXStoredDEBUG
284 "G4XXXStoredSceneHandler::AddPrimitive(const G4Square& square) called.\n"
306 std::ostringstream oss;
312#ifdef G4XXXStoredDEBUG
314 "G4XXXStoredSceneHandler::AddPrimitive(const G4Polyhedron&) called.\n"
319 std::ostringstream oss;
343 switch (drawing_style) {
378 typedef std::vector<StoreIterator>::iterator StoreIteratorIterator;
379 for (StoreIteratorIterator i =
fTransients.begin();
G4GLOB_DLL std::ostream G4cout
G4bool Check(const G4String &leader="") const
G4bool Standard(std::vector< G4AttValue > *standardValues, std::map< G4String, G4AttDef > *standardDefinitions) const
G4double GetYHalfLength() const
G4double GetZHalfLength() const
G4double GetXHalfLength() const
const G4String & GetName() const
G4VPhysicalVolume * GetCurrentPV() const
std::vector< G4AttValue > * CreateCurrentAttValues() const
G4LogicalVolume * GetCurrentLV() const
const std::map< G4String, G4AttDef > * GetAttDefs() 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()
G4bool fReadyForTransients
G4ViewParameters::DrawingStyle GetDrawingStyle(const G4VisAttributes *)
virtual void BeginPrimitives(const G4Transform3D &objectTransformation=G4Transform3D())
const std::map< G4String, G4AttDef > * GetAttDefs() const
const std::vector< G4AttValue > * CreateAttValues() const
const G4VisAttributes * GetVisAttributes() const
virtual ~G4XXXStoredSceneHandler()
void BeginPrimitives(const G4Transform3D &objectTransformation)
std::vector< StoreIterator > fTransients
StoreIterator fCurrentItem
void ClearTransientStore()
std::vector< StoreIterator > fPermanents
static G4int fSceneIdCount
void PreAddSolid(const G4Transform3D &objectTransformation, const G4VisAttributes &)
void AddPrimitive(const G4Polyline &)
void AddSolid(const G4Box &)
G4XXXStoredSceneHandler(G4VGraphicsSystem &system, const G4String &name)
G4int GetNoFacets() const