VTK
vtkImageStencil.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageStencil.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 vtkImageStencil_h
29 #define vtkImageStencil_h
30 
31 #include "vtkImagingStencilModule.h" // For export macro
33 
35 
37 {
38 public:
39  static vtkImageStencil *New();
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
44 
50 
52 
54  {
55  this->SetInputConnection(2, outputPort);
56  }
58 
60 
61  vtkSetMacro(ReverseStencil, int);
62  vtkBooleanMacro(ReverseStencil, int);
63  vtkGetMacro(ReverseStencil, int);
65 
67 
73 
75 
76  void SetBackgroundValue(double val) {
77  this->SetBackgroundColor(val,val,val,val); };
78  double GetBackgroundValue() {
79  return this->BackgroundColor[0]; };
81 
83 
85  vtkSetVector4Macro(BackgroundColor, double);
86  vtkGetVector4Macro(BackgroundColor, double);
88 
89 protected:
92 
94  vtkInformationVector **inputVector,
95  vtkInformationVector *outputVector,
96  vtkImageData ***inData, vtkImageData **outData,
97  int extent[6], int id);
98 
100  double BackgroundColor[4];
101 
103 
104 private:
105  vtkImageStencil(const vtkImageStencil&); // Not implemented.
106  void operator=(const vtkImageStencil&); // Not implemented.
107 };
108 
109 #endif
vtkImageStencil::GetStencil
vtkImageStencilData * GetStencil()
vtkImageStencil::FillInputPortInformation
virtual int FillInputPortInformation(int, vtkInformation *)
vtkImageStencil::SetBackgroundInputData
virtual void SetBackgroundInputData(vtkImageData *input)
vtkImageStencil::SetStencilData
virtual void SetStencilData(vtkImageStencilData *stencil)
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkImageStencil::ReverseStencil
int ReverseStencil
Definition: vtkImageStencil.h:99
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkThreadedImageAlgorithm
Generic filter that has one input..
Definition: vtkThreadedImageAlgorithm.h:37
vtkgl::input
GLenum GLenum GLenum input
Definition: vtkgl.h:15941
vtkImageStencil::ThreadedRequestData
void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int id)
vtkImageStencil::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkImageStencil::GetBackgroundValue
double GetBackgroundValue()
Definition: vtkImageStencil.h:78
vtkThreadedImageAlgorithm.h
vtkgl::val
GLuint GLfloat * val
Definition: vtkgl.h:13789
vtkImageStencil::~vtkImageStencil
~vtkImageStencil()
vtkgl::stencil
GLint GLfloat GLint stencil
Definition: vtkgl.h:12368
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkImagingStencilModule.h
vtkImageStencil::GetBackgroundInput
vtkImageData * GetBackgroundInput()
VTKIMAGINGSTENCIL_EXPORT
#define VTKIMAGINGSTENCIL_EXPORT
Definition: vtkImagingStencilModule.h:15
vtkImageStencil::SetStencilConnection
void SetStencilConnection(vtkAlgorithmOutput *outputPort)
Definition: vtkImageStencil.h:53
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkAlgorithm::SetInputConnection
virtual void SetInputConnection(int port, vtkAlgorithmOutput *input)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkImageStencil
combine images via a cookie-cutter operation
Definition: vtkImageStencil.h:37
vtkSetVector4Macro
#define vtkSetVector4Macro(name, type)
Definition: vtkSetGet.h:322
vtkImageStencil::New
static vtkImageStencil * New()
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:39
vtkImageStencilData
efficient description of an image stencil
Definition: vtkImageStencilData.h:37
vtkX3D::extent
@ extent
Definition: vtkX3D.h:345
vtkImageStencil::SetBackgroundValue
void SetBackgroundValue(double val)
Definition: vtkImageStencil.h:76
vtkGetVector4Macro
#define vtkGetVector4Macro(name, type)
Definition: vtkSetGet.h:341
vtkImageStencil::vtkImageStencil
vtkImageStencil()