X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vtk%2FvtkGdcmWriter.h;h=f5b18e9715b54c3e1d0487ae0d29b8c5165ed7cf;hb=42583e2fd4012dd92c25afbf6a58fdf7ec70ff13;hp=3de9c069d8ad371a6be3e1bb1004ab7f1cac8434;hpb=02163588f1fa2bb0af4b45455b6f9d08ec64f7b3;p=gdcm.git diff --git a/vtk/vtkGdcmWriter.h b/vtk/vtkGdcmWriter.h index 3de9c069..f5b18e97 100644 --- a/vtk/vtkGdcmWriter.h +++ b/vtk/vtkGdcmWriter.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: vtkGdcmWriter.h,v $ Language: C++ - Date: $Date: 2005/01/28 10:07:35 $ - Version: $Revision: 1.5 $ + Date: $Date: 2005/03/03 11:39:24 $ + Version: $Revision: 1.6 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -38,26 +38,19 @@ public: static vtkGdcmWriter *New(); vtkTypeRevisionMacro(vtkGdcmWriter, vtkImageWriter); - void PrintSelf(ostream& os, vtkIndent indent); + void PrintSelf(ostream &os, vtkIndent indent); - vtkSetObjectMacro(LookupTable,vtkLookupTable); - vtkGetObjectMacro(LookupTable,vtkLookupTable); + vtkSetObjectMacro(LookupTable, vtkLookupTable); + vtkGetObjectMacro(LookupTable, vtkLookupTable); - void SetWriteTypeToDcmImplVR() { SetWriteType(VTK_GDCM_WRITE_TYPE_EXPLICIT_VR); }; - void SetWriteTypeToDcmExplVR() { SetWriteType(VTK_GDCM_WRITE_TYPE_IMPLICIT_VR); }; - void SetWriteTypeToAcr() { SetWriteType(VTK_GDCM_WRITE_TYPE_ACR); }; - void SetWriteTypeToAcrLibido() { SetWriteType(VTK_GDCM_WRITE_TYPE_ACR_LIBIDO); }; - vtkSetMacro(WriteType,int); - vtkGetMacro(WriteType,int); + void SetWriteTypeToDcmImplVR(){SetWriteType(VTK_GDCM_WRITE_TYPE_EXPLICIT_VR);}; + void SetWriteTypeToDcmExplVR(){SetWriteType(VTK_GDCM_WRITE_TYPE_IMPLICIT_VR);}; + void SetWriteTypeToAcr() {SetWriteType(VTK_GDCM_WRITE_TYPE_ACR); }; + void SetWriteTypeToAcrLibido(){SetWriteType(VTK_GDCM_WRITE_TYPE_ACR_LIBIDO); }; + vtkSetMacro(WriteType, int); + vtkGetMacro(WriteType, int); const char *GetWriteTypeAsString(); - void SetUIDPrefix(const char *prefix); - const char *GetUIDPrefix(); - - void NewStudyInstanceUID(); - void NewSeriesInstanceUID(); - void NewFrameOfReferenceInstanceUID(); - protected: vtkGdcmWriter(); ~vtkGdcmWriter(); @@ -65,19 +58,12 @@ protected: virtual void RecursiveWrite(int axis, vtkImageData *image, ofstream *file); virtual void RecursiveWrite(int axis, vtkImageData *image, vtkImageData *cache, ofstream *file); - void WriteDcmFile(char *fileName,vtkImageData *image); + void WriteDcmFile(char *fileName, vtkImageData *image); private: // Variables vtkLookupTable *LookupTable; int WriteType; - - //BTX - std::string UIDPrefix; - std::string StudyInstanceUID; - std::string SeriesInstanceUID; - std::string FrameOfReferenceInstanceUID; - //ETX }; //-----------------------------------------------------------------------------