Ignore:
Timestamp:
Jan 8, 2010, 11:56:51 AM (16 years ago)
Author:
garnier
Message:

update geant4.9.3 tag

Location:
trunk/source/visualization/gMocren
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/gMocren/History

    r1161 r1228  
    1 $Id: History,v 1.7 2009/11/05 11:37:12 gcosmo Exp $
     1$Id: History,v 1.9 2009/12/03 11:44:42 akimura Exp $
    22-------------------------------------------------------------------
    33
     
    2020History file for visualization/gMocren sub-category
    2121---------------------------------------------------
     22
     233 December 2009  Akinori Kimura
     24Line 363 of G4GMocrenFileSceneHandler.cc was deleted.
     25It was a debug code with G4cout.
     26Another file I/O bug was fixed. The following files were committed.
     27G4GMocrenFileViewer.cc
     28G4GMocrenFileSceneHandler.cc
     29G4GMocrenIO.{cc,hh}
    2230
    23315 November 2009  Gabriele Cosmo (gMocren-V09-02-03)
  • trunk/source/visualization/gMocren/include/G4GMocrenIO.hh

    r1142 r1228  
    4343
    4444  void clear();
     45  void clearImage();
    4546  void setSize(int _size[3]);
    4647  void getSize(int _size[3]);
     
    292293  void setModalityImage(short * _image);
    293294  short * getModalityImage(int _z);
     295  void clearModalityImage();
    294296  // set/get the modality image density map
    295297  void setModalityImageDensityMap(std::vector<float> & _map);
  • trunk/source/visualization/gMocren/src/G4GMocrenFileCTtoDensityMap.cc

    r1142 r1228  
     1//
     2// ********************************************************************
     3// * License and Disclaimer                                           *
     4// *                                                                  *
     5// * The  Geant4 software  is  copyright of the Copyright Holders  of *
     6// * the Geant4 Collaboration.  It is provided  under  the terms  and *
     7// * conditions of the Geant4 Software License,  included in the file *
     8// * LICENSE and available at  http://cern.ch/geant4/license .  These *
     9// * include a list of copyright holders.                             *
     10// *                                                                  *
     11// * Neither the authors of this software system, nor their employing *
     12// * institutes,nor the agencies providing financial support for this *
     13// * work  make  any representation or  warranty, express or implied, *
     14// * regarding  this  software system or assume any liability for its *
     15// * use.  Please see the license in the file  LICENSE  and URL above *
     16// * for the full disclaimer and the limitation of liability.         *
     17// *                                                                  *
     18// * This  code  implementation is the result of  the  scientific and *
     19// * technical work of the GEANT4 collaboration.                      *
     20// * By using,  copying,  modifying or  distributing the software (or *
     21// * any work based  on the software)  you  agree  to acknowledge its *
     22// * use  in  resulting  scientific  publications,  and indicate your *
     23// * acceptance of all terms of the Geant4 Software license.          *
     24// ********************************************************************
     25//
    126#include "G4GMocrenFileCTtoDensityMap.hh"
    227
  • trunk/source/visualization/gMocren/src/G4GMocrenFileSceneHandler.cc

    r1161 r1228  
    2525//
    2626//
    27 // $Id: G4GMocrenFileSceneHandler.cc,v 1.10 2009/11/05 11:34:01 gcosmo Exp $
     27// $Id: G4GMocrenFileSceneHandler.cc,v 1.12 2009/12/03 11:44:42 akimura Exp $
    2828// GEANT4 tag $Name:  $
    2929//
     
    301301   
    302302    // initializations
     303    //kgMocrenIO->clearModalityImage();
    303304    kgMocrenIO->clearDoseDistAll();
    304305    kgMocrenIO->clearROIAll();
     
    361362            modality[ixy] = kgMocrenIO->convertDensityToHU(itr->second);
    362363          } else {
    363             G4cout << "ABC : " << x << ", " <<  y << ", " << z << G4endl;
    364364            modality[ixy] = -1024;
    365365          }
  • trunk/source/visualization/gMocren/src/G4GMocrenFileViewer.cc

    r1142 r1228  
    2525//
    2626//
    27 // $Id: G4GMocrenFileViewer.cc,v 1.2 2009/10/12 10:04:35 akimura Exp $
     27// $Id: G4GMocrenFileViewer.cc,v 1.3 2009/12/03 11:44:42 akimura Exp $
    2828// GEANT4 tag $Name:  $
    2929//
     
    107107    G4cerr << "***** G4GMocrenFileViewer::ClearView (): No effects " << G4endl;
    108108
    109   if(kSceneHandler.kGddDest) {
    110     kSceneHandler.kGddDest.close();
     109  //if(kSceneHandler.kGddDest) {
     110    //kSceneHandler.kGddDest.close();
    111111    // Re-open with same filename...
    112     kSceneHandler.kGddDest.open(kSceneHandler.kGddFileName);
     112    //kSceneHandler.kGddDest.open(kSceneHandler.kGddFileName);
    113113    kSceneHandler.kFlagInModeling = false;
    114114    kSceneHandler.GFBeginModeling();
    115   }
     115    //}
    116116}
    117117
  • trunk/source/visualization/gMocren/src/G4GMocrenIO.cc

    r1161 r1228  
    2525//
    2626//
    27 // $Id: G4GMocrenIO.cc,v 1.4 2009/11/05 03:14:12 akimura Exp $
     27// $Id: G4GMocrenIO.cc,v 1.5 2009/12/03 11:44:42 akimura Exp $
    2828// GEANT4 tag $Name:  $
    2929//
     
    170170  kMinmax[1] = (T)-32109;
    171171
    172   /*
    173     if(!image.empty()) {
    174     typename std::vector<T *>::iterator itr;
    175     for(itr = image.begin(); itr != image.end(); itr++) {
     172  clearImage();
     173}
     174template <typename T>
     175void GMocrenDataPrimitive<T>::clearImage() {
     176  typename std::vector<T *>::iterator itr;
     177  for(itr = kImage.begin(); itr != kImage.end(); itr++) {
    176178    delete [] *itr;
    177     }
    178     }
    179   */
     179  }
    180180  kImage.clear();
    181181}
     
    33683368  return kModality.getImage(_z);
    33693369}
     3370void G4GMocrenIO::clearModalityImage() {
     3371 
     3372  kModality.clearImage();
     3373}
    33703374// set/get the modality image density map
    33713375void G4GMocrenIO::setModalityImageDensityMap(std::vector<float> & _map) {
Note: See TracChangeset for help on using the changeset viewer.