Changeset 1274 for trunk/source/visualization/management
- Timestamp:
- May 27, 2010, 10:36:45 AM (16 years ago)
- Location:
- trunk/source/visualization/management
- Files:
-
- 5 edited
-
History (modified) (2 diffs)
-
include/G4VGraphicsSystem.hh (modified) (2 diffs)
-
include/G4VGraphicsSystem.icc (modified) (2 diffs)
-
include/G4VisManager.hh (modified) (2 diffs)
-
src/G4VisCommandsCompound.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/management/History
r1258 r1274 1 $Id: History,v 1.14 2 2010/05/11 12:17:40allison Exp $1 $Id: History,v 1.143 2010/05/20 07:56:21 allison Exp $ 2 2 3 3 ------------------------------------------------------------------- … … 26 26 History file for visualization management sub-category 27 27 ------------------------------------------------------ 28 29 20th May 2010 John Allison (visman-V09-03-01) 30 - G4VisCommandsCompound.cc: Restore previous viewer after /vis/drawTree. 31 - G4VisManager.hh: Cosmetic. 32 - G4VGraphicsSystem: Add Set methods. 28 33 29 34 11th May 2010 John Allison (visman-V09-03-00) -
trunk/source/visualization/management/include/G4VGraphicsSystem.hh
r954 r1274 25 25 // 26 26 // 27 // $Id: G4VGraphicsSystem.hh,v 1.1 1 2006/06/29 21:28:04 gunterExp $27 // $Id: G4VGraphicsSystem.hh,v 1.12 2010/05/20 07:55:47 allison Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 80 80 const G4String& GetDescription () const; 81 81 Functionality GetFunctionality () const; 82 void SetName (const G4String&); 83 void SetNickName (const G4String&); 84 void SetDescription (const G4String&); 85 void SetFunctionality (Functionality); 82 86 83 87 protected: 84 constG4String fName;85 constG4String fNickname;86 constG4String fDescription;88 G4String fName; 89 G4String fNickname; 90 G4String fDescription; 87 91 Functionality fFunctionality; 88 92 }; -
trunk/source/visualization/management/include/G4VGraphicsSystem.icc
r954 r1274 25 25 // 26 26 // 27 // $Id: G4VGraphicsSystem.icc,v 1. 7 2006/06/29 21:28:06 gunterExp $27 // $Id: G4VGraphicsSystem.icc,v 1.8 2010/05/20 07:55:47 allison Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 48 48 return fFunctionality; 49 49 } 50 51 inline void G4VGraphicsSystem::SetName (const G4String& name) { 52 fName = name; 53 } 54 55 inline void G4VGraphicsSystem::SetNickName (const G4String& nickname) { 56 fNickname = nickname; 57 } 58 59 inline void G4VGraphicsSystem::SetDescription (const G4String& description) { 60 fDescription = description; 61 } 62 63 inline void G4VGraphicsSystem::SetFunctionality (Functionality f) { 64 fFunctionality = f; 65 } -
trunk/source/visualization/management/include/G4VisManager.hh
r933 r1274 25 25 // 26 26 // 27 // $Id: G4VisManager.hh,v 1.7 0 2009/02/25 18:28:00 lgarnierExp $27 // $Id: G4VisManager.hh,v 1.71 2010/05/20 07:54:31 allison Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 366 366 const G4VisExtent& = G4VisExtent::NullExtent); 367 367 void SetUserActionExtent (const G4VisExtent&); 368 void SetCurrentGraphicsSystem (G4VGraphicsSystem* pSystem);368 void SetCurrentGraphicsSystem (G4VGraphicsSystem*); 369 369 void SetCurrentScene (G4Scene*); 370 void SetCurrentSceneHandler (G4VSceneHandler* pScene);371 void SetCurrentViewer (G4VViewer* pView);370 void SetCurrentSceneHandler (G4VSceneHandler*); 371 void SetCurrentViewer (G4VViewer*); 372 372 G4SceneHandlerList& SetAvailableSceneHandlers (); // Returns lvalue. 373 373 G4SceneList& SetSceneList (); // Returns lvalue. -
trunk/source/visualization/management/src/G4VisCommandsCompound.cc
r954 r1274 25 25 // 26 26 // 27 // $Id: G4VisCommandsCompound.cc,v 1. 39 2007/11/16 20:29:04 perlExp $27 // $Id: G4VisCommandsCompound.cc,v 1.40 2010/05/20 07:54:01 allison Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 … … 66 66 is >> pvname >> system; 67 67 68 G4VGraphicsSystem* keepSystem = fpVisManager->GetCurrentGraphicsSystem(); 69 G4Scene* keepScene = fpVisManager->GetCurrentScene(); 70 G4VSceneHandler* keepSceneHandler = fpVisManager->GetCurrentSceneHandler(); 71 G4VViewer* keepViewer = fpVisManager->GetCurrentViewer(); 72 68 73 G4UImanager* UImanager = G4UImanager::GetUIpointer(); 69 74 G4int keepVerbose = UImanager->GetVerboseLevel(); … … 77 82 UImanager->ApplyCommand("/vis/viewer/flush"); 78 83 UImanager->SetVerboseLevel(keepVerbose); 84 85 if (keepViewer) { 86 if (fpVisManager->GetVerbosity() >= G4VisManager::warnings) { 87 G4cout << "Reverting to " << keepViewer->GetName() << G4endl; 88 } 89 fpVisManager->SetCurrentGraphicsSystem(keepSystem); 90 fpVisManager->SetCurrentScene(keepScene); 91 fpVisManager->SetCurrentSceneHandler(keepSceneHandler); 92 fpVisManager->SetCurrentViewer(keepViewer); 93 } 79 94 } 80 95
Note:
See TracChangeset
for help on using the changeset viewer.
