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 =========================================================================*/
30 #ifndef vtkImageStencilToImage_h
31 #define vtkImageStencilToImage_h
32 
33 #include "vtkImagingStencilModule.h" // For export macro
34 #include "vtkImageAlgorithm.h"
35 
37 {
38 public:
39  static vtkImageStencilToImage *New();
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
44 
45  vtkSetMacro(OutsideValue, double);
46  vtkGetMacro(OutsideValue, double);
48 
50 
51  vtkSetMacro(InsideValue, double);
52  vtkGetMacro(InsideValue, double);
54 
56 
57  vtkSetMacro(OutputScalarType,int);
58  vtkGetMacro(OutputScalarType,int);
59  void SetOutputScalarTypeToFloat(){this->SetOutputScalarType(VTK_FLOAT);};
60  void SetOutputScalarTypeToDouble(){this->SetOutputScalarType(VTK_DOUBLE);};
61  void SetOutputScalarTypeToInt(){this->SetOutputScalarType(VTK_INT);};
63  {this->SetOutputScalarType(VTK_UNSIGNED_INT);};
64  void SetOutputScalarTypeToLong(){this->SetOutputScalarType(VTK_LONG);};
66  {this->SetOutputScalarType(VTK_UNSIGNED_LONG);};
67  void SetOutputScalarTypeToShort(){this->SetOutputScalarType(VTK_SHORT);};
69  {this->SetOutputScalarType(VTK_UNSIGNED_SHORT);};
71  {this->SetOutputScalarType(VTK_UNSIGNED_CHAR);};
73  {this->SetOutputScalarType(VTK_CHAR);};
75 
76 protected:
79 
80  virtual int RequestInformation(vtkInformation *,
83 
84  virtual int RequestData(vtkInformation *,
87 
88  double OutsideValue;
89  double InsideValue;
91 
92  virtual int FillInputPortInformation(int, vtkInformation*);
93 
94 private:
95  vtkImageStencilToImage(const vtkImageStencilToImage&); // Not implemented.
96  void operator=(const vtkImageStencilToImage&); // Not implemented.
97 };
98 
99 #endif
#define VTK_UNSIGNED_INT
Definition: vtkType.h:32
Store vtkAlgorithm input/output information.
#define VTK_UNSIGNED_SHORT
Definition: vtkType.h:30
Convert an image stencil into an image.
#define VTKIMAGINGSTENCIL_EXPORT
#define VTK_DOUBLE
Definition: vtkType.h:36
#define VTK_FLOAT
Definition: vtkType.h:35
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTK_SHORT
Definition: vtkType.h:29
#define VTK_CHAR
Definition: vtkType.h:26
#define VTK_LONG
Definition: vtkType.h:33
virtual int FillInputPortInformation(int port, vtkInformation *info)
#define VTK_UNSIGNED_CHAR
Definition: vtkType.h:28
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)
static vtkAlgorithm * New()
#define VTK_UNSIGNED_LONG
Definition: vtkType.h:34
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTK_INT
Definition: vtkType.h:31