Changeset 1228 for trunk/source/visualization/gMocren
- Timestamp:
- Jan 8, 2010, 11:56:51 AM (16 years ago)
- Location:
- trunk/source/visualization/gMocren
- Files:
-
- 6 edited
-
History (modified) (2 diffs)
-
include/G4GMocrenIO.hh (modified) (2 diffs)
-
src/G4GMocrenFileCTtoDensityMap.cc (modified) (1 diff)
-
src/G4GMocrenFileSceneHandler.cc (modified) (3 diffs)
-
src/G4GMocrenFileViewer.cc (modified) (2 diffs)
-
src/G4GMocrenIO.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/gMocren/History
r1161 r1228 1 $Id: History,v 1. 7 2009/11/05 11:37:12 gcosmoExp $1 $Id: History,v 1.9 2009/12/03 11:44:42 akimura Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 20 20 History file for visualization/gMocren sub-category 21 21 --------------------------------------------------- 22 23 3 December 2009 Akinori Kimura 24 Line 363 of G4GMocrenFileSceneHandler.cc was deleted. 25 It was a debug code with G4cout. 26 Another file I/O bug was fixed. The following files were committed. 27 G4GMocrenFileViewer.cc 28 G4GMocrenFileSceneHandler.cc 29 G4GMocrenIO.{cc,hh} 22 30 23 31 5 November 2009 Gabriele Cosmo (gMocren-V09-02-03) -
trunk/source/visualization/gMocren/include/G4GMocrenIO.hh
r1142 r1228 43 43 44 44 void clear(); 45 void clearImage(); 45 46 void setSize(int _size[3]); 46 47 void getSize(int _size[3]); … … 292 293 void setModalityImage(short * _image); 293 294 short * getModalityImage(int _z); 295 void clearModalityImage(); 294 296 // set/get the modality image density map 295 297 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 // 1 26 #include "G4GMocrenFileCTtoDensityMap.hh" 2 27 -
trunk/source/visualization/gMocren/src/G4GMocrenFileSceneHandler.cc
r1161 r1228 25 25 // 26 26 // 27 // $Id: G4GMocrenFileSceneHandler.cc,v 1.1 0 2009/11/05 11:34:01 gcosmoExp $27 // $Id: G4GMocrenFileSceneHandler.cc,v 1.12 2009/12/03 11:44:42 akimura Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 301 301 302 302 // initializations 303 //kgMocrenIO->clearModalityImage(); 303 304 kgMocrenIO->clearDoseDistAll(); 304 305 kgMocrenIO->clearROIAll(); … … 361 362 modality[ixy] = kgMocrenIO->convertDensityToHU(itr->second); 362 363 } else { 363 G4cout << "ABC : " << x << ", " << y << ", " << z << G4endl;364 364 modality[ixy] = -1024; 365 365 } -
trunk/source/visualization/gMocren/src/G4GMocrenFileViewer.cc
r1142 r1228 25 25 // 26 26 // 27 // $Id: G4GMocrenFileViewer.cc,v 1. 2 2009/10/12 10:04:35akimura Exp $27 // $Id: G4GMocrenFileViewer.cc,v 1.3 2009/12/03 11:44:42 akimura Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 107 107 G4cerr << "***** G4GMocrenFileViewer::ClearView (): No effects " << G4endl; 108 108 109 if(kSceneHandler.kGddDest) {110 kSceneHandler.kGddDest.close();109 //if(kSceneHandler.kGddDest) { 110 //kSceneHandler.kGddDest.close(); 111 111 // Re-open with same filename... 112 kSceneHandler.kGddDest.open(kSceneHandler.kGddFileName);112 //kSceneHandler.kGddDest.open(kSceneHandler.kGddFileName); 113 113 kSceneHandler.kFlagInModeling = false; 114 114 kSceneHandler.GFBeginModeling(); 115 }115 //} 116 116 } 117 117 -
trunk/source/visualization/gMocren/src/G4GMocrenIO.cc
r1161 r1228 25 25 // 26 26 // 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 $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 170 170 kMinmax[1] = (T)-32109; 171 171 172 /* 173 if(!image.empty()) { 174 typename std::vector<T *>::iterator itr; 175 for(itr = image.begin(); itr != image.end(); itr++) { 172 clearImage(); 173 } 174 template <typename T> 175 void GMocrenDataPrimitive<T>::clearImage() { 176 typename std::vector<T *>::iterator itr; 177 for(itr = kImage.begin(); itr != kImage.end(); itr++) { 176 178 delete [] *itr; 177 } 178 } 179 */ 179 } 180 180 kImage.clear(); 181 181 } … … 3368 3368 return kModality.getImage(_z); 3369 3369 } 3370 void G4GMocrenIO::clearModalityImage() { 3371 3372 kModality.clearImage(); 3373 } 3370 3374 // set/get the modality image density map 3371 3375 void G4GMocrenIO::setModalityImageDensityMap(std::vector<float> & _map) {
Note:
See TracChangeset
for help on using the changeset viewer.
