Changeset 610 for trunk


Ignore:
Timestamp:
Nov 22, 2007, 6:07:00 PM (17 years ago)
Author:
garnier
Message:

r661@mac-90108: laurentgarnier | 2007-11-22 18:10:43 +0100
en debug

Location:
trunk/geant4
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • trunk/geant4/N03/G4History.macro

    r609 r610  
    1717/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
    1818/vis/scene/endOfEventAction accumulate
    19 /vis/scene/notifyHandlers
  • trunk/geant4/N03/vis.mac

    r609 r610  
     1# $Id: vis.mac,v 1.6 2007/06/13 10:36:39 maire Exp $
    12#
    23# Macro file for the initialization phase of "exampleN03.cc"
     
    2122#
    2223# Use this open statement instead for OpenGL in immediate mode.
     24#/vis/open OGLIX
    2325/vis/open OGLSQT
    24 #/vis/open OGLIX
    2526#
    2627# Use this open statement instead to get a HepRep version 1 file
  • trunk/geant4/interfaces/GAG/GNUmakefile

    r476 r610  
    1010
    1111include $(G4INSTALL)/config/architecture.gmk
    12 include $(G4INSTALL)/config/G4UI_BUILD.gmk
     12#include $(G4INSTALL)/config/G4UI_BUILD.gmk
    1313include $(G4INSTALL)/config/interactivity.gmk
    1414
  • trunk/geant4/interfaces/basic/src/G4UIQt.cc

    r608 r610  
    3030// L. Garnier
    3131
    32 //#define DEBUG
     32#define GEANT4_QT_DEBUG
    3333
    3434#ifdef G4UI_BUILD_QT_SESSION
     
    128128#endif
    129129
     130  // Set layouts
     131
     132#if QT_VERSION < 0x040000
    130133  QSplitter *splitter = new QSplitter(Qt::Vertical);
    131   fTextArea = new QTextEdit(fMainWindow);
    132   QPushButton *clearButton = new QPushButton("clear",fMainWindow);
     134
     135  QWidget* topWidget = new QWidget(splitter);
     136  QWidget* bottomWidget = new QWidget(splitter);
     137
     138  QVBoxLayout *layoutTop = new QVBoxLayout(topWidget);
     139  QVBoxLayout *layoutBottom = new QVBoxLayout(bottomWidget);
     140#else
     141  QWidget* topWidget = new QWidget();
     142  QWidget* bottomWidget = new QWidget();
     143
     144  QVBoxLayout *layoutTop = new QVBoxLayout;
     145  QVBoxLayout *layoutBottom = new QVBoxLayout;
     146#endif
     147
     148  // fill them
     149
     150  fTextArea = new QTextEdit(topWidget);
     151#ifdef GEANT4_QT_DEBUG
     152  printf("G4UIQt:: end\n");
     153#endif
     154#ifdef GEANT4_QT_DEBUG
     155  printf("G4UIQt::PushButton 1\n");
     156#endif
     157  QPushButton *clearButton = new QPushButton("clear",topWidget);
     158#ifdef GEANT4_QT_DEBUG
     159  printf("G4UIQt::end1\n");
     160#endif
    133161  connect(clearButton, SIGNAL(clicked()), SLOT(ClearButtonCallback()));
    134162
    135163#if QT_VERSION < 0x040000
    136   fCommandHistoryArea = new QListView();
     164  fCommandHistoryArea = new QListView(bottomWidget);
    137165  fCommandHistoryArea->setSelectionMode(QListView::Single);
    138166  connect(fCommandHistoryArea, SIGNAL(selectionChanged()), SLOT(CommandHistoryCallback()));
     
    143171#endif
    144172  fCommandHistoryArea->installEventFilter(this);
    145   fCommandLabel = new QLabel("",fMainWindow);
    146 
    147   fCommandArea = new QLineEdit(fMainWindow);
     173  fCommandLabel = new QLabel("",bottomWidget);
     174
     175  fCommandArea = new QLineEdit(bottomWidget);
    148176  fCommandArea->installEventFilter(this);
     177#ifdef GEANT4_QT_DEBUG
     178  printf("G4UIQt::   1\n");
     179#endif
    149180#if QT_VERSION < 0x040000
    150181  fCommandArea->setActiveWindow();
     
    163194
    164195
    165   // Set layouts
    166 
    167 #if QT_VERSION < 0x040000
    168   QWidget* topWidget = new QWidget(splitter);
    169   QWidget* bottomWidget = new QWidget(splitter);
    170 
    171   QVBoxLayout *layoutTop = new QVBoxLayout(topWidget);
    172   QVBoxLayout *layoutBottom = new QVBoxLayout(bottomWidget);
    173 #else
    174   QWidget* topWidget = new QWidget();
    175   QWidget* bottomWidget = new QWidget();
    176 
    177   QVBoxLayout *layoutTop = new QVBoxLayout;
    178   QVBoxLayout *layoutBottom = new QVBoxLayout;
    179 #endif
    180 
     196#ifdef GEANT4_QT_DEBUG
     197  printf("G4UIQt::   2\n");
     198#endif
     199
     200#ifdef GEANT4_QT_DEBUG
     201  printf("G4UIQt::   3\n");
     202#endif
    181203
    182204
     
    188210#endif
    189211
     212#ifdef GEANT4_QT_DEBUG
     213  printf("G4UIQt::   4\n");
     214#endif
    190215  layoutBottom->addWidget(fCommandHistoryArea);
    191216  layoutBottom->addWidget(fCommandLabel);
     
    199224
    200225
     226#ifdef GEANT4_QT_DEBUG
     227  printf("G4UIQt::   5\n");
     228#endif
    201229  fMainWindow->setCentralWidget(splitter);
    202230
     
    213241  fMainWindow->menuBar()->insertItem( QString("&Help"), helpMenu );
    214242
     243#ifdef GEANT4_QT_DEBUG
     244  printf("G4UIQt::   6\n");
     245#endif
    215246
    216247#else
     
    223254  QMenu *helpMenu = fMainWindow->menuBar()->addMenu("Help");
    224255  helpMenu->addAction("Show Help", this, SLOT(ShowHelpCallback()));
     256#endif
     257#ifdef GEANT4_QT_DEBUG
     258  printf("G4UIQt::   7\n");
    225259#endif
    226260
     
    236270    splitter->setSizes(vals);
    237271  }
     272#ifdef GEANT4_QT_DEBUG
     273  printf("G4UIQt::   8\n");
     274#endif
    238275
    239276  if(UI!=NULL) UI->SetCoutDestination(this);  // TO KEEP
     
    282319#endif
    283320  interactorManager->DisableSecondaryLoop (); // TO KEEP
    284   ((QApplication*)interactorManager->GetMainInteractor())->exec();
     321  if ((QApplication*)interactorManager->GetMainInteractor())
     322    ((QApplication*)interactorManager->GetMainInteractor())->exec();
     323
    285324  // on ne passe pas le dessous ? FIXME ????
    286325  // je ne pense pas 13/06
     
    548587
    549588#if QT_VERSION < 0x040000
     589#ifdef GEANT4_QT_DEBUG
     590  printf("G4UIQt::QTextEdit 1\n");
     591#endif
    550592    fHelpArea = new QTextEdit(splitter);
    551 #else
     593#ifdef GEANT4_QT_DEBUG
     594  printf("G4UIQt::end 1\n");
     595#endif
     596#else
     597#ifdef GEANT4_QT_DEBUG
     598  printf("G4UIQt::QTextEdit 2\n");
     599#endif
    552600    fHelpArea = new QTextEdit();
     601#ifdef GEANT4_QT_DEBUG
     602  printf("G4UIQt::end 2\n");
     603#endif
    553604#endif
    554605    fHelpArea->setReadOnly(true);
  • trunk/geant4/interfaces/common/src/G4Qt.cc

    r608 r610  
    3232#if defined(G4INTY_BUILD_QT) || defined(G4INTY_USE_QT)
    3333
     34#define GEANT4_QT_DEBUG
     35
    3436#include <stdlib.h>
    3537#include <string.h>
     
    4042
    4143#include <qapplication.h>
     44#include <qpushbutton.h> // EN TEST
    4245
    4346
     
    9699#endif
    97100#if QT_VERSION < 0x040000
    98     qApp = new QApplication (a_argn, a_args);
     101    // EN TEST    qApp = new QApplication (a_argn, a_args);
    99102    //    QApplication qApp(a_argn, a_args);
    100103    //    if(&qApp == NULL) {
     
    119122  }
    120123#ifdef GEANT4_QT_DEBUG
    121   if (qApp) {
     124  //  if (qApp) {
    122125    printf("G4Qt::qApp exist\n");
    123   }  else {
    124     printf("G4Qt::qApp not exist\n");
    125   }
     126    //  =================== EN TEST ==============
     127    new QApplication ( a_argn, a_args );
     128
     129    QPushButton hello( "Hello world!", 0 );
     130    hello.resize( 100, 30 );
     131
     132    qApp->setMainWidget( &hello );
     133    hello.show();
     134    qApp->exec();
     135    printf("G4Qt::qApp exist END\n");
     136    //  =================== EN TEST ==============
     137    //  }  else {
     138    //    printf("G4Qt::qApp not exist\n");
     139    //  }
    126140#endif
    127141  //  AddDispatcher     ((G4DispatchFunction)XtDispatchEvent);
  • trunk/geant4/specific-geant4-dev.sh

    r609 r610  
    2727  export G4RADIOACTIVEDATA=$G4DATA/RadiativeDecay
    2828  export G4LEDATA=$G4DATA/G4EMLOW3.0
    29   export QTHOME=/usr/local/Qt/4.3.0
     29  export QTHOME=/usr/local/Qt/3.3.8
    3030  #//////////////////////////////////////////////////////////
    3131  # GUI, Visualization :
  • trunk/geant4/visualization/G4History.macro

    r595 r610  
    11/run/verbose 2
    22/vis/scene/create
    3 /vis/open DAWNFILE
    4 /vis/sceneHandler/create DAWNFILE
     3/vis/open OGLSQT
     4/vis/sceneHandler/create OGLSQT
    55/vis/sceneHandler/attach
    66/vis/viewer/create ! ! 600
    7 /vis/open OGLSQT
    8 /control/execute visTutor/gui.mac
    9 /gui/addMenu file File
    10 /gui/addButton file Continue continue
    11 /gui/addButton file Exit "exit"
    12 /gui/addMenu run Run
    13 /gui/addButton run "beamOn 1" "/run/beamOn 1"
    14 /gui/addButton run run1 "/control/execute run1.mac"
    15 /gui/addButton run run2 "/control/execute run2.mac"
    16 /gui/addMenu gun Gun
    17 /gui/addButton gun "50 MeV" "/gun/energy 50 MeV"
    18 /gui/addButton gun "1 GeV" "/gun/energy 1 GeV"
    19 /gui/addButton gun "10 GeV" "/gun/energy 10 GeV"
    20 /gui/addButton gun "e-" "/gun/particle e-"
    21 /gui/addButton gun "pi0" "/gun/particle pi0"
    22 /gui/addButton gun "pi+" "/gun/particle pi+"
    23 /gui/addButton gun "neutron" "/gun/particle neutron"
    24 /gui/addButton gun "proton" "/gun/particle proton"
    25 /gui/addMenu vis Vis
    26 /gui/addButton vis Vis0(OGLIX) "/control/execute visTutor/exN03Vis0.mac"
    27 /gui/addButton vis Vis1(OGLSX) "/control/execute visTutor/exN03Vis1.mac"
    28 /gui/addButton vis Vis2(OGLSX) "/control/execute visTutor/exN03Vis2.mac"
    29 /gui/addButton vis Vis3(OGLSX) "/control/execute visTutor/exN03Vis3.mac"
    30 /gui/addButton vis Vis4(OGLIX) "/control/execute visTutor/exN03Vis4.mac"
    31 /gui/addButton vis Vis12(OGLIQT) "/control/execute visTutor/exN03Vis12.mac"
    32 /gui/addButton vis Vis14(OGLSQT) "/control/execute visTutor/exN03Vis14.mac"
    33 /gui/addButton vis Vis5(OIX) "/control/execute visTutor/exN03Vis5.mac"
    34 /gui/addButton vis Vis6(VRML2FILE) "/control/execute visTutor/exN03Vis6.mac"
    35 /gui/addButton vis Vis7(DAWNFILE) "/control/execute visTutor/exN03Vis7.mac"
    36 /gui/addButton vis Vis8(DAWNFILE) "/control/execute visTutor/exN03Vis8.mac"
    37 /gui/addButton vis Vis9(OGLIWIN) "/control/execute visTutor/exN03Vis9.mac"
    38 /gui/addButton vis Vis10(OIWin32) "/control/execute visTutor/exN03Vis10.mac"
    39 /gui/addButton vis Vis11(OGLSXm) "/control/execute visTutor/exN03Vis11.mac"
    40 /gui/addMenu viewer Viewer
    41 /gui/addButton viewer "Set style solid" "/vis/viewer/set/style solid"
    42 /gui/addButton viewer "Set style wireframe" "/vis/viewer/set/style wire"
    43 /gui/addButton viewer "Update scene" "/vis/scene/notifyHandlers"
    44 /N03/event/printModulo 100
     7/vis/viewer/refresh
     8/vis/scene/notifyHandlers
     9/vis/viewer/flush
     10/vis/viewer/refresh viewer-0
     11/vis/viewer/update viewer-0
     12/vis/scene/add/trajectories
     13/tracking/storeTrajectory 1
     14/vis/scene/notifyHandlers
     15/vis/modeling/trajectories/create/drawByCharge
     16/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
     17/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
     18/vis/scene/endOfEventAction accumulate
  • trunk/geant4/visualization/OpenGL/History

    r609 r610  
    1 $Id: History,v 1.100 2007/11/16 10:41:54 lgarnier Exp $
     1$Id: History,v 1.101 2007/11/16 11:15:43 lgarnier Exp $
    22-------------------------------------------------------------------
    33
     
    2121-------------------------------------
    2222
    23 <<<<<<< History
     2315th November 2007  John Allison  (opengl-V09-00-03)
     24- Re-introduced Qt files, now properly protected by cpp flags.
     25- cpp flags also added to some other files not previously properly protected.
     26
    242715 Nov 2007, Laurent Garnier
    2528 - G4UIQt,G4Qt : Adding a GEANT4_QT_DEBUG flag to hide all debug messages
     
    3336     Adding protection for Qt version between 4.0 and 4.2
    3437
     3813th November 2007  John Allison  (opengl-V09-00-02)
     39- Removed Qt files from tag.  File are still at head - need fixing.
     40
    354113 Nov 2007, Laurent Garnier
    3642 - G4UIQt,G4Qt : Moving all moc in one big file interface/G4UIQT_moc.cc,
    3743   including Qt3 and Qt4 moc support
     44
     4510th November 2007  John Allison  (opengl-V09-00-01)
     46- Moved WinSize_x, y to base class G4OpenGLViewer.
     47- Minor improvement in guidance for /vis/ogl/printEPS.
    3848
    394909 Nov 2007, Laurent Garnier
     
    5565   - moc_G4OpenGLQtViewer.cc
    5666
    57 =======
    58 15th November 2007  John Allison  (opengl-V09-00-03)
    59 - Re-introduced Qt files, now properly protected by cpp flags.
    60 - cpp flags also added to some other files not previously properly protected.
    61 
    62 13th November 2007  John Allison  (opengl-V09-00-02)
    63 - Removed Qt files from tag.  File are still at head - need fixing.
    64 
    65 10th November 2007  John Allison  (opengl-V09-00-01)
    66 - Moved WinSize_x, y to base class G4OpenGLViewer.
    67 - Minor improvement in guidance for /vis/ogl/printEPS.
    68 
    696728th September 2007  lgarnier
    7068- first import of G4UI Qt files : Do not try to compil them
    7169
    72 >>>>>>> 1.99
    737021st August 2007  John Allison  (opengl-V09-00-00)
    7471- Removed redundant G4OpenGLXViewerMessenger.
  • trunk/geant4/visualization/OpenGL/include/G4OpenGLQtViewer.hh

    r606 r610  
    132132  void toggleFullScreen(bool);
    133133
    134   void dialogClosed();
    135134};
    136135
  • trunk/geant4/visualization/OpenGL/src/G4OpenGLQtViewer.cc

    r608 r610  
    3636#ifdef G4VIS_BUILD_OPENGLQT_DRIVER
    3737
     38#define GEANT4_QT_DEBUG
     39
    3840#include "G4OpenGLQtViewer.hh"
    3941
     
    194196    }
    195197#endif
     198    // FIXME : not tested in Qt4
     199    glWidget->reparent(GLWindow,0,QPoint(0,0)); 
    196200
    197201    if (found==false) {
     
    224228  GLWindow->resize(300, 300);
    225229  GLWindow->move(900,300);
     230#ifdef GEANT4_QT_DEBUG
     231  printf("G4OpenGLQtViewer::Should show glWidget\n");
     232#endif
    226233  GLWindow->show();
    227234 
     
    229236  //  GLWindow->setAttribute(Qt::WA_DeleteOnClose);
    230237
     238#if QT_VERSION >= 0x040000
    231239  QObject ::connect(GLWindow,
    232240                    SIGNAL(rejected()),
    233241                    this,
    234242                    SLOT(dialogClosed()));
     243#endif
    235244
    236245  WinSize_x = 400;
     
    251260}
    252261
     262#if QT_VERSION >= 0x040000
    253263/**  Close the dialog and set the pointer to NULL
    254264 */
    255265void G4OpenGLQtViewer::dialogClosed() {
    256   GLWindow = NULL;
    257 }
    258 
     266#ifdef GEANT4_QT_DEBUG
     267  printf("G4OpenGLQtViewer::dialogClosed END\n");
     268#endif
     269  //  GLWindow = NULL;
     270}
     271#endif
    259272
    260273//////////////////////////////////////////////////////////////////////////////
     
    340353
    341354  QMenu *mRepresentation = mStyle->addMenu("&Representation");
    342   QAction *polyhedron = mRepresentation->addAction("Polyhedron");
     355 QAction *polyhedron = mRepresentation->addAction("Polyhedron");
    343356  QAction *nurbs = mRepresentation->addAction("NURBS");
    344357#endif
     
    362375  fDrawingWireframe = new QPopupMenu(mDrawing);
    363376  mDrawing->insertItem("&Wireframe",fDrawingWireframe);
     377#ifdef GEANT4_QT_DEBUG
     378  printf("G4OpenGLQtViewer:: fDrawingWireframe creation\n");
     379#endif
    364380
    365381  mDrawing->setCheckable(true);
     
    410426    mDrawing->clear();
    411427  }
     428#ifdef GEANT4_QT_DEBUG
     429  printf("G4OpenGLQtViewer:: fDrawingWireframe 1\n");
     430#endif
     431  QObject ::connect(fDrawingWireframe,
     432                    SIGNAL(activated(int)),
     433                    this,
     434                    SLOT(actionDrawingWireframe()));
     435#ifdef GEANT4_QT_DEBUG
     436  printf("G4OpenGLQtViewer:: fDrawingWireframe 2\n");
     437#endif
     438  QObject ::connect(fDrawingLineRemoval,
     439                    SIGNAL(activated(int)),
     440                    this,
     441                    SLOT(actionDrawingLineRemoval()));
     442  QObject ::connect(fDrawingSurfaceRemoval,
     443                    SIGNAL(activated(int)),
     444                    this,
     445                    SLOT(actionDrawingSurfaceRemoval()));
     446  QObject ::connect(fDrawingLineSurfaceRemoval,
     447                    SIGNAL(activated(int)),
     448                    this,
     449                    SLOT(actionDrawingLineSurfaceRemoval()));
    412450#else
    413451  if (d_style == G4ViewParameters::wireframe) {
     
    422460    mDrawing->clear();
    423461  }
    424 #endif
    425 
    426462  QObject ::connect(fDrawingWireframe,
    427463                    SIGNAL(triggered(bool)),
     
    440476                    this,
    441477                    SLOT(actionDrawingLineSurfaceRemoval()));
     478#endif
     479
    442480
    443481
     
    477515  exitG4->addTo(mActions);
    478516  createEPS->addTo(mActions);
     517  QObject ::connect(controlPanels,
     518                    SIGNAL(activated()),
     519                    this,
     520                    SLOT(actionControlPanels()));
     521  QObject ::connect(exitG4,
     522                    SIGNAL(activated()),
     523                    this,
     524                    SLOT(actionExitG4()));
     525  QObject ::connect(createEPS,
     526                    SIGNAL(activated()),
     527                    this,
     528                    SLOT(actionCreateEPS()));
    479529
    480530#else
     
    484534  QAction *exitG4 = mActions->addAction("Exit to G4Vis >");
    485535  QAction *createEPS = mActions->addAction("Save as ...");
    486 #endif
    487 
    488536  QObject ::connect(controlPanels,
    489537                    SIGNAL(triggered()),
     
    498546                    this,
    499547                    SLOT(actionCreateEPS()));
     548#endif
     549
    500550
    501551
     
    653703    ((QPopupMenu*)action1->parent())->setItemChecked(1,true);
    654704   
    655   QObject ::connect(action1, SIGNAL(triggered(bool)),action2, SLOT(toggle()));
    656   QObject ::connect(action2, SIGNAL(triggered(bool)),action1, SLOT(toggle()));
     705  //FIXME : Should not work on Qt3
     706  QObject ::connect(action1, SIGNAL(activated()),action2, SLOT(toggle()));
     707  QObject ::connect(action2, SIGNAL(activated()),action1, SLOT(toggle()));
    657708
    658709  QObject ::connect(action1, SIGNAL(toggled(bool)),this, method.c_str());
  • trunk/geant4/visualization/OpenGL/src/G4OpenGLQtViewer_moc.cc

    r607 r610  
    100100    };
    101101    static const QUMethod slot_15 = {"toggleFullScreen", 1, param_slot_15 };
    102     static const QUMethod slot_16 = {"dialogClosed", 0, 0 };
    103102    static const QMetaData slot_tbl[] = {
    104103        { "actionDrawingWireframe()", &slot_0, QMetaData::Private },
     
    117116        { "toggleHaloing(bool)", &slot_13, QMetaData::Private },
    118117        { "toggleAux(bool)", &slot_14, QMetaData::Private },
    119         { "toggleFullScreen(bool)", &slot_15, QMetaData::Private },
    120         { "dialogClosed()", &slot_16, QMetaData::Private }
     118        { "toggleFullScreen(bool)", &slot_15, QMetaData::Private }
    121119    };
    122120    metaObj = QMetaObject::new_metaobject(
    123121        "G4OpenGLQtViewer", parentObject,
    124         slot_tbl, 17,
     122        slot_tbl, 16,
    125123        0, 0,
    126124#ifndef QT_NO_PROPERTIES
     
    161159    case 14: toggleAux((bool)static_QUType_bool.get(_o+1)); break;
    162160    case 15: toggleFullScreen((bool)static_QUType_bool.get(_o+1)); break;
    163     case 16: dialogClosed(); break;
    164161    default:
    165162        return QObject::qt_invoke( _id, _o );
  • trunk/geant4/visualization/OpenGL/src/G4OpenGLStoredQt.cc

    r608 r610  
    3232
    3333#ifdef G4VIS_BUILD_OPENGLQT_DRIVER
     34
     35#define GEANT4_QT_DEBUG
    3436
    3537#include "G4VisFeaturesOfOpenGL.hh"
  • trunk/geant4/visualization/OpenGL/src/G4OpenGLStoredQtViewer.cc

    r608 r610  
    3434#ifdef G4VIS_BUILD_OPENGLQT_DRIVER
    3535
     36#define GEANT4_QT_DEBUG
     37
    3638#include "G4OpenGLStoredQtViewer.hh"
    3739#include "G4VisManager.hh"
     
    127129#ifdef GEANT4_QT_DEBUG
    128130  printf("G4OpenGLStoredQtViewer::DrawView %d %d   VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV\n",WinSize_x, WinSize_y);
    129   printf("G4OpenGLStoredQtViewer::DrawView Dialog adress : %d\n",GLWindow);
    130131#endif
    131132   G4ViewParameters::DrawingStyle style = GetViewParameters().GetDrawingStyle();
  • trunk/geant4/visualization/management/src/G4VisManager.cc

    r606 r610  
    561561
    562562void G4VisManager::CreateSceneHandler (G4String name) {
     563  printf("G4VisManager::Initialise OK\n");
    563564  if (!fInitialised) Initialise ();
     565  printf("G4VisManager::Initialise OK END\n");
    564566  if (fpGraphicsSystem) {
    565567    G4VSceneHandler* pSceneHandler =
     
    583585void G4VisManager::CreateViewer (G4String name) {
    584586
     587    printf("G4VisManager::Initialise OK\n");
    585588  if (!fInitialised) Initialise ();
     589
     590  if (fpSceneHandler)
     591    printf("G4VisManager::CreateViewer OK\n");
     592  else
     593    printf("G4VisManager::CreateViewer NO SCENE HANDLER\n");
    586594
    587595  if (fpSceneHandler) {
  • trunk/geant4/visualization/vis.mac

    r609 r610  
     1# $Id: vis.mac,v 1.6 2007/06/13 10:36:39 maire Exp $
    12#
    23# Macro file for the initialization phase of "exampleN03.cc"
     
    2122#
    2223# Use this open statement instead for OpenGL in immediate mode.
     24#/vis/open OGLIX
    2325/vis/open OGLSQT
    24 #/vis/open OGLIX
    2526#
    2627# Use this open statement instead to get a HepRep version 1 file
Note: See TracChangeset for help on using the changeset viewer.