GDCM: vtkGDCMPolyDataWriter.h Source File

GDCM 3.2.10

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;
35class vtkRTStructSetProperties;
36//BTX
37namespace gdcm { class File; }
38//ETX
39 class VTKGDCM_EXPORT vtkGDCMPolyDataWriter : public vtkPolyDataWriter
40{
41public:
42 static vtkGDCMPolyDataWriter *New();
43 vtkTypeMacro(vtkGDCMPolyDataWriter,vtkPolyDataWriter);
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
56 virtual void SetRTStructSetProperties(vtkRTStructSetProperties *pd);
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...
71 void SetNumberOfInputPorts(int n);
72
73protected:
74 vtkGDCMPolyDataWriter();
75 ~vtkGDCMPolyDataWriter();
76
77 vtkMedicalImageProperties *MedicalImageProperties;
78 vtkRTStructSetProperties *RTStructSetProperties;
79
80 void WriteData();
81//BTX
82 void WriteRTSTRUCTInfo(gdcm::File &file);
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
gdcm::File
a DICOM File
Definition gdcmFile.h:34
vtkGDCMPolyDataWriter::RTStructSetProperties
vtkRTStructSetProperties * RTStructSetProperties
Definition vtkGDCMPolyDataWriter.h:78
vtkGDCMPolyDataWriter::MedicalImageProperties
vtkMedicalImageProperties * MedicalImageProperties
Definition vtkGDCMPolyDataWriter.h:77
vtkGDCMPolyDataWriter::vtkGDCMPolyDataWriter
vtkGDCMPolyDataWriter()
vtkGDCMPolyDataWriter::SetNumberOfInputPorts
void SetNumberOfInputPorts(int n)
vtkGDCMPolyDataWriter::InitializeRTStructSet
void InitializeRTStructSet(vtkStdString inDirectory, vtkStdString inStructLabel, vtkStdString inStructName, vtkStringArray *inROINames, vtkStringArray *inROIAlgorithmName, vtkStringArray *inROIType)
vtkGDCMPolyDataWriter::vtkTypeMacro
vtkTypeMacro(vtkGDCMPolyDataWriter, vtkPolyDataWriter)
vtkGDCMPolyDataWriter::WriteRTSTRUCTData
void WriteRTSTRUCTData(gdcm::File &file, int num)
vtkGDCMPolyDataWriter::WriteData
void WriteData()
vtkGDCMPolyDataWriter::WriteRTSTRUCTInfo
void WriteRTSTRUCTInfo(gdcm::File &file)
vtkGDCMPolyDataWriter::SetRTStructSetProperties
virtual void SetRTStructSetProperties(vtkRTStructSetProperties *pd)
vtkGDCMPolyDataWriter::SetMedicalImageProperties
virtual void SetMedicalImageProperties(vtkMedicalImageProperties *pd)
vtkGDCMPolyDataWriter::~vtkGDCMPolyDataWriter
~vtkGDCMPolyDataWriter()
vtkGDCMPolyDataWriter::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkGDCMPolyDataWriter::New
static vtkGDCMPolyDataWriter * New()
vtkRTStructSetProperties
Definition vtkRTStructSetProperties.h:29
gdcm
Definition gdcmASN1.h:21