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
34class vtkMedicalImageProperties;
36//BTX
37namespace gdcm { class File; }
38//ETX
39class VTK_EXPORT vtkGDCMPolyDataWriter : public vtkPolyDataWriter
40{
41public:
43 vtkTypeMacro(vtkGDCMPolyDataWriter,vtkPolyDataWriter);
44 virtual void PrintSelf(ostream& os, vtkIndent indent);
45
56 virtual void SetMedicalImageProperties(vtkMedicalImageProperties *pd);
57
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...
74
75protected:
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
88private:
89 vtkGDCMPolyDataWriter(const vtkGDCMPolyDataWriter&); // Not implemented.
90 void operator=(const vtkGDCMPolyDataWriter&); // Not implemented.
91};
92
93#endif
writer DICOM PolyData files (Contour Data...)
vtkRTStructSetProperties * RTStructSetProperties
vtkMedicalImageProperties * MedicalImageProperties
void SetNumberOfInputPorts(int n)
void InitializeRTStructSet(vtkStdString inDirectory, vtkStdString inStructLabel, vtkStdString inStructName, vtkStringArray *inROINames, vtkStringArray *inROIAlgorithmName, vtkStringArray *inROIType)
void WriteRTSTRUCTData(gdcm::File &file, int num)
void WriteRTSTRUCTInfo(gdcm::File &file)
virtual void SetRTStructSetProperties(vtkRTStructSetProperties *pd)
virtual void SetMedicalImageProperties(vtkMedicalImageProperties *pd)
Set/Get the filename of the file to be read vtkSetStringMacro(FileName); vtkGetStringMacro(FileName);...
virtual void PrintSelf(ostream &os, vtkIndent indent)
static vtkGDCMPolyDataWriter * New()
some rtstruct properties.