Ignore:
Timestamp:
Jun 18, 2010, 11:42:07 AM (14 years ago)
Author:
garnier
Message:

update geant4-09-04-beta-cand-01 interfaces-V09-03-09 vis-V09-03-08

Location:
trunk/source/visualization/management/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/management/src/G4VisCommandsGeometrySet.cc

    r954 r1315  
    2525//
    2626//
    27 // $Id: G4VisCommandsGeometrySet.cc,v 1.7 2007/01/05 16:24:19 allison Exp $
    28 // GEANT4 tag $Name: $
     27// $Id: G4VisCommandsGeometrySet.cc,v 1.8 2010/06/15 16:34:30 allison Exp $
     28// GEANT4 tag $Name: vis-V09-03-08 $
    2929
    3030// /vis/geometry commands - John Allison  31st January 2006
     
    6464  }
    6565  if (fpVisManager->GetCurrentViewer()) {
    66     G4UImanager::GetUIpointer()->ApplyCommand("/vis/viewer/rebuild");
     66    G4UImanager::GetUIpointer()->ApplyCommand("/vis/scene/notifyHandlers");
    6767  }
    6868}
  • trunk/source/visualization/management/src/G4VisCommandsSceneAdd.cc

    r1288 r1315  
    2525//
    2626//
    27 // $Id: G4VisCommandsSceneAdd.cc,v 1.81 2010/06/01 16:08:15 allison Exp $
    28 // GEANT4 tag $Name: $
     27// $Id: G4VisCommandsSceneAdd.cc,v 1.82 2010/06/03 10:17:44 allison Exp $
     28// GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
    2929// /vis/scene commands - John Allison  9th August 1998
    3030
     
    162162
    163163G4VisCommandSceneAddDigis::G4VisCommandSceneAddDigis () {
    164   fpCommand = new G4UIcmdWithoutParameter ("/vis/scene/add/digitisations", this);
     164  fpCommand = new G4UIcmdWithoutParameter ("/vis/scene/add/digis", this);
    165165  fpCommand -> SetGuidance ("Adds digis to current scene.");
    166166  fpCommand -> SetGuidance
    167167    ("Digis are drawn at end of event when the scene in which"
    168168     "\nthey are added is current.");
    169 
    170   fpCommandUS = new G4UIcmdWithoutParameter ("/vis/scene/add/digitizations", this);
    171   fpCommandUS -> SetGuidance ("Adds digis to current scene.");
    172   fpCommandUS -> SetGuidance
    173     ("Digis are drawn at end of event when the scene in which"
    174      "\nthey are added is current.");
    175169}
    176170
    177171G4VisCommandSceneAddDigis::~G4VisCommandSceneAddDigis () {
    178   delete fpCommandUS;
    179172  delete fpCommand;
    180173}
  • trunk/source/visualization/management/src/G4VisManager.cc

    r1292 r1315  
    2424// ********************************************************************
    2525//
    26 // $Id: G4VisManager.cc,v 1.128 2010/06/01 16:08:15 allison Exp $
    27 // GEANT4 tag $Name: $
     26// $Id: G4VisManager.cc,v 1.129 2010/06/03 10:16:11 allison Exp $
     27// GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
    2828//
    2929//
     
    940940  assert (0 != trajectoryModel); // Should exist
    941941
    942   G4TrajectoriesModel* trajectoriesModel =
    943     dynamic_cast<G4TrajectoriesModel*>(fpSceneHandler->GetModel());
    944   if (trajectoriesModel) {
    945     if (trajectoriesModel->IsDrawingModeSet()) {
     942  if (IsValidView()) {
     943    G4TrajectoriesModel* trajectoriesModel =
     944      dynamic_cast<G4TrajectoriesModel*>(fpSceneHandler->GetModel());
     945    if (trajectoriesModel) {
     946      if (trajectoriesModel->IsDrawingModeSet()) {
     947        trajectoryModel->Draw(trajectory, i_mode, visible);
     948      } else {
     949        trajectoryModel->Draw(trajectory, visible);
     950      }
     951    } else {
     952      // Just draw at user's request
    946953      trajectoryModel->Draw(trajectory, i_mode, visible);
    947     } else {
    948       trajectoryModel->Draw(trajectory, visible);
    949     }
    950   } else {
    951     // Just draw at user's request
    952     trajectoryModel->Draw(trajectory, i_mode, visible);
     954    }
    953955  }
    954956}
     
    13611363    if (eventID < nEventsToBeProcessed - 1) {
    13621364      fpViewer->ShowView();
     1365      fpViewer->DrawView();
    13631366      fpSceneHandler->SetMarkForClearingTransientStore(true);
    13641367    } else {  // Last event...
Note: See TracChangeset for help on using the changeset viewer.