VTK  9.3.0
vtkImageSlabReslice.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
35 #ifndef vtkImageSlabReslice_h
36 #define vtkImageSlabReslice_h
37 
38 #include "vtkImageReslice.h"
39 #include "vtkImagingGeneralModule.h" // For export macro
40 
41 VTK_ABI_NAMESPACE_BEGIN
42 class VTKIMAGINGGENERAL_EXPORT vtkImageSlabReslice : public vtkImageReslice
43 {
44 public:
47 
51  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
54 
57  vtkSetMacro(BlendMode, int);
58  vtkGetMacro(BlendMode, int);
59  void SetBlendModeToMin() { this->SetBlendMode(VTK_IMAGE_SLAB_MIN); }
60  void SetBlendModeToMax() { this->SetBlendMode(VTK_IMAGE_SLAB_MAX); }
61  void SetBlendModeToMean() { this->SetBlendMode(VTK_IMAGE_SLAB_MEAN); }
63 
65 
70  vtkGetMacro(NumBlendSamplePoints, int);
72 
74 
78  vtkSetMacro(SlabThickness, double);
79  vtkGetMacro(SlabThickness, double);
81 
83 
87  vtkSetMacro(SlabResolution, double);
88  vtkGetMacro(SlabResolution, double);
90 
91 protected:
94 
101 
102  int BlendMode; // can be MIN, MIP, MAX
106 
107 private:
108  vtkImageSlabReslice(const vtkImageSlabReslice&) = delete;
109  void operator=(const vtkImageSlabReslice&) = delete;
110 };
111 
112 VTK_ABI_NAMESPACE_END
113 #endif
Reslices a volume along a new set of axes.
Thick slab reformat through data.
void PrintSelf(ostream &os, vtkIndent indent) override
Printself method.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This method simply calls the superclass method.
~vtkImageSlabReslice() override
void SetBlendModeToMin()
Set/Get the blend mode.
void SetBlendModeToMean()
Set/Get the blend mode.
void SetBlendModeToMax()
Set/Get the blend mode.
static vtkImageSlabReslice * New()
a simple class to control print indentation
Definition: vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
#define VTK_IMAGE_SLAB_MAX
#define VTK_IMAGE_SLAB_MIN
#define VTK_IMAGE_SLAB_MEAN