vtk-dicom  0.8.14
vtkDICOMApplyPalette.h
1 /*=========================================================================
2 
3  Program: DICOM for VTK
4 
5  Copyright (c) 2012-2022 David Gobbi
6  All rights reserved.
7  See Copyright.txt or http://dgobbi.github.io/bsd3.txt 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 =========================================================================*/
29 #ifndef vtkDICOMApplyPalette_h
30 #define vtkDICOMApplyPalette_h
31 
32 #include "vtkDICOMAlgorithm.h"
33 #include "vtkDICOMModule.h" // For export macro
34 
35 class vtkDICOMMetaData;
36 class vtkDICOMPerFilePalette;
37 
38 //----------------------------------------------------------------------------
39 class VTKDICOM_EXPORT vtkDICOMApplyPalette : public vtkDICOMAlgorithm
40 {
41 public:
42  static vtkDICOMApplyPalette *New();
44 
46  void PrintSelf(ostream& os, vtkIndent indent) VTK_DICOM_OVERRIDE;
47 
48 protected:
50  ~vtkDICOMApplyPalette() VTK_DICOM_OVERRIDE;
51 
52  int RequestInformation(
53  vtkInformation* request, vtkInformationVector** inputVector,
54  vtkInformationVector* outputVector) VTK_DICOM_OVERRIDE;
55 
56  int RequestData(
57  vtkInformation* request, vtkInformationVector** inputVector,
58  vtkInformationVector* outputVector) VTK_DICOM_OVERRIDE;
59 
60  void ThreadedRequestData(
61  vtkInformation *request, vtkInformationVector **inputVector,
62  vtkInformationVector *outputVector, vtkImageData ***inData,
63  vtkImageData **outData, int ext[6], int id) VTK_DICOM_OVERRIDE;
64 
66  vtkDICOMPerFilePalette *Palette;
67 
69  bool IsSupplemental;
70 
71 private:
72 #ifdef VTK_DICOM_DELETE
73  vtkDICOMApplyPalette(const vtkDICOMApplyPalette&) VTK_DICOM_DELETE;
74  void operator=(const vtkDICOMApplyPalette&) VTK_DICOM_DELETE;
75 #else
77  void operator=(const vtkDICOMApplyPalette&) = delete;
78 #endif
79 };
80 
81 #endif // vtkDICOMApplyPalette_h
Superclass for DICOM image filters.
Definition: vtkDICOMAlgorithm.h:49
static vtkDICOMAlgorithm * New()
Static method for construction.
Apply palette to PALETTE COLOR images.
Definition: vtkDICOMApplyPalette.h:40
void PrintSelf(ostream &os, vtkIndent indent) VTK_DICOM_OVERRIDE
Print information about this object.
A container class for DICOM metadata.
Definition: vtkDICOMMetaData.h:44