Changeset 1050


Ignore:
Timestamp:
May 26, 2009, 3:35:10 PM (15 years ago)
Author:
garnier
Message:

update pas dans CVS

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

Legend:

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

    r1041 r1050  
    557557            aViewer -> NeedKernelVisit();
    558558#ifdef G4DEBUG_VIS_MANAGEMENT
    559             printf("G4VisCommandSceneNotifyHandlers::SetNewValue Call SetView()\n");
     559            G4cout << "G4VisCommandSceneNotifyHandlers::SetNewValue."        << G4endl;
     560            printf("\n\nG4VisCommandSceneNotifyHandlers::SetNewValue ---%s--- Call SetView() 1\n",newValue.data());
    560561#endif
    561562            aViewer -> SetView ();
    562563#ifdef G4DEBUG_VIS_MANAGEMENT
    563             printf("G4VisCommandSceneNotifyHandlers::SetNewValue Call SetView() END\n");
    564             printf("G4VisCommandSceneNotifyHandlers::SetNewValue Call ClearView()\n");
     564            printf("G4VisCommandSceneNotifyHandlers::SetNewValue Call SetView() END 2\n");
     565            printf("G4VisCommandSceneNotifyHandlers::SetNewValue Call ClearView() 3\n");
    565566#endif
    566567            aViewer -> ClearView ();
    567568#ifdef G4DEBUG_VIS_MANAGEMENT
    568             printf("G4VisCommandSceneNotifyHandlers::SetNewValue Call ClearView() END\n");
    569             printf("G4VisCommandSceneNotifyHandlers::SetNewValue Call DrawView()\n");
     569            printf("G4VisCommandSceneNotifyHandlers::SetNewValue Call ClearView() END 4\n");
     570            printf("G4VisCommandSceneNotifyHandlers::SetNewValue Call DrawView() 5\n");
    570571#endif
    571572            aViewer -> DrawView ();
    572573#ifdef G4DEBUG_VIS_MANAGEMENT
    573             printf("G4VisCommandSceneNotifyHandlers::SetNewValue Call DrawView() END\n");
     574            printf("G4VisCommandSceneNotifyHandlers::SetNewValue Call DrawView() END 6\n");
    574575#endif
    575576            if (flush) aViewer -> ShowView ();
     
    629630      if (pCurrentViewer && pCurrentSceneHandler->GetScene()) {
    630631#ifdef G4DEBUG_VIS_MANAGEMENT
    631             printf("G4VisCommandSceneNotifyHandlers::SetNewValue Call SetView()\n");
     632            printf("G4VisCommandSceneNotifyHandlers::SetNewValue Call SetView() 7\n");
    632633#endif
    633634        pCurrentViewer -> SetView ();
    634635#ifdef G4DEBUG_VIS_MANAGEMENT
    635             printf("G4VisCommandSceneNotifyHandlers::SetNewValue Call SetView() END\n");
     636            printf("G4VisCommandSceneNotifyHandlers::SetNewValue Call SetView() END 8\n");
    636637#endif
    637638      }
    638639    }
    639640  }
     641#ifdef G4DEBUG_VIS_MANAGEMENT
     642            G4cout << "G4VisCommandSceneNotifyHandlers::SetNewValue.  END"           << G4endl;
     643            printf("G4VisCommandSceneNotifyHandlers::SetNewValue END 99\n\n\n");
     644#endif
    640645}
    641646
  • trunk/source/visualization/management/src/G4VisCommandsViewerSet.cc

    r954 r1050  
    2525//
    2626//
    27 // $Id: G4VisCommandsViewerSet.cc,v 1.49 2007/07/10 17:51:54 allison Exp $
    28 // GEANT4 tag $Name: $
     27// $Id: G4VisCommandsViewerSet.cc,v 1.50 2009/05/13 18:17:25 allison Exp $
     28// GEANT4 tag $Name: HEAD $
    2929
    3030// /vis/viewer/set commands - John Allison  16th May 2000
     
    3737#include "G4UIcmdWithAnInteger.hh"
    3838#include "G4UIcmdWithADouble.hh"
     39#include "G4UIcmdWith3VectorAndUnit.hh"
    3940#include "G4UnitsTable.hh"
    4041#include "G4VisManager.hh"
     
    317318  fpCommandStyle->SetParameterName ("style",omitable = false);
    318319
     320  fpCommandTargetPoint = new G4UIcmdWith3VectorAndUnit
     321    ("/vis/viewer/set/targetPoint", this);
     322  fpCommandTargetPoint->SetGuidance
     323    ("Set target point.");
     324  fpCommandTargetPoint->SetGuidance
     325    ("This sets the \"Current Target Point\" relative to the \"Standard");
     326  fpCommandTargetPoint->SetGuidance
     327    ("Target Point\" so that the actual target point is as requested.");
     328  fpCommandTargetPoint->SetGuidance
     329    ("(See G4ViewParameters.hh for an explanation of target points.)");
     330  fpCommandTargetPoint->SetParameterName("x", "y", "z", omitable = false);
     331  fpCommandTargetPoint->SetUnitCategory("Length");
     332
    319333  fpCommandUpThetaPhi = new G4UIcommand
    320334    ("/vis/viewer/set/upThetaPhi", this);
     
    401415  delete fpCommandSectionPlane;
    402416  delete fpCommandStyle;
     417  delete fpCommandTargetPoint;
    403418  delete fpCommandUpThetaPhi;
    404419  delete fpCommandUpVector;
     
    912927  }
    913928
     929  else if (command == fpCommandTargetPoint) {
     930    G4ThreeVector targetPoint =
     931      fpCommandTargetPoint->GetNew3VectorValue(newValue);
     932    const G4Point3D& standardTargetPoint =
     933      currentViewer->GetSceneHandler()->GetScene()->GetStandardTargetPoint();
     934    vp.SetCurrentTargetPoint(targetPoint - standardTargetPoint);
     935    if (verbosity >= G4VisManager::confirmations) {
     936      G4cout << "Target point set to "
     937             << fpCommandTargetPoint->ConvertToStringWithBestUnit
     938        (targetPoint)
     939             << "\n\"Current Target Point\" set to  "
     940             << fpCommandTargetPoint->ConvertToStringWithBestUnit
     941        (vp.GetCurrentTargetPoint())
     942             << "\n\"Standard Target Point\" is "
     943             << fpCommandTargetPoint->ConvertToStringWithBestUnit
     944        (standardTargetPoint)
     945             << G4endl;
     946    }
     947  }
     948
    914949  else if (command == fpCommandUpThetaPhi) {
    915950    G4double theta, phi;
  • trunk/source/visualization/management/src/G4VisManager.cc

    r1038 r1050  
    8787  fpSceneHandler   (0),
    8888  fpViewer         (0),
    89   fVerbosity       (warnings),
     89  fVerbosity       (all),//warnings),
    9090  fpStateDependent (0),
    9191  fEventRefreshing          (false),
     
    814814void G4VisManager::NotifyHandlers () {
    815815
     816#ifdef G4DEBUG_VIS_MANAGEMENT
     817  printf("G4VisManager::NotifyHandlers \n");
     818#endif
    816819  if (fVerbosity >= confirmations) {
    817820    G4cout << "G4VisManager::NotifyHandler() called." << G4endl;
     
    842845  }
    843846
     847#ifdef G4DEBUG_VIS_MANAGEMENT
     848  printf("G4VisManager::NotifyHandlers END\n");
     849#endif
    844850}
    845851
Note: See TracChangeset for help on using the changeset viewer.