VTK  9.0.1
vtkImageStencilAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageStencilAlgorithm.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 =========================================================================*/
27 #ifndef vtkImageStencilAlgorithm_h
28 #define vtkImageStencilAlgorithm_h
29 
30 #include "vtkAlgorithm.h"
31 #include "vtkImagingCoreModule.h" // For export macro
32 
34 
35 class VTKIMAGINGCORE_EXPORT vtkImageStencilAlgorithm : public vtkAlgorithm
36 {
37 public:
38  static vtkImageStencilAlgorithm* New();
40 
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
44 
47  void SetOutput(vtkImageStencilData* output);
48  vtkImageStencilData* GetOutput();
50 
56 
57 protected:
59  ~vtkImageStencilAlgorithm() override;
60 
61  virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
62  virtual int RequestInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
63  virtual int RequestUpdateExtent(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
64  vtkImageStencilData* AllocateOutputData(vtkDataObject* out, int* updateExt);
65 
66  int FillOutputPortInformation(int, vtkInformation*) override;
67 
68 private:
70  void operator=(const vtkImageStencilAlgorithm&) = delete;
71 };
72 
73 #endif
vtkImageStencilAlgorithm
producer of vtkImageStencilData
Definition: vtkImageStencilAlgorithm.h:35
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:62
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkAlgorithm.h
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkImageStencilData
efficient description of an image stencil
Definition: vtkImageStencilData.h:33
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:59
vtkAlgorithm::ProcessRequest
virtual vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
vtkAlgorithm::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69