GDCM 3.0.24
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=========================================================================*/
14// .NAME vtkGDCMPolyDataWriter - writer DICOM PolyData files (Contour Data...)
15// .SECTION Description
16// For now only support RTSTRUCT (RT Structure Set Storage)
17// .SECTION TODO
18// Need to do the same job for DVH Sequence/DVH Data...
19// .SECTION Warning
20//
21// .SECTION See Also
22// vtkGDCMImageReader vtkGDCMPolyDataReader vtkRTStructSetProperties
23
24
25#ifndef VTKGDCMPOLYDATAWRITER_H
26#define VTKGDCMPOLYDATAWRITER_H
27
28#include "vtkgdcmModule.h"
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 VTKGDCM_EXPORT vtkGDCMPolyDataWriter : public vtkPolyDataWriter
40{
41public:
44 virtual void PrintSelf(ostream& os, vtkIndent indent);
45
46 // Description:
47 // Set/Get the filename of the file to be read
48// vtkSetStringMacro(FileName);
49// vtkGetStringMacro(FileName);
50
51 // Description:
52 // Get the medical image properties object
53// vtkGetObjectMacro(MedicalImageProperties, vtkMedicalImageProperties);
54 virtual void SetMedicalImageProperties(vtkMedicalImageProperties *pd);
55
57
58
59 //this function will initialize the contained rtstructset with
60 //the inputs of the writer and the various extra information
61 //necessary for writing a complete rtstructset.
62 //NOTE: inputs must be set BEFORE calling this function!
63 //NOTE: the number of outputs for the appendpolydata MUST MATCH the ROI vectors!
64 void InitializeRTStructSet(vtkStdString inDirectory,
65 vtkStdString inStructLabel, vtkStdString inStructName,
66 vtkStringArray* inROINames,
67 vtkStringArray* inROIAlgorithmName,
68 vtkStringArray* inROIType);
69
70 // make parent class public...
72
73protected:
76
77 vtkMedicalImageProperties *MedicalImageProperties;
79
80 void WriteData();
81//BTX
83 void WriteRTSTRUCTData(gdcm::File &file, int num);
84//ETX
85
86private:
87 vtkGDCMPolyDataWriter(const vtkGDCMPolyDataWriter&); // Not implemented.
88 void operator=(const vtkGDCMPolyDataWriter&); // Not implemented.
89};
90
91#endif
a DICOM File
Definition gdcmFile.h:34
Definition vtkGDCMPolyDataWriter.h:40
vtkRTStructSetProperties * RTStructSetProperties
Definition vtkGDCMPolyDataWriter.h:78
vtkMedicalImageProperties * MedicalImageProperties
Definition vtkGDCMPolyDataWriter.h:77
void SetNumberOfInputPorts(int n)
void InitializeRTStructSet(vtkStdString inDirectory, vtkStdString inStructLabel, vtkStdString inStructName, vtkStringArray *inROINames, vtkStringArray *inROIAlgorithmName, vtkStringArray *inROIType)
vtkTypeMacro(vtkGDCMPolyDataWriter, vtkPolyDataWriter)
void WriteRTSTRUCTData(gdcm::File &file, int num)
void WriteRTSTRUCTInfo(gdcm::File &file)
virtual void SetRTStructSetProperties(vtkRTStructSetProperties *pd)
virtual void SetMedicalImageProperties(vtkMedicalImageProperties *pd)
virtual void PrintSelf(ostream &os, vtkIndent indent)
static vtkGDCMPolyDataWriter * New()
Definition vtkRTStructSetProperties.h:29
Definition gdcmASN1.h:21