VTK  9.3.1
vtkImageStencilAlgorithm.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
15 #ifndef vtkImageStencilAlgorithm_h
16 #define vtkImageStencilAlgorithm_h
17 
18 #include "vtkAlgorithm.h"
19 #include "vtkImagingCoreModule.h" // For export macro
20 
21 VTK_ABI_NAMESPACE_BEGIN
23 
24 class VTKIMAGINGCORE_EXPORT vtkImageStencilAlgorithm : public vtkAlgorithm
25 {
26 public:
27  static vtkImageStencilAlgorithm* New();
29 
30  void PrintSelf(ostream& os, vtkIndent indent) override;
31 
33 
36  void SetOutput(vtkImageStencilData* output);
37  vtkImageStencilData* GetOutput();
39 
45 
46 protected:
48  ~vtkImageStencilAlgorithm() override;
49 
50  virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
51  virtual int RequestInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
52  virtual int RequestUpdateExtent(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
53  vtkImageStencilData* AllocateOutputData(vtkDataObject* out, int* updateExt);
54 
55  int FillOutputPortInformation(int, vtkInformation*) override;
56 
57 private:
59  void operator=(const vtkImageStencilAlgorithm&) = delete;
60 };
61 
62 VTK_ABI_NAMESPACE_END
63 #endif
Store vtkAlgorithm input/output information.
producer of vtkImageStencilData
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int vtkTypeBool
Definition: vtkABI.h:64
virtual vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:51
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:28
efficient description of an image stencil
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
general representation of visualization data
Definition: vtkDataObject.h:54