vtkgdcm
vtkGDCMPolyDataWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: GDCM (Grassroots DICOM). A DICOM library
4 
5  Copyright (c) 2006-2011 Mathieu Malaterre
6  All rights reserved.
7  See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notice for more information.
12 
13 =========================================================================*/
26 #ifndef VTKGDCMPOLYDATAWRITER_H
27 #define VTKGDCMPOLYDATAWRITER_H
28 
29 #include "vtkPolyDataWriter.h"
30 #include "vtkStringArray.h"
31 #include "vtkStdString.h"
32 
33 
34 class vtkMedicalImageProperties;
36 //BTX
37 namespace gdcm { class File; }
38 //ETX
39 class VTK_EXPORT vtkGDCMPolyDataWriter : public vtkPolyDataWriter
40 {
41 public:
42  static vtkGDCMPolyDataWriter *New();
43  vtkTypeMacro(vtkGDCMPolyDataWriter,vtkPolyDataWriter);
44  virtual void PrintSelf(ostream& os, vtkIndent indent);
45 
56  virtual void SetMedicalImageProperties(vtkMedicalImageProperties *pd);
57 
58  virtual void SetRTStructSetProperties(vtkRTStructSetProperties *pd);
59 
60 
61  //this function will initialize the contained rtstructset with
62  //the inputs of the writer and the various extra information
63  //necessary for writing a complete rtstructset.
64  //NOTE: inputs must be set BEFORE calling this function!
65  //NOTE: the number of outputs for the appendpolydata MUST MATCH the ROI vectors!
66  void InitializeRTStructSet(vtkStdString inDirectory,
67  vtkStdString inStructLabel, vtkStdString inStructName,
68  vtkStringArray* inROINames,
69  vtkStringArray* inROIAlgorithmName,
70  vtkStringArray* inROIType);
71 
72  // make parent class public...
73  void SetNumberOfInputPorts(int n);
74 
75 protected:
78 
79  vtkMedicalImageProperties *MedicalImageProperties;
81 
82  void WriteData();
83 //BTX
84  void WriteRTSTRUCTInfo(gdcm::File &file);
85  void WriteRTSTRUCTData(gdcm::File &file, int num);
86 //ETX
87 
88 private:
89  vtkGDCMPolyDataWriter(const vtkGDCMPolyDataWriter&); // Not implemented.
90  void operator=(const vtkGDCMPolyDataWriter&); // Not implemented.
91 };
92 
93 #endif
vtkRTStructSetProperties
some rtstruct properties.
Definition: vtkRTStructSetProperties.h:30
vtkGDCMPolyDataWriter::MedicalImageProperties
vtkMedicalImageProperties * MedicalImageProperties
Definition: vtkGDCMPolyDataWriter.h:79
gdcm
Definition: vtkGDCMImageReader.h:104
vtkGDCMPolyDataWriter::RTStructSetProperties
vtkRTStructSetProperties * RTStructSetProperties
Definition: vtkGDCMPolyDataWriter.h:80
vtkGDCMPolyDataWriter
writer DICOM PolyData files (Contour Data...)
Definition: vtkGDCMPolyDataWriter.h:39