VTK
vtkImageToImageStencil.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkImageToImageStencil.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=========================================================================*/
29#ifndef vtkImageToImageStencil_h
30#define vtkImageToImageStencil_h
31
32
33#include "vtkImagingStencilModule.h" // For export macro
35
36class vtkImageData;
37
38class VTKIMAGINGSTENCIL_EXPORT vtkImageToImageStencil : public vtkImageStencilAlgorithm
39{
40public:
43 void PrintSelf(ostream& os, vtkIndent indent);
44
46
52
56 void ThresholdByUpper(double thresh);
57
61 void ThresholdByLower(double thresh);
62
66 void ThresholdBetween(double lower, double upper);
67
69
72 vtkSetMacro(UpperThreshold, double);
73 vtkGetMacro(UpperThreshold, double);
74 vtkSetMacro(LowerThreshold, double);
75 vtkGetMacro(LowerThreshold, double);
77
78protected:
81
86
89 double Threshold;
90private:
91 vtkImageToImageStencil(const vtkImageToImageStencil&) VTK_DELETE_FUNCTION;
92 void operator=(const vtkImageToImageStencil&) VTK_DELETE_FUNCTION;
93};
94
95#endif
topologically and geometrically regular array of data
Definition: vtkImageData.h:46
producer of vtkImageStencilData
clip an image with a mask image
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void ThresholdByLower(double thresh)
The values less than or equal to the value match.
vtkImageData * GetInput()
virtual int FillInputPortInformation(int, vtkInformation *)
Fill the input port information objects for this algorithm.
static vtkImageToImageStencil * New()
void SetInputData(vtkImageData *input)
Specify the image data to convert into a stencil.
void ThresholdBetween(double lower, double upper)
The values in a range (inclusive) match.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void ThresholdByUpper(double thresh)
The values greater than or equal to the value match.
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.