Changeset 1042 for trunk


Ignore:
Timestamp:
May 14, 2009, 6:24:00 PM (15 years ago)
Author:
garnier
Message:

avant cvs

Location:
trunk/source/visualization
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/History

    r1041 r1042  
    1 $Id: History,v 1.439 2009/05/13 10:47:29 lgarnier Exp $
     1$Id: History,v 1.440 2009/05/13 18:21:03 allison Exp $
    22-------------------------------------------------------------------
    33
     
    2424History file for visualization category
    2525---------------------------------------
     26
     2713th May 2009  John Allison
     28- visman-V09-02-02: Added /vis/viewer/set/targetPoint and minor
     29  wording improvements.
    2630
    27316 May 2009, Laurent Garnier
  • trunk/source/visualization/OpenGL/include/G4OpenGLViewer.hh

    r1041 r1042  
    114114  G4int                             fPrintSizeY;
    115115  G4String                          fPrintFilename;
    116   G4int                             fPrintFilenameIndex;
     116  int                               fPrintFilenameIndex;
    117117  unsigned int fWinSize_x, fWinSize_y;
    118118  G4float                           fPointSize;
  • trunk/source/visualization/OpenGL/src/G4OpenGLViewer.cc

    r1041 r1042  
    8484fPrintSizeX(-1),
    8585fPrintSizeY(-1),
    86 fPrintFilename ("G4OpenGL.eps"),
     86fPrintFilename ("G4OpenGL"),
    8787fPrintFilenameIndex(0),
    8888fPointSize (0),
     
    503503    G4cerr << "Error while saving file... "<<getRealPrintFilename().c_str()<< G4endl;
    504504  } else {
    505     G4cout << "File "<<fPrintFilename.c_str()<<" has been saved " << G4endl;
     505    G4cout << "File "<<getRealPrintFilename().c_str()<<" has been saved " << G4endl;
    506506  }
    507507
     
    691691
    692692void G4OpenGLViewer::setPrintFilename(G4String name,G4bool inc) {
     693#ifdef G4DEBUG_VIS_OGL
     694  printf("G4OpenGLViewer::setPrintFilename :%s Inc:%d\n",name.c_str(),inc);
     695#endif
     696
    693697  if (name != "") {
    694698    fPrintFilename = name;
     
    704708
    705709std::string G4OpenGLViewer::getRealPrintFilename() {
    706   std:: string temp = fPrintFilename;
     710  std::string temp = fPrintFilename;
    707711  if (fPrintFilenameIndex != -1) {
    708     temp +="_"+fPrintFilenameIndex;
     712    temp += std::string("_");
     713    std::ostringstream os;
     714    os << fPrintFilenameIndex;
     715    std::string nb_str = os.str();
     716    temp += nb_str;
    709717  }
    710718  temp += ".eps";
     719#ifdef G4DEBUG_VIS_OGL
     720  printf("G4OpenGLViewer::getRealPrintFilename :%s --%d\n",temp.c_str(),fPrintFilenameIndex);
     721#endif
    711722  return temp;
    712723}
  • trunk/source/visualization/management/History

    r944 r1042  
    1 $Id: History,v 1.120 2009/03/14 11:44:46 allison Exp $
     1$Id: History,v 1.121 2009/05/13 18:18:03 allison Exp $
    22
    33-------------------------------------------------------------------
     
    2626History file for visualization management sub-category
    2727------------------------------------------------------
     28
     2913th May 2009  John Allison  (visman-V09-02-02)
     30- G4VisCommandsViewerSet.hh/cc: Added /vis/viewer/set/targetPoint.
     31- G4VisManager.cc: End of run event keeping information improved.
    2832
    293314th March 2009  John Allison  (visman-V09-02-01)
  • trunk/source/visualization/management/include/G4VisCommandsViewerSet.hh

    r954 r1042  
    2525//
    2626//
    27 // $Id: G4VisCommandsViewerSet.hh,v 1.22 2007/04/03 13:33:16 allison Exp $
    28 // GEANT4 tag $Name: $
     27// $Id: G4VisCommandsViewerSet.hh,v 1.23 2009/05/13 18:17:25 allison Exp $
     28// GEANT4 tag $Name: HEAD $
    2929
    3030// /vis/viewer/set commands - John Allison  16th May 2000
     
    4242class G4UIcmdWithAnInteger;
    4343class G4UIcmdWithADouble;
     44class G4UIcmdWith3VectorAndUnit;
    4445
    4546class G4VisCommandsViewerSet: public G4VVisCommandViewer {
     
    7374  G4UIcommand*          fpCommandSectionPlane;
    7475  G4UIcmdWithAString*   fpCommandStyle;
     76  G4UIcmdWith3VectorAndUnit* fpCommandTargetPoint;
    7577  G4UIcommand*          fpCommandUpThetaPhi;
    7678  G4UIcommand*          fpCommandUpVector;
Note: See TracChangeset for help on using the changeset viewer.