Ignore:
Timestamp:
Dec 22, 2010, 11:33:38 AM (13 years ago)
Author:
garnier
Message:

before tag

File:
1 edited

Legend:

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

    r1337 r1346  
    2424// ********************************************************************
    2525//
    26 // $Id: G4VisManager.cc,v 1.129 2010/06/03 10:16:11 allison Exp $
    27 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     26// $Id: G4VisManager.cc,v 1.131 2010/12/14 15:53:28 gcosmo Exp $
     27// GEANT4 tag $Name: $
    2828//
    2929//
     
    466466                         const G4Transform3D& objectTransform) {
    467467  if (IsValidView ()) {
     468#ifdef G4DEBUG_VIS_MANAGEMENT
     469    printf("G4VisManager::Draw circle\n");
     470#endif
    468471    ClearTransientStoreIfMarked();
    469472    fpSceneHandler -> BeginPrimitives (objectTransform);
     
    476479                         const G4Transform3D& objectTransform) {
    477480  if (IsValidView ()) {
     481#ifdef G4DEBUG_VIS_MANAGEMENT
     482    printf("G4VisManager::Draw nurbs\n");
     483#endif
    478484    ClearTransientStoreIfMarked();
    479485    fpSceneHandler -> BeginPrimitives (objectTransform);
     
    486492                         const G4Transform3D& objectTransform) {
    487493  if (IsValidView ()) {
     494#ifdef G4DEBUG_VIS_MANAGEMENT
     495    printf("G4VisManager::Draw polyhedron\n");
     496#endif
    488497    ClearTransientStoreIfMarked();
    489498    fpSceneHandler -> BeginPrimitives (objectTransform);
     
    496505                         const G4Transform3D& objectTransform) {
    497506  if (IsValidView ()) {
     507#ifdef G4DEBUG_VIS_MANAGEMENT
     508    printf("G4VisManager::Draw line\n");
     509#endif
    498510    ClearTransientStoreIfMarked();
    499511    fpSceneHandler -> BeginPrimitives (objectTransform);
     
    506518                         const G4Transform3D& objectTransform) {
    507519  if (IsValidView ()) {
     520#ifdef G4DEBUG_VIS_MANAGEMENT
     521    printf("G4VisManager::Draw polymarker\n");
     522#endif
    508523    ClearTransientStoreIfMarked();
    509524    fpSceneHandler -> BeginPrimitives (objectTransform);
     
    516531                         const G4Transform3D& objectTransform) {
    517532  if (IsValidView ()) {
     533#ifdef G4DEBUG_VIS_MANAGEMENT
     534    printf("G4VisManager::Draw scale\n");
     535#endif
    518536    ClearTransientStoreIfMarked();
    519537    fpSceneHandler -> BeginPrimitives (objectTransform);
     
    526544                         const G4Transform3D& objectTransform) {
    527545  if (IsValidView ()) {
     546#ifdef G4DEBUG_VIS_MANAGEMENT
     547    printf("G4VisManager::Draw square\n");
     548#endif
    528549    ClearTransientStoreIfMarked();
    529550    fpSceneHandler -> BeginPrimitives (objectTransform);
     
    536557                         const G4Transform3D& objectTransform) {
    537558  if (IsValidView ()) {
     559#ifdef G4DEBUG_VIS_MANAGEMENT
     560    printf("G4VisManager::Draw text ______________________________\n");
     561#endif
    538562    ClearTransientStoreIfMarked();
    539563    fpSceneHandler -> BeginPrimitives (objectTransform);
     
    547571{
    548572  if (IsValidView()) {
     573#ifdef G4DEBUG_VIS_MANAGEMENT
     574    printf("G4VisManager::Draw2d circle\n");
     575#endif
    549576    ClearTransientStoreIfMarked();
    550577    fpSceneHandler -> BeginPrimitives2D(objectTransform);
     
    558585{
    559586  if (IsValidView()) {
     587#ifdef G4DEBUG_VIS_MANAGEMENT
     588    printf("G4VisManager::Draw2d nurbs\n");
     589#endif
    560590    ClearTransientStoreIfMarked();
    561591    fpSceneHandler -> BeginPrimitives2D(objectTransform);
     
    569599{
    570600  if (IsValidView()) {
     601#ifdef G4DEBUG_VIS_MANAGEMENT
     602    printf("G4VisManager::Draw2d polyhedron\n");
     603#endif
    571604    ClearTransientStoreIfMarked();
    572605    fpSceneHandler -> BeginPrimitives2D(objectTransform);
     
    580613{
    581614  if (IsValidView()) {
     615#ifdef G4DEBUG_VIS_MANAGEMENT
     616    printf("G4VisManager::Draw2d line\n");
     617#endif
    582618    ClearTransientStoreIfMarked();
    583619    fpSceneHandler -> BeginPrimitives2D(objectTransform);
     
    591627{
    592628  if (IsValidView()) {
     629#ifdef G4DEBUG_VIS_MANAGEMENT
     630    printf("G4VisManager::Draw2d polymarker\n");
     631#endif
    593632    ClearTransientStoreIfMarked();
    594633    fpSceneHandler -> BeginPrimitives2D(objectTransform);
     
    602641{
    603642  if (IsValidView()) {
     643#ifdef G4DEBUG_VIS_MANAGEMENT
     644    printf("G4VisManager::Draw2d square\n");
     645#endif
    604646    ClearTransientStoreIfMarked();
    605647    fpSceneHandler -> BeginPrimitives2D(objectTransform);
     
    613655{
    614656  if (IsValidView()) {
     657#ifdef G4DEBUG_VIS_MANAGEMENT
     658    printf("G4VisManager::Draw2d text _____________________________\n");
     659#endif
    615660    ClearTransientStoreIfMarked();
    616661    fpSceneHandler -> BeginPrimitives2D(objectTransform);
     
    622667void G4VisManager::Draw (const G4VHit& hit) {
    623668  if (IsValidView ()) {
     669#ifdef G4DEBUG_VIS_MANAGEMENT
     670    printf("G4VisManager::Draw hit\n");
     671#endif
    624672    ClearTransientStoreIfMarked();
    625673    fpSceneHandler -> AddCompound (hit);
     
    629677void G4VisManager::Draw (const G4VDigi& digi) {
    630678  if (IsValidView ()) {
     679#ifdef G4DEBUG_VIS_MANAGEMENT
     680    printf("G4VisManager::Draw digi\n");
     681#endif
    631682    ClearTransientStoreIfMarked();
    632683    fpSceneHandler -> AddCompound (digi);
     
    637688                         G4int i_mode) {
    638689  if (IsValidView ()) {
     690#ifdef G4DEBUG_VIS_MANAGEMENT
     691    printf("G4VisManager::Draw traj\n");
     692#endif
    639693    ClearTransientStoreIfMarked();
    640694    fpSceneHandler -> SetModel (&dummyTrajectoriesModel);
     
    649703  // Find corresponding solid.
    650704  G4VSolid* pSol = logicalVol.GetSolid ();
     705#ifdef G4DEBUG_VIS_MANAGEMENT
     706    printf("G4VisManager::Draw logicalVol\n");
     707#endif
    651708  Draw (*pSol, attribs, objectTransform);
    652709}
     
    656713                         const G4Transform3D& objectTransform) {
    657714  if (IsValidView ()) {
     715#ifdef G4DEBUG_VIS_MANAGEMENT
     716    printf("G4VisManager::Draw2d solid\n");
     717#endif
    658718    ClearTransientStoreIfMarked();
    659719    fpSceneHandler -> PreAddSolid (objectTransform, attribs);
     
    10611121      }
    10621122    }
    1063     IsValidView ();  // Checks.
     1123    if (!IsValidView ()) {
     1124      if (fVerbosity >= warnings) {
     1125        G4cout <<
     1126  "WARNING: Problem setting scene handler - please report circumstances."
     1127               << G4endl;
     1128      }
     1129    }
    10641130  }
    10651131  else {
     
    10841150  fpScene = fpSceneHandler -> GetScene ();
    10851151  fpGraphicsSystem = fpSceneHandler -> GetGraphicsSystem ();
    1086   IsValidView ();  // Checks.
     1152  if (!IsValidView ()) {
     1153    if (fVerbosity >= warnings) {
     1154      G4cout <<
     1155        "WARNING: Problem setting viewer - please report circumstances."
     1156             << G4endl;
     1157    }
     1158  }
    10871159}
    10881160
     
    13451417
    13461418  ClearTransientStoreIfMarked();
     1419#ifdef G4DEBUG_VIS_MANAGEMENT
     1420    printf("G4VisManager::EndOfEvent DrawEvent ---------------------\n");
     1421#endif
    13471422  fpSceneHandler->DrawEvent(currentEvent);
    13481423
     
    15691644  else                           verbosity = Verbosity(intVerbosity);
    15701645  return verbosity;
     1646}
     1647
     1648G4VisManager::Verbosity G4VisManager::GetVerbosity () {
     1649  return fVerbosity;
    15711650}
    15721651
Note: See TracChangeset for help on using the changeset viewer.