44 ,fWarnedMissingAttribute(
false)
69 ed<<
"Null attribute name";
89 static G4bool warnedUnableToExtract =
false;
90 if (!warnedUnableToExtract) {
92 ed <<
"Unable to extract attribute definition named "<<
fAttName;
94 (
"G4TrajectoryDrawByAttribute::Draw",
95 "modeling0117",
JustWarning, ed,
". Invalid attribute name");
96 G4cout <<
"Available attributes:\n"
97 << *
object.GetAttDefs();
98 warnedUnableToExtract =
true;
109 ContextMap::const_iterator iter =
fContextMap.begin();
127 static G4bool warnedUnableToExtract =
false;
128 if (!warnedUnableToExtract) {
130 ed <<
"Unable to extract attribute value named "<<
fAttName;
132 (
"G4TrajectoryDrawByAttribute::Draw",
133 "modeling0118",
JustWarning, ed,
". Invalid attribute name");
134 G4cout <<
"Available attributes:\n"
135 << *
object.GetAttDefs();
136 warnedUnableToExtract =
true;
150 ContextMap::const_iterator iter =
fContextMap.begin();
154 while (!gotContext && (iter !=
fContextMap.end())) {
155 if (iter->first.first == key) {
156 myContext = *(iter->second);
166 G4cout<<
"G4TrajectoryDrawByAttribute drawer named "<<
Name();
167 G4cout<<
", drawing style selected according to value of attribute "<<
fAttName;
179 ostr<<
"G4TrajectoryDrawByAttribute, dumping configuration for model named "<<
Name() <<
":"<<std::endl;;
181 ostr<<
"Default configuration:"<<
G4endl;
184 ostr<<
"\nAttribute name "<<
fAttName<<std::endl;
185 ostr<<
"\nKey<->Context map dump:"<<std::endl;
187 ContextMap::const_iterator iter =
fContextMap.begin();
190 ostr<<
"Context for key "<<iter->first.first<<
":"<<std::endl;
191 iter->second->Print(ostr);
209 ContextMap::iterator iter =
fContextMap.find(myPair);
213 ed <<
"Interval "<< name <<
" already exists";
215 (
"G4TrajectoryDrawByAttribute::AddIntervalContext",
228 ContextMap::iterator iter =
fContextMap.find(myPair);
232 ed <<
"Single value "<< name <<
" already exists";
234 (
"G4TrajectoryDrawByAttribute::AddSingleValueContext",