vtkGDCMPolyDataReader.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program: GDCM (Grassroots DICOM). A DICOM library
00004   Module:  $URL$
00005 
00006   Copyright (c) 2006-2009 Mathieu Malaterre
00007   All rights reserved.
00008   See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00015 // .NAME vtkGDCMPolyDataReader - read DICOM PolyData files (Contour Data...)
00016 // .SECTION Description
00017 // For now only support RTSTRUCT (RT Structure Set Storage)
00018 // .SECTION TODO
00019 // Need to do the same job for DVH Sequence/DVH Data...
00020 // .SECTION Warning
00021 // When using vtkGDCMPolyDataReader in conjonction with vtkGDCMImageReader 
00022 // it is *required* that FileLowerLeft is set to ON as coordinate system
00023 // would be inconsistant in between the two data structures.
00024 //
00025 // .SECTION See Also
00026 // vtkGDCMImageReader vtkMedicalImageReader2 vtkMedicalImageProperties
00027 
00028 
00029 #ifndef __vtkGDCMPolyDataReader_h
00030 #define __vtkGDCMPolyDataReader_h
00031 
00032 #include "vtkPolyDataAlgorithm.h"
00033 #include "gdcmTypes.h" // GDCM_EXPORT
00034 
00035 class vtkMedicalImageProperties;
00036 //BTX
00037 namespace gdcm { class Reader; }
00038 //ETX
00039 class GDCM_EXPORT vtkGDCMPolyDataReader : public vtkPolyDataAlgorithm
00040 {
00041 public:
00042   static vtkGDCMPolyDataReader *New();
00043   vtkTypeRevisionMacro(vtkGDCMPolyDataReader,vtkPolyDataAlgorithm);
00044   virtual void PrintSelf(ostream& os, vtkIndent indent);
00045 
00046   // Description:
00047   // Set/Get the filename of the file to be read
00048   vtkSetStringMacro(FileName);
00049   vtkGetStringMacro(FileName);
00050 
00051   // Description:
00052   // Get the medical image properties object
00053   vtkGetObjectMacro(MedicalImageProperties, vtkMedicalImageProperties);
00054 
00055 protected:
00056   vtkGDCMPolyDataReader();
00057   ~vtkGDCMPolyDataReader();
00058 
00059   char *FileName;
00060   vtkMedicalImageProperties *MedicalImageProperties;
00061 //BTX
00062   void FillMedicalImageInformation(const gdcm::Reader &reader);
00063 //ETX
00064 
00065   int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00066   int RequestInformation(
00067     vtkInformation *vtkNotUsed(request),
00068     vtkInformationVector **vtkNotUsed(inputVector),
00069     vtkInformationVector *outputVector);
00070 //BTX
00071   int RequestInformation_RTStructureSetStorage(gdcm::Reader const & reader);
00072   int RequestData_RTStructureSetStorage(gdcm::Reader const &reader, vtkInformationVector *outputVector);
00073   int RequestInformation_HemodynamicWaveformStorage(gdcm::Reader const & reader);
00074   int RequestData_HemodynamicWaveformStorage(gdcm::Reader const &reader, vtkInformationVector *outputVector);
00075 //ETX
00076 
00077 private:
00078   vtkGDCMPolyDataReader(const vtkGDCMPolyDataReader&);  // Not implemented.
00079   void operator=(const vtkGDCMPolyDataReader&);  // Not implemented.
00080 };
00081 
00082 #endif

Generated on Tue Mar 9 22:40:53 2010 for GDCM by doxygen 1.6.3
SourceForge.net Logo