GDCM 2.0.17
|
00001 /*========================================================================= 00002 00003 Program: GDCM (Grassroots DICOM). A DICOM library 00004 Module: $URL$ 00005 00006 Copyright (c) 2006-2010 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 vtkGDCMPolyDataWriter - writer 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 // 00022 // .SECTION See Also 00023 // vtkGDCMImageReader vtkMedicalImageReader2 vtkMedicalImageProperties 00024 00025 00026 #ifndef VTKGDCMPOLYDATAWRITER_H 00027 #define VTKGDCMPOLYDATAWRITER_H 00028 00029 #include "vtkPolyDataWriter.h" 00030 00031 class vtkMedicalImageProperties; 00032 //BTX 00033 namespace gdcm { class Reader; } 00034 //ETX 00035 class VTK_EXPORT vtkGDCMPolyDataWriter : public vtkPolyDataWriter 00036 { 00037 public: 00038 static vtkGDCMPolyDataWriter *New(); 00039 vtkTypeRevisionMacro(vtkGDCMPolyDataWriter,vtkPolyDataWriter); 00040 virtual void PrintSelf(ostream& os, vtkIndent indent); 00041 00042 // Description: 00043 // Set/Get the filename of the file to be read 00044 // vtkSetStringMacro(FileName); 00045 // vtkGetStringMacro(FileName); 00046 00047 // Description: 00048 // Get the medical image properties object 00049 // vtkGetObjectMacro(MedicalImageProperties, vtkMedicalImageProperties); 00050 00051 protected: 00052 vtkGDCMPolyDataWriter(); 00053 ~vtkGDCMPolyDataWriter(); 00054 00055 void WriteData(); 00056 void WriteRTSTRUCT(vtkPoints *pts, vtkCellArray *polys); 00057 00058 private: 00059 vtkGDCMPolyDataWriter(const vtkGDCMPolyDataWriter&); // Not implemented. 00060 void operator=(const vtkGDCMPolyDataWriter&); // Not implemented. 00061 }; 00062 00063 #endif