VTK  9.4.20241016
vtkImageStencilToImage.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
38#ifndef vtkImageStencilToImage_h
39#define vtkImageStencilToImage_h
40
41#include "vtkImageAlgorithm.h"
42#include "vtkImagingStencilModule.h" // For export macro
43
44VTK_ABI_NAMESPACE_BEGIN
45class VTKIMAGINGSTENCIL_EXPORT vtkImageStencilToImage : public vtkImageAlgorithm
46{
47public:
50 void PrintSelf(ostream& os, vtkIndent indent) override;
51
53
56 vtkSetMacro(OutsideValue, double);
57 vtkGetMacro(OutsideValue, double);
59
61
64 vtkSetMacro(InsideValue, double);
65 vtkGetMacro(InsideValue, double);
67
69
72 vtkSetMacro(OutputScalarType, int);
73 vtkGetMacro(OutputScalarType, int);
74 void SetOutputScalarTypeToFloat() { this->SetOutputScalarType(VTK_FLOAT); }
75 void SetOutputScalarTypeToDouble() { this->SetOutputScalarType(VTK_DOUBLE); }
76 void SetOutputScalarTypeToInt() { this->SetOutputScalarType(VTK_INT); }
77 void SetOutputScalarTypeToUnsignedInt() { this->SetOutputScalarType(VTK_UNSIGNED_INT); }
78 void SetOutputScalarTypeToLong() { this->SetOutputScalarType(VTK_LONG); }
79 void SetOutputScalarTypeToUnsignedLong() { this->SetOutputScalarType(VTK_UNSIGNED_LONG); }
80 void SetOutputScalarTypeToShort() { this->SetOutputScalarType(VTK_SHORT); }
81 void SetOutputScalarTypeToUnsignedShort() { this->SetOutputScalarType(VTK_UNSIGNED_SHORT); }
82 void SetOutputScalarTypeToUnsignedChar() { this->SetOutputScalarType(VTK_UNSIGNED_CHAR); }
83 void SetOutputScalarTypeToChar() { this->SetOutputScalarType(VTK_CHAR); }
85
86protected:
89
91
93
97
99
100private:
102 void operator=(const vtkImageStencilToImage&) = delete;
103};
104
105VTK_ABI_NAMESPACE_END
106#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.
static vtkImageStencilToImage * New()
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.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
#define VTK_SHORT
Definition vtkType.h:36
#define VTK_UNSIGNED_INT
Definition vtkType.h:39
#define VTK_DOUBLE
Definition vtkType.h:43
#define VTK_UNSIGNED_CHAR
Definition vtkType.h:35
#define VTK_UNSIGNED_SHORT
Definition vtkType.h:37
#define VTK_INT
Definition vtkType.h:38
#define VTK_FLOAT
Definition vtkType.h:42
#define VTK_CHAR
Definition vtkType.h:33
#define VTK_UNSIGNED_LONG
Definition vtkType.h:41
#define VTK_LONG
Definition vtkType.h:40