From 41a88194c6cf13ffd489408b05fa48d27fd774dc Mon Sep 17 00:00:00 2001 From: jean-pierre roux Date: Wed, 27 May 2009 16:02:01 +0000 Subject: [PATCH] Fix names --- lib/src1/bruker2dicom.cxx | 7 ++++--- lib/src1/brukerobjectvaryingproperties.cpp | 14 +++++++------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/lib/src1/bruker2dicom.cxx b/lib/src1/bruker2dicom.cxx index 3dc9cbe..94f235e 100644 --- a/lib/src1/bruker2dicom.cxx +++ b/lib/src1/bruker2dicom.cxx @@ -159,7 +159,7 @@ bool Bruker2Dicom::Execute() cleanString(acqp_method); BrukerFieldData b_list_size = br_acqp.GetFieldData("ACQ_O1_list_size"); - b_list_size.PrintSelf(); //JP + //b_list_size.PrintSelf(); //JP nbSlices = b_list_size.GetIntValue()[0]; @@ -848,7 +848,7 @@ void Bruker2Dicom::dealWithCarto(GDCM_NAME_SPACE::DirListType &fileNames, int NX while (code[icode][0] != 0) { - sprintf(file_name_ident, "2dseq_%s",code[icode]); // e.g "2dseq_ADC" + sprintf(file_name_ident, "2dseq.%s",code[icode]); // e.g "2dseq_ADC" std::string::size_type loc = (*it).rfind(file_name_ident); if ( loc != std::string::npos ) @@ -1061,7 +1061,8 @@ void Bruker2Dicom::getImhDataType(BrukerFieldData &bDPT, std::string &mhdDataPix else { int brukerDataPixelType = bDPT.GetIntValue()[0]; - std::cout << "DATTYPE " << brukerDataPixelType << std::endl; + if (verbose) + std::cout << "DATTYPE " << brukerDataPixelType << std::endl; //std::string brukerDataPixelType = br_d3proc.GetFieldData("DATTYPE").GetStringValue()[0]; // Cross your fingers !!! diff --git a/lib/src1/brukerobjectvaryingproperties.cpp b/lib/src1/brukerobjectvaryingproperties.cpp index 4d1e575..f33a396 100644 --- a/lib/src1/brukerobjectvaryingproperties.cpp +++ b/lib/src1/brukerobjectvaryingproperties.cpp @@ -44,7 +44,7 @@ void BrukerObjectVaryingProperties::computeTE(std::map& theValue) @@ -55,7 +55,7 @@ double BrukerObjectVaryingProperties::getTE(unsigned int theValue) const{ double BrukerObjectVaryingProperties::getPositionP(unsigned int theValue) const{ if (theValue < PositionP.size() ) return PositionP[theValue]; // else throw 1; - else throw(BrukerSizeException("PositionP", theValue, PositionP.size() ); + else throw BrukerSizeException("PositionP", theValue, PositionP.size() ); } /*void BrukerObjectVaryingProperties::computePositionP(const std::vector< double >& theValue) @@ -66,7 +66,7 @@ double BrukerObjectVaryingProperties::getPositionP(unsigned int theValue) const double BrukerObjectVaryingProperties::getPositionR(unsigned int theValue) const{ if (theValue < PositionR.size() ) return PositionR[theValue]; // else throw 2; - else throw(BrukerSizeException("PositionR", theValue, PositionR.size() ); + else throw BrukerSizeException("PositionR", theValue, PositionR.size() ); } /*void BrukerObjectVaryingProperties::computePositionR(const std::vector< double >& theValue) @@ -77,7 +77,7 @@ double BrukerObjectVaryingProperties::getPositionR(unsigned int theValue) const double BrukerObjectVaryingProperties::getPositionS(unsigned int theValue) const{ if (theValue < PositionS.size() ) return PositionS[theValue]; // else throw 3; - else throw(BrukerSizeException("PositionS", theValue, PositionS.size() ); + else throw BrukerSizeException("PositionS", theValue, PositionS.size() ); } /*void BrukerObjectVaryingProperties::computePositionS(const std::vector< double >& theValue) @@ -88,7 +88,7 @@ double BrukerObjectVaryingProperties::getPositionS(unsigned int theValue) const int BrukerObjectVaryingProperties::getAcquisitionOrder(unsigned int theValue) const{ if (theValue & theValue1, const std::vector< int >& theValue2) @@ -111,7 +111,7 @@ void BrukerObjectVaryingProperties::computeAcquisitionOrder(std::map > BrukerObjectVaryingProperties::getOrientation(unsigned int theValue) const{ if (theValue < Orientation.size())return Orientation[theValue]; //else throw 9; - else throw(BrukerSizeException("Orientation", theValue, Orientation.size() ); + else throw BrukerSizeException("Orientation", theValue, Orientation.size() ); } /*void BrukerObjectVaryingProperties::computeOrientation( std :: vector < double > & theValue1,const std::vector< int >& theValue2) @@ -133,7 +133,7 @@ void BrukerObjectVaryingProperties::computeOrientation(std::map Temp1D(3,0.0); std::vector > Temp2D; -- 2.47.1