VTK
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 
31 #include "vtkImagingCoreModule.h" // For export macro
32 #include "vtkAlgorithm.h"
33 
35 
36 class VTKIMAGINGCORE_EXPORT vtkImageStencilAlgorithm : public vtkAlgorithm
37 {
38 public:
39  static vtkImageStencilAlgorithm *New();
41 
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
45 
48  void SetOutput(vtkImageStencilData *output);
49  vtkImageStencilData *GetOutput();
51 
57  vtkInformationVector*) override;
58 
59 protected:
61  ~vtkImageStencilAlgorithm() override;
62 
63  virtual int RequestData(vtkInformation *, vtkInformationVector **,
65  virtual int RequestInformation(vtkInformation *, vtkInformationVector **,
67  virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **,
69  vtkImageStencilData *AllocateOutputData(vtkDataObject *out, int* updateExt);
70 
71  int FillOutputPortInformation(int, vtkInformation*) override;
72 
73 private:
75  void operator=(const vtkImageStencilAlgorithm&) = delete;
76 };
77 
78 #endif
Store vtkAlgorithm input/output information.
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
producer of vtkImageStencilData
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
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:39
efficient description of an image stencil
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
general representation of visualization data
Definition: vtkDataObject.h:64