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:
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 
83 
84  virtual int RequestData(vtkInformation *,
87 
88  double OutsideValue;
89  double InsideValue;
91 
93 
94 private:
95  vtkImageStencilToImage(const vtkImageStencilToImage&); // Not implemented.
96  void operator=(const vtkImageStencilToImage&); // Not implemented.
97 };
98 
99 #endif
vtkImageStencilToImage::SetOutputScalarTypeToUnsignedShort
void SetOutputScalarTypeToUnsignedShort()
Definition: vtkImageStencilToImage.h:68
vtkImageStencilToImage::SetOutputScalarTypeToInt
void SetOutputScalarTypeToInt()
Definition: vtkImageStencilToImage.h:61
vtkImageStencilToImage::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
VTK_UNSIGNED_INT
#define VTK_UNSIGNED_INT
Definition: vtkType.h:32
vtkImageStencilToImage::OutputScalarType
int OutputScalarType
Definition: vtkImageStencilToImage.h:90
vtkImageStencilToImage::SetOutputScalarTypeToDouble
void SetOutputScalarTypeToDouble()
Definition: vtkImageStencilToImage.h:60
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkImageStencilToImage::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
VTK_UNSIGNED_SHORT
#define VTK_UNSIGNED_SHORT
Definition: vtkType.h:30
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkImageAlgorithm.h
vtkImageStencilToImage::SetOutputScalarTypeToUnsignedLong
void SetOutputScalarTypeToUnsignedLong()
Definition: vtkImageStencilToImage.h:65
vtkImageStencilToImage::SetOutputScalarTypeToLong
void SetOutputScalarTypeToLong()
Definition: vtkImageStencilToImage.h:64
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:40
vtkImageStencilToImage::SetOutputScalarTypeToUnsignedChar
void SetOutputScalarTypeToUnsignedChar()
Definition: vtkImageStencilToImage.h:70
vtkImageStencilToImage::InsideValue
double InsideValue
Definition: vtkImageStencilToImage.h:89
vtkImageStencilToImage::SetOutputScalarTypeToFloat
void SetOutputScalarTypeToFloat()
Definition: vtkImageStencilToImage.h:59
vtkImageStencilToImage::~vtkImageStencilToImage
~vtkImageStencilToImage()
vtkImageStencilToImage::OutsideValue
double OutsideValue
Definition: vtkImageStencilToImage.h:88
VTK_CHAR
#define VTK_CHAR
Definition: vtkType.h:26
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkImagingStencilModule.h
VTKIMAGINGSTENCIL_EXPORT
#define VTKIMAGINGSTENCIL_EXPORT
Definition: vtkImagingStencilModule.h:15
VTK_FLOAT
#define VTK_FLOAT
Definition: vtkType.h:35
vtkImageStencilToImage::New
static vtkImageStencilToImage * New()
VTK_DOUBLE
#define VTK_DOUBLE
Definition: vtkType.h:36
VTK_UNSIGNED_CHAR
#define VTK_UNSIGNED_CHAR
Definition: vtkType.h:28
VTK_LONG
#define VTK_LONG
Definition: vtkType.h:33
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkImageStencilToImage::SetOutputScalarTypeToUnsignedInt
void SetOutputScalarTypeToUnsignedInt()
Definition: vtkImageStencilToImage.h:62
vtkImageStencilToImage::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
VTK_UNSIGNED_LONG
#define VTK_UNSIGNED_LONG
Definition: vtkType.h:34
vtkImageStencilToImage::SetOutputScalarTypeToChar
void SetOutputScalarTypeToChar()
Definition: vtkImageStencilToImage.h:72
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkImageStencilToImage::vtkImageStencilToImage
vtkImageStencilToImage()
VTK_SHORT
#define VTK_SHORT
Definition: vtkType.h:29
vtkImageStencilToImage::SetOutputScalarTypeToShort
void SetOutputScalarTypeToShort()
Definition: vtkImageStencilToImage.h:67
vtkImageStencilToImage
Convert an image stencil into an image.
Definition: vtkImageStencilToImage.h:37
VTK_INT
#define VTK_INT
Definition: vtkType.h:31
vtkImageStencilToImage::FillInputPortInformation
virtual int FillInputPortInformation(int, vtkInformation *)