VTK  9.2.6
vtkImageSlabReslice.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageSlabReslice.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
47 #ifndef vtkImageSlabReslice_h
48 #define vtkImageSlabReslice_h
49 
50 #include "vtkImageReslice.h"
51 #include "vtkImagingGeneralModule.h" // For export macro
52 
53 class VTKIMAGINGGENERAL_EXPORT vtkImageSlabReslice : public vtkImageReslice
54 {
55 public:
56  static vtkImageSlabReslice* New();
58 
62  void PrintSelf(ostream& os, vtkIndent indent) override;
63 
65 
68  vtkSetMacro(BlendMode, int);
69  vtkGetMacro(BlendMode, int);
70  void SetBlendModeToMin() { this->SetBlendMode(VTK_IMAGE_SLAB_MIN); }
71  void SetBlendModeToMax() { this->SetBlendMode(VTK_IMAGE_SLAB_MAX); }
72  void SetBlendModeToMean() { this->SetBlendMode(VTK_IMAGE_SLAB_MEAN); }
74 
76 
81  vtkGetMacro(NumBlendSamplePoints, int);
83 
85 
89  vtkSetMacro(SlabThickness, double);
90  vtkGetMacro(SlabThickness, double);
92 
94 
98  vtkSetMacro(SlabResolution, double);
99  vtkGetMacro(SlabResolution, double);
101 
102 protected:
104  ~vtkImageSlabReslice() override;
105 
112 
113  int BlendMode; // can be MIN, MIP, MAX
117 
118 private:
119  vtkImageSlabReslice(const vtkImageSlabReslice&) = delete;
120  void operator=(const vtkImageSlabReslice&) = delete;
121 };
122 
123 #endif
#define VTK_IMAGE_SLAB_MAX
#define VTK_IMAGE_SLAB_MIN
Thick slab reformat through data.
Store vtkAlgorithm input/output information.
#define VTK_IMAGE_SLAB_MEAN
void SetBlendModeToMean()
Set/Get the blend mode.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
static vtkImageReslice * New()
a simple class to control print indentation
Definition: vtkIndent.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Reslices a volume along a new set of axes.
Store zero or more vtkInformation instances.
void SetBlendModeToMax()
Set/Get the blend mode.
void SetBlendModeToMin()
Set/Get the blend mode.