VTK: Imaging/Core/vtkImageStencilSource.h Source File

| VTK 9.3.1

vtkImageStencilSource.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
20 #ifndef vtkImageStencilSource_h
21 #define vtkImageStencilSource_h
22
23 #include "vtkImageStencilAlgorithm.h"
24 #include "vtkImagingCoreModule.h" // For export macro
25
26 VTK_ABI_NAMESPACE_BEGIN
27 class vtkImageStencilData;
28 class vtkImageData;
29
30 class VTKIMAGINGCORE_EXPORT vtkImageStencilSource : public vtkImageStencilAlgorithm
31 {
32 public:
33 static vtkImageStencilSource* New();
34 vtkTypeMacro(vtkImageStencilSource, vtkImageStencilAlgorithm);
35
36 void PrintSelf(ostream& os, vtkIndent indent) override;
37
39
47 virtual void SetInformationInput(vtkImageData*);
48 vtkGetObjectMacro(InformationInput, vtkImageData);
50
52
57 vtkSetVector3Macro(OutputOrigin, double);
58 vtkGetVector3Macro(OutputOrigin, double);
60
62
67 vtkSetVector3Macro(OutputSpacing, double);
68 vtkGetVector3Macro(OutputSpacing, double);
70
72
76 vtkSetVector6Macro(OutputWholeExtent, int);
77 vtkGetVector6Macro(OutputWholeExtent, int);
79
83 void ReportReferences(vtkGarbageCollector*) override;
84
85 protected:
86 vtkImageStencilSource();
87 ~vtkImageStencilSource() override;
88
89 int RequestInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
90
91 vtkImageData* InformationInput;
92
93 int OutputWholeExtent[6];
94 double OutputOrigin[3];
95 double OutputSpacing[3];
96
97 private:
98 vtkImageStencilSource(const vtkImageStencilSource&) = delete;
99 void operator=(const vtkImageStencilSource&) = delete;
100 };
101
102 VTK_ABI_NAMESPACE_END
103 #endif
vtkGarbageCollector
Detect and break reference loops.
Definition: vtkGarbageCollector.h:80
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:52
vtkImageStencilAlgorithm
producer of vtkImageStencilData
Definition: vtkImageStencilAlgorithm.h:25
vtkImageStencilData
efficient description of an image stencil
Definition: vtkImageStencilData.h:26
vtkImageStencilSource
generate an image stencil
Definition: vtkImageStencilSource.h:31
vtkImageStencilSource::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkImageStencilSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkImageStencilSource::InformationInput
vtkImageData * InformationInput
Definition: vtkImageStencilSource.h:91
vtkImageStencilSource::vtkImageStencilSource
vtkImageStencilSource()
vtkImageStencilSource::ReportReferences
void ReportReferences(vtkGarbageCollector *) override
Report object referenced by instances of this class.
vtkImageStencilSource::New
static vtkImageStencilSource * New()
vtkImageStencilSource::SetInformationInput
virtual void SetInformationInput(vtkImageData *)
Set a vtkImageData that has the Spacing, Origin, and WholeExtent that will be used for the stencil.
vtkImageStencilSource::~vtkImageStencilSource
~vtkImageStencilSource() override
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
vtkImageStencilAlgorithm.h