From e4be15de84d96cad6e70e5b043c1bfdd37a18bcf Mon Sep 17 00:00:00 2001 From: jpr Date: Mon, 22 Aug 2005 12:30:36 +0000 Subject: [PATCH] Replace void SetCheckFileCoherenceLight(); by vtkSetMacro(AllowLightChecking, int); vtkGetMacro(AllowLightChecking, int); vtkBooleanMacro(AllowLightChecking, int); to be vtk compliant --- vtk/vtkGdcmReader.cxx | 18 +++++++++--------- vtk/vtkGdcmReader.h | 13 +++++++++---- 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/vtk/vtkGdcmReader.cxx b/vtk/vtkGdcmReader.cxx index 40c592dc..e46553e7 100644 --- a/vtk/vtkGdcmReader.cxx +++ b/vtk/vtkGdcmReader.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: vtkGdcmReader.cxx,v $ Language: C++ - Date: $Date: 2005/08/20 22:29:46 $ - Version: $Revision: 1.75 $ + Date: $Date: 2005/08/22 12:30:36 $ + Version: $Revision: 1.76 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -122,7 +122,7 @@ #include #include -vtkCxxRevisionMacro(vtkGdcmReader, "$Revision: 1.75 $") +vtkCxxRevisionMacro(vtkGdcmReader, "$Revision: 1.76 $") vtkStandardNewMacro(vtkGdcmReader) //----------------------------------------------------------------------------- @@ -131,7 +131,7 @@ vtkGdcmReader::vtkGdcmReader() { this->LookupTable = NULL; this->AllowLookupTable = 0; - this->LightChecking = false; + this->AllowLightChecking = 0; this->LoadMode = 0; // Load everything (possible values : NO_SEQ, NO_SHADOW, // NO_SHADOWSEQ) this->CoherentFileList = 0; @@ -204,10 +204,10 @@ void vtkGdcmReader::SetFileName(const char *name) * Ask for a 'light' checking -actually : just initializing- *if you are 150% sure *all* the files are coherent */ -void vtkGdcmReader::SetCheckFileCoherenceLight() -{ - LightChecking = true; -} +//void vtkGdcmReader::SetCheckFileCoherenceLight() +//{ +// LightChecking = true; +//} //----------------------------------------------------------------------------- // Protected @@ -220,7 +220,7 @@ void vtkGdcmReader::ExecuteInformation() { if ( this->CoherentFileList != 0 ) this->TotalNumberOfPlanes = this->CheckFileCoherenceAlreadyDone(); - else if ( this->LightChecking ) + else if ( this->AllowLightChecking ) this->TotalNumberOfPlanes = this->CheckFileCoherenceLight(); else this->TotalNumberOfPlanes = this->CheckFileCoherence(); diff --git a/vtk/vtkGdcmReader.h b/vtk/vtkGdcmReader.h index ba30d132..73386ba3 100644 --- a/vtk/vtkGdcmReader.h +++ b/vtk/vtkGdcmReader.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: vtkGdcmReader.h,v $ Language: C++ - Date: $Date: 2005/07/30 18:31:25 $ - Version: $Revision: 1.24 $ + Date: $Date: 2005/08/22 12:30:36 $ + Version: $Revision: 1.25 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -45,7 +45,11 @@ public: virtual void SetFileName(const char *name); void SetCoherentFileList( std::vector *cfl) { CoherentFileList = cfl; } - void SetCheckFileCoherenceLight(); + //void SetCheckFileCoherenceLight(); + vtkSetMacro(AllowLightChecking, int); + vtkGetMacro(AllowLightChecking, int); + vtkBooleanMacro(AllowLightChecking, int); + void SetUserFunction (VOID_FUNCTION_PUINT8_PFILE_POINTER userFunc ) { UserFunction = userFunc; } // Description: @@ -101,7 +105,8 @@ private: vtkLookupTable *LookupTable; vtkTimeStamp fileTime; int AllowLookupTable; - bool LightChecking; + + int AllowLightChecking; //BTX // Number of columns of the image/volume to be loaded -- 2.45.1