VTK: Imaging/General/vtkImageSlabReslice.h Source File

| VTK 9.3.1

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:
45 static vtkImageSlabReslice* New();
46 vtkTypeMacro(vtkImageSlabReslice, vtkImageReslice);
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:
92 vtkImageSlabReslice();
93 ~vtkImageSlabReslice() override;
94
100 int RequestInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
101
102 int BlendMode; // can be MIN, MIP, MAX
103 double SlabThickness;
104 double SlabResolution;
105 int NumBlendSamplePoints;
106
107 private:
108 vtkImageSlabReslice(const vtkImageSlabReslice&) = delete;
109 void operator=(const vtkImageSlabReslice&) = delete;
110 };
111
112 VTK_ABI_NAMESPACE_END
113 #endif
vtkImageReslice
Reslices a volume along a new set of axes.
Definition: vtkImageReslice.h:73
vtkImageSlabReslice
Thick slab reformat through data.
Definition: vtkImageSlabReslice.h:43
vtkImageSlabReslice::SlabThickness
double SlabThickness
Definition: vtkImageSlabReslice.h:103
vtkImageSlabReslice::NumBlendSamplePoints
int NumBlendSamplePoints
Definition: vtkImageSlabReslice.h:105
vtkImageSlabReslice::BlendMode
int BlendMode
Definition: vtkImageSlabReslice.h:102
vtkImageSlabReslice::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Printself method.
vtkImageSlabReslice::SlabResolution
double SlabResolution
Definition: vtkImageSlabReslice.h:104
vtkImageSlabReslice::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This method simply calls the superclass method.
vtkImageSlabReslice::~vtkImageSlabReslice
~vtkImageSlabReslice() override
vtkImageSlabReslice::vtkImageSlabReslice
vtkImageSlabReslice()
vtkImageSlabReslice::SetBlendModeToMin
void SetBlendModeToMin()
Set/Get the blend mode.
Definition: vtkImageSlabReslice.h:59
vtkImageSlabReslice::SetBlendModeToMean
void SetBlendModeToMean()
Set/Get the blend mode.
Definition: vtkImageSlabReslice.h:61
vtkImageSlabReslice::SetBlendModeToMax
void SetBlendModeToMax()
Set/Get the blend mode.
Definition: vtkImageSlabReslice.h:60
vtkImageSlabReslice::New
static vtkImageSlabReslice * New()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkImageReslice.h
VTK_IMAGE_SLAB_MAX
#define VTK_IMAGE_SLAB_MAX
Definition: vtkSystemIncludes.h:88
VTK_IMAGE_SLAB_MIN
#define VTK_IMAGE_SLAB_MIN
Definition: vtkSystemIncludes.h:87
VTK_IMAGE_SLAB_MEAN
#define VTK_IMAGE_SLAB_MEAN
Definition: vtkSystemIncludes.h:89