206 std::istringstream is (newValue);
207 is >> graphicsSystem >> newName;
211 G4int nSystems = gsl.size ();
214 G4cerr <<
"ERROR: G4VisCommandSceneHandlerCreate::SetNewValue:" 215 " no graphics systems available." 216 "\n Did you instantiate any in" 217 " YourVisManager::RegisterGraphicsSystems()?" 224 for (iGS = 0; iGS < nSystems; iGS++) {
225 auto&& gs = gsl[iGS];
230 auto&& nicknames = gs->GetNicknames();
231 for (
size_t i = 0; i < nicknames.size(); ++i) {
232 auto&& nickname = nicknames[i];
248 "ERROR: G4VisCommandSceneHandlerCreate::SetNewValue:" 249 "\n invalid graphics system \"" 259 while (!gsl[iGS]->IsUISessionCompatible()) {
262 G4String fallbackNickname = gsl[iGS]->GetNickname() +
"_FALLBACK";
263 for (iGS = 0; iGS < nSystems; iGS++) {
264 auto&& nicknames = gsl[iGS]->GetNicknames();
265 for (
size_t i = 0; i < nicknames.size(); ++i) {
266 auto&& nickname = nicknames[i];
276 if (iGS < 0 || iGS >= nSystems) {
279 "ERROR: G4VisCommandSceneHandlerCreate::SetNewValue:" 280 " could not find fallback graphics system for \"" 294 G4cout <<
"WARNING: G4VisCommandSceneHandlerCreate::SetNewValue:" 295 "\n Using fallback graphics system: " 296 << pSystem -> GetName ()
298 << pSystem -> GetNickname ()
307 G4cout <<
"Graphics system set to " 308 << pSystem -> GetName ()
310 << pSystem -> GetNickname ()
320 if (newName == nextName)
fId++;
324 for (iScene = 0; iScene < list.size (); iScene++) {
326 if (sceneHandler -> GetName () == newName) {
328 G4cerr <<
"ERROR: Scene handler \"" << newName
329 <<
"\" already exists." <<
G4endl;
337 if (
fpVisManager -> GetCurrentSceneHandler () -> GetName () != newName) {
339 G4cerr <<
"ERROR: G4VisCommandSceneHandlerCreate::SetNewValue:" 340 " Curious name mismatch." 342 <<
fpVisManager -> GetCurrentSceneHandler () -> GetName ()
343 <<
"\" is not the new name \"" 345 <<
"\".\n Please report to vis coordinator." 352 G4cout <<
"New scene handler \"" << newName <<
"\" created." <<
G4endl;
G4int compareTo(const char *, caseCompare mode=exact) const
static G4UImanager * GetUIpointer()
G4GLOB_DLL std::ostream G4cout
static Verbosity GetVerbosity()
G4GLOB_DLL std::ostream G4cerr
static G4VisManager * fpVisManager