VTK  9.2.5
vtkImageStencilToImage.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageStencilToImage.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 =========================================================================*/
50 #ifndef vtkImageStencilToImage_h
51 #define vtkImageStencilToImage_h
52 
53 #include "vtkImageAlgorithm.h"
54 #include "vtkImagingStencilModule.h" // For export macro
55 
56 class VTKIMAGINGSTENCIL_EXPORT vtkImageStencilToImage : public vtkImageAlgorithm
57 {
58 public:
61  void PrintSelf(ostream& os, vtkIndent indent) override;
62 
64 
67  vtkSetMacro(OutsideValue, double);
68  vtkGetMacro(OutsideValue, double);
70 
72 
75  vtkSetMacro(InsideValue, double);
76  vtkGetMacro(InsideValue, double);
78 
80 
83  vtkSetMacro(OutputScalarType, int);
84  vtkGetMacro(OutputScalarType, int);
85  void SetOutputScalarTypeToFloat() { this->SetOutputScalarType(VTK_FLOAT); }
86  void SetOutputScalarTypeToDouble() { this->SetOutputScalarType(VTK_DOUBLE); }
87  void SetOutputScalarTypeToInt() { this->SetOutputScalarType(VTK_INT); }
88  void SetOutputScalarTypeToUnsignedInt() { this->SetOutputScalarType(VTK_UNSIGNED_INT); }
89  void SetOutputScalarTypeToLong() { this->SetOutputScalarType(VTK_LONG); }
90  void SetOutputScalarTypeToUnsignedLong() { this->SetOutputScalarType(VTK_UNSIGNED_LONG); }
91  void SetOutputScalarTypeToShort() { this->SetOutputScalarType(VTK_SHORT); }
92  void SetOutputScalarTypeToUnsignedShort() { this->SetOutputScalarType(VTK_UNSIGNED_SHORT); }
93  void SetOutputScalarTypeToUnsignedChar() { this->SetOutputScalarType(VTK_UNSIGNED_CHAR); }
94  void SetOutputScalarTypeToChar() { this->SetOutputScalarType(VTK_CHAR); }
96 
97 protected:
100 
102 
104 
105  double OutsideValue;
106  double InsideValue;
108 
110 
111 private:
113  void operator=(const vtkImageStencilToImage&) = delete;
114 };
115 
116 #endif
Generic algorithm superclass for image algs.
Convert an image stencil into an image.
~vtkImageStencilToImage() override
void SetOutputScalarTypeToChar()
The desired output scalar type.
int FillInputPortInformation(int, vtkInformation *) override
These method should be reimplemented by subclasses that have more than a single input or single outpu...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetOutputScalarTypeToUnsignedChar()
The desired output scalar type.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called in response to a REQUEST_DATA request from the executive.
void SetOutputScalarTypeToFloat()
The desired output scalar type.
void SetOutputScalarTypeToUnsignedInt()
The desired output scalar type.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
void SetOutputScalarTypeToDouble()
The desired output scalar type.
void SetOutputScalarTypeToLong()
The desired output scalar type.
void SetOutputScalarTypeToShort()
The desired output scalar type.
void SetOutputScalarTypeToUnsignedLong()
The desired output scalar type.
void SetOutputScalarTypeToUnsignedShort()
The desired output scalar type.
void SetOutputScalarTypeToInt()
The desired output scalar type.
static vtkImageStencilToImage * New()
a simple class to control print indentation
Definition: vtkIndent.h:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
#define VTK_SHORT
Definition: vtkType.h:48
#define VTK_UNSIGNED_INT
Definition: vtkType.h:51
#define VTK_DOUBLE
Definition: vtkType.h:55
#define VTK_UNSIGNED_CHAR
Definition: vtkType.h:47
#define VTK_UNSIGNED_SHORT
Definition: vtkType.h:49
#define VTK_INT
Definition: vtkType.h:50
#define VTK_FLOAT
Definition: vtkType.h:54
#define VTK_CHAR
Definition: vtkType.h:45
#define VTK_UNSIGNED_LONG
Definition: vtkType.h:53
#define VTK_LONG
Definition: vtkType.h:52