GDCM 3.0.24
vtkGDCMPolyDataReader.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 vtkGDCMPolyDataReader - read 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// When using vtkGDCMPolyDataReader in conjunction with vtkGDCMImageReader
21// it is *required* that FileLowerLeft is set to ON as coordinate system
22// would be inconsistent in between the two data structures.
23//
24// .SECTION See Also
25// vtkGDCMImageReader vtkGDCMPolyDataWriter vtkRTStructSetProperties
26
27
28#ifndef VTKGDCMPOLYDATAREADER_H
29#define VTKGDCMPOLYDATAREADER_H
30
31#include "vtkgdcmModule.h"
32#include "vtkPolyDataAlgorithm.h"
33
34class vtkMedicalImageProperties;
36//BTX
37namespace gdcm { class Reader; }
38//ETX
39class VTKGDCM_EXPORT vtkGDCMPolyDataReader : public vtkPolyDataAlgorithm
40{
41public:
43 vtkTypeMacro(vtkGDCMPolyDataReader,vtkPolyDataAlgorithm);
44 virtual void PrintSelf(ostream& os, vtkIndent indent);
45
46 // Description:
47 // Set/Get the filename of the file to be read
50
51 // Description:
52 // Get the medical image properties object
53 vtkGetObjectMacro(MedicalImageProperties, vtkMedicalImageProperties);
54
56
57protected:
60
61 char *FileName;
62 vtkMedicalImageProperties *MedicalImageProperties;
64//BTX
66//ETX
67
68 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
70 vtkInformation *vtkNotUsed(request),
71 vtkInformationVector **vtkNotUsed(inputVector),
72 vtkInformationVector *outputVector);
73//BTX
75 int RequestData_RTStructureSetStorage(gdcm::Reader const &reader, vtkInformationVector *outputVector);
77 int RequestData_HemodynamicWaveformStorage(gdcm::Reader const &reader, vtkInformationVector *outputVector);
78//ETX
79
80private:
81 vtkGDCMPolyDataReader(const vtkGDCMPolyDataReader&); // Not implemented.
82 void operator=(const vtkGDCMPolyDataReader&); // Not implemented.
83};
84
85#endif
Reader ala DOM (Document Object Model)
Definition gdcmReader.h:54
Definition vtkGDCMPolyDataReader.h:40
void FillMedicalImageInformation(const gdcm::Reader &reader)
vtkRTStructSetProperties * RTStructSetProperties
Definition vtkGDCMPolyDataReader.h:63
int RequestData_HemodynamicWaveformStorage(gdcm::Reader const &reader, vtkInformationVector *outputVector)
vtkMedicalImageProperties * MedicalImageProperties
Definition vtkGDCMPolyDataReader.h:62
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
int RequestInformation(vtkInformation *vtkNotUsed(request), vtkInformationVector **vtkNotUsed(inputVector), vtkInformationVector *outputVector)
int RequestInformation_HemodynamicWaveformStorage(gdcm::Reader const &reader)
vtkGetObjectMacro(RTStructSetProperties, vtkRTStructSetProperties)
int RequestInformation_RTStructureSetStorage(gdcm::Reader const &reader)
char * FileName
Definition vtkGDCMPolyDataReader.h:61
virtual void PrintSelf(ostream &os, vtkIndent indent)
int RequestData_RTStructureSetStorage(gdcm::Reader const &reader, vtkInformationVector *outputVector)
static vtkGDCMPolyDataReader * New()
vtkGetStringMacro(FileName)
vtkGetObjectMacro(MedicalImageProperties, vtkMedicalImageProperties)
vtkSetStringMacro(FileName)
vtkTypeMacro(vtkGDCMPolyDataReader, vtkPolyDataAlgorithm)
Definition vtkRTStructSetProperties.h:29
Definition gdcmASN1.h:21