VTK
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 =========================================================================*/
28 #ifndef vtkImageStencilToImage_h
29 #define vtkImageStencilToImage_h
30 
31 #include "vtkImagingStencilModule.h" // For export macro
32 #include "vtkImageAlgorithm.h"
33 
34 class VTKIMAGINGSTENCIL_EXPORT vtkImageStencilToImage : public vtkImageAlgorithm
35 {
36 public:
37  static vtkImageStencilToImage *New();
39  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
40 
42 
45  vtkSetMacro(OutsideValue, double);
46  vtkGetMacro(OutsideValue, double);
48 
50 
53  vtkSetMacro(InsideValue, double);
54  vtkGetMacro(InsideValue, double);
56 
58 
61  vtkSetMacro(OutputScalarType,int);
62  vtkGetMacro(OutputScalarType,int);
63  void SetOutputScalarTypeToFloat(){this->SetOutputScalarType(VTK_FLOAT);};
64  void SetOutputScalarTypeToDouble(){this->SetOutputScalarType(VTK_DOUBLE);};
65  void SetOutputScalarTypeToInt(){this->SetOutputScalarType(VTK_INT);};
67  {this->SetOutputScalarType(VTK_UNSIGNED_INT);};
68  void SetOutputScalarTypeToLong(){this->SetOutputScalarType(VTK_LONG);};
70  {this->SetOutputScalarType(VTK_UNSIGNED_LONG);};
71  void SetOutputScalarTypeToShort(){this->SetOutputScalarType(VTK_SHORT);};
73  {this->SetOutputScalarType(VTK_UNSIGNED_SHORT);};
75  {this->SetOutputScalarType(VTK_UNSIGNED_CHAR);};
77  {this->SetOutputScalarType(VTK_CHAR);};
79 
80 protected:
82  ~vtkImageStencilToImage() VTK_OVERRIDE;
83 
84  int RequestInformation(vtkInformation *,
86  vtkInformationVector *) VTK_OVERRIDE;
87 
88  int RequestData(vtkInformation *,
90  vtkInformationVector *) VTK_OVERRIDE;
91 
92  double OutsideValue;
93  double InsideValue;
94  int OutputScalarType;
95 
96  int FillInputPortInformation(int, vtkInformation*) VTK_OVERRIDE;
97 
98 private:
99  vtkImageStencilToImage(const vtkImageStencilToImage&) VTK_DELETE_FUNCTION;
100  void operator=(const vtkImageStencilToImage&) VTK_DELETE_FUNCTION;
101 };
102 
103 #endif
void SetOutputScalarTypeToUnsignedChar()
The desired output scalar type.
#define VTK_UNSIGNED_INT
Definition: vtkType.h:55
Store vtkAlgorithm input/output information.
#define VTK_UNSIGNED_SHORT
Definition: vtkType.h:53
void SetOutputScalarTypeToUnsignedShort()
The desired output scalar type.
Convert an image stencil into an image.
#define VTK_DOUBLE
Definition: vtkType.h:59
#define VTK_FLOAT
Definition: vtkType.h:58
void SetOutputScalarTypeToInt()
The desired output scalar type.
void SetOutputScalarTypeToFloat()
The desired output scalar type.
a simple class to control print indentation
Definition: vtkIndent.h:33
void SetOutputScalarTypeToLong()
The desired output scalar type.
void SetOutputScalarTypeToDouble()
The desired output scalar type.
#define VTK_SHORT
Definition: vtkType.h:52
#define VTK_CHAR
Definition: vtkType.h:49
#define VTK_LONG
Definition: vtkType.h:56
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void SetOutputScalarTypeToUnsignedInt()
The desired output scalar type.
#define VTK_UNSIGNED_CHAR
Definition: vtkType.h:51
void SetOutputScalarTypeToShort()
The desired output scalar type.
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define VTK_UNSIGNED_LONG
Definition: vtkType.h:57
void SetOutputScalarTypeToUnsignedLong()
The desired output scalar type.
void SetOutputScalarTypeToChar()
The desired output scalar type.
#define VTK_INT
Definition: vtkType.h:54