VTK
vtkImageDataLIC2D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageDataLIC2D.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 =========================================================================*/
37 #ifndef vtkImageDataLIC2D_h
38 #define vtkImageDataLIC2D_h
39 
40 #include "vtkRenderingLICModule.h" // For export macro
41 #include "vtkImageAlgorithm.h"
42 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
43 
44 class vtkRenderWindow;
46 class vtkImageCast;
47 class vtkShaderProgram2;
48 
49 class VTKRENDERINGLIC_EXPORT vtkImageDataLIC2D : public vtkImageAlgorithm
50 {
51 public:
52  static vtkImageDataLIC2D* New();
54  void PrintSelf(ostream& os, vtkIndent indent);
55 
57 
62  int SetContext( vtkRenderWindow * context );
63  vtkRenderWindow * GetContext();
65 
67 
69  vtkSetMacro(Steps,int);
70  vtkGetMacro(Steps,int);
72 
74 
80  vtkSetMacro(StepSize, double);
81  vtkGetMacro(StepSize, double);
83 
85 
86  vtkSetMacro(Magnification, int);
87  vtkGetMacro(Magnification, int);
89 
91 
92  vtkGetMacro(OpenGLExtensionsSupported, int);
94 
95  void TranslateInputExtent(
96  const int* inExt,
97  const int* inWholeExtent,
98  int *outExt);
99 
100 //BTX
101 protected:
104 
105  virtual int RequestInformation(vtkInformation *,
107 
109 
113  virtual int FillInputPortInformation(int port,
116 
117  int RequestUpdateExtent (vtkInformation * vtkNotUsed(request),
118  vtkInformationVector **inputVector,
119  vtkInformationVector *vtkNotUsed( outputVector ));
120 
122 
124  virtual int RequestData(vtkInformation *request,
125  vtkInformationVector **inputVector,
126  vtkInformationVector *outputVector);
128 
130  bool OwnWindow;
132 
134 
137 
138  int Steps;
139  double StepSize;
141 
142 
143 
144 private:
145  vtkImageDataLIC2D(const vtkImageDataLIC2D&); // Not implemented.
146  void operator=(const vtkImageDataLIC2D&); // Not implemented.
147 //ETX
148 };
149 
150 #endif
Image Data type Casting Filter.
Definition: vtkImageCast.h:45
Store vtkAlgorithm input/output information.
vtkImageNoiseSource * NoiseSource
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
GLSL Program.
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkImageCast * ImageCast
Create an image filled with noise.
vtkShaderProgram2 * MagShader
vtkWeakPointer< vtkRenderWindow > Context
create a window for renderers to draw into
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)
static vtkAlgorithm * New()
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)