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 "vtkImageAlgorithm.h"
34 
36 {
37 public:
38  static vtkImageStencilToImage *New();
40  void PrintSelf(ostream& os, vtkIndent indent);
41 
43 
44  vtkSetMacro(OutsideValue, double);
45  vtkGetMacro(OutsideValue, double);
47 
49 
50  vtkSetMacro(InsideValue, double);
51  vtkGetMacro(InsideValue, double);
53 
55 
56  vtkSetMacro(OutputScalarType,int);
57  vtkGetMacro(OutputScalarType,int);
58  void SetOutputScalarTypeToFloat(){this->SetOutputScalarType(VTK_FLOAT);};
59  void SetOutputScalarTypeToDouble(){this->SetOutputScalarType(VTK_DOUBLE);};
60  void SetOutputScalarTypeToInt(){this->SetOutputScalarType(VTK_INT);};
62  {this->SetOutputScalarType(VTK_UNSIGNED_INT);};
63  void SetOutputScalarTypeToLong(){this->SetOutputScalarType(VTK_LONG);};
65  {this->SetOutputScalarType(VTK_UNSIGNED_LONG);};
66  void SetOutputScalarTypeToShort(){this->SetOutputScalarType(VTK_SHORT);};
68  {this->SetOutputScalarType(VTK_UNSIGNED_SHORT);};
70  {this->SetOutputScalarType(VTK_UNSIGNED_CHAR);};
72  {this->SetOutputScalarType(VTK_CHAR);};
74 
75 protected:
78 
79  virtual int RequestInformation(vtkInformation *,
82 
83  virtual int RequestData(vtkInformation *,
86 
87  double OutsideValue;
88  double InsideValue;
90 
91  virtual int FillInputPortInformation(int, vtkInformation*);
92 
93 private:
94  vtkImageStencilToImage(const vtkImageStencilToImage&); // Not implemented.
95  void operator=(const vtkImageStencilToImage&); // Not implemented.
96 };
97 
98 #endif