Changeset 1234 for trunk/examples


Ignore:
Timestamp:
Jan 28, 2010, 5:01:35 PM (14 years ago)
Author:
garnier
Message:

correct pb of flicker at repaint

Location:
trunk/examples/novice/N03
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/novice/N03/G4History.macro

    r1230 r1234  
    11/run/verbose 2
    22/vis/scene/create
    3 /vis/open OGLIQt 400x400
     3/vis/open OGLIQt 450x420
    44/vis/sceneHandler/create OGLIQt
    55/vis/sceneHandler/attach
    6 /vis/viewer/create ! ! 400x400
     6/vis/viewer/create ! ! 450x420
    77/vis/viewer/refresh
    88/vis/scene/notifyHandlers
     
    5757/gui/addButton viewer "Update scene" "/vis/scene/notifyHandlers"
    5858/N03/event/printModulo 100
     59/vis/open OGLSQt
     60/vis/sceneHandler/create OGLSQt
     61/vis/sceneHandler/attach
     62/vis/viewer/create ! ! 600
     63/vis/viewer/refresh
  • trunk/examples/novice/N03/exampleN03.cc

    r1209 r1234  
    3737#include "Randomize.hh"
    3838
     39#include "qcoreapplication.h"
     40
    3941#include "ExN03DetectorConstruction.hh"
    4042#include "ExN03PhysicsList.hh"
     
    5254#include "G4UIExecutive.hh"
    5355#endif
     56
     57//#define MAC_OSX_APP 1
    5458
    5559//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
     
    108112  G4UImanager* UImanager = G4UImanager::GetUIpointer();
    109113 
     114
     115#ifdef MAC_OSX_APP
     116  std::string progName = argv[0];
     117  std::string::size_type pos = progName.find(".app/Contents/MacOS/",0);
     118  if (pos != std::string::npos) {
     119    std::string progDir = progName.substr(0,pos+4);
     120    chdir((progDir+"/Contents/macros").c_str());
     121    argc = 1;
     122  }
     123#endif
     124
    110125  if (argc!=1)   // batch mode
    111126    {
  • trunk/examples/novice/N03/vis.mac

    r1230 r1234  
    2222#
    2323# Use this open statement instead for OpenGL in immediate mode.
    24 /vis/open OGLIQt 400x400
     24/vis/open OGLIQt 450x420
    2525#
    2626# Use this open statement instead to get a HepRep version 1 file
  • trunk/examples/novice/N03/visTutor/exN03Vis15.mac

    r921 r1234  
    5555/run/beamOn 1
    5656
     57/vis/ogl/printEPS
  • trunk/examples/novice/N03/visTutor/exN03Vis15.mac~

    r921 r1234  
    11#######################################################################
    2 #  MACRO FILE NAME: exN03Vis15.mac                                    #
     2#  MACRO FILE NAME: exN03Vis12.mac                                     #
    33#                                                                     #
    44#  AUTHOR(S): Laurent Garnier                                         #
     
    88#  CONTENTS: A basic macro for demonstrating Inventor driver          #
    99#                                                                     #
    10 #  USAGE:  % $G4BINDIR/exampleN03  visTutor/exN03Vis15.mac            #
     10#  USAGE:  % $G4BINDIR/exampleN03  visTutor/exN03Vis12.mac            #
    1111#                                                                     #
    12 #  REQUIRED PLATFORMS & SOFTWARES: Unix, Motif, X-window, OpenGL,Qt   #
    13 #                                  HEPVis                             #
    14 #                                  Inventor (TGS or SoFree)           #
     12#  REQUIRED PLATFORMS & SOFTWARES: Unix, Motif, X-window, OpenGL ,Qt  #
    1513#                                                                     #
    1614#  ENVIRONMENTAL VARIABLES (C-MACROS) FOR INSTALLATION:               #
    1715#  (See geant4/source/visualization/README for details.)              #
    1816#                                                                     #
    19 #    % setenv G4VIS_BUILD_OIX_DRIVER       1                          #
     17#    % setenv G4VIS_BUILD_OGLQT
    2018#                                                                     #
    2119#  ENVIRONMENTAL VARIABLES (C-MACROS) FOR COMPILATION:                #
    2220#  (See geant4/source/visualization/README for details.)              #
    2321#                                                                     #
    24 #    % setenv G4VIS_USE_OIQT               1                          #
     22#    % setenv G4VIS_USE_OGLQT               1                          #
    2523#                                                                     #
    2624#  ADDITIONAL NOTES:                                                  #
     
    3129/vis/scene/create
    3230
    33 # Invoke the OpenInventor driver
    34 /vis/sceneHandler/create OGLIQt
     31# Invoke the Qt driver
     32/vis/sceneHandler/create OGLSQt
    3533/vis/viewer/create
    3634
     
    4745# Bird-eye view of events
    4846/vis/viewer/reset
    49 /vis/viewer/set/viewpointThetaPhi   45 45
     47/vis/viewer/set/viewpointThetaPhi 45 45
    5048
    5149/vis/scene/notifyHandlers
    5250
    5351/control/verbose 2
    54 #######################################################################
    55 #   Controls on an Inventor examiner viewer are :                     #
    56 #  - in picking mode (cursor is the upper left arrow)                 #
    57 #   Ctrl + pick a volume : see daughters.                             #
    58 #   Shift + pick a volume : see mother.                               #
    59 #  - in viewing mode (cursor is the hand)                             #
    60 #   Left-button + pointer move : rotate.                              #
    61 #   Ctrl+Left-button + pointer move : pane.                           #
    62 #   Ctrl+Shift+Left-button + pointer move : scale.                    #
    63 #   Middle-button + pointer move : pane.                              #
    64 #                                                                     #
    65 #######################################################################
    6652
    6753/vis/viewer/update
Note: See TracChangeset for help on using the changeset viewer.