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 =========================================================================*/
34 #ifndef vtkImageDataLIC2D_h
35 #define vtkImageDataLIC2D_h
36 
37 #include "vtkRenderingLICModule.h" // For export macro
38 #include "vtkImageAlgorithm.h"
39 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
40 
41 class vtkRenderWindow;
43 class vtkImageCast;
44 class vtkShaderProgram2;
45 
47 {
48 public:
49  static vtkImageDataLIC2D* New();
51  void PrintSelf(ostream& os, vtkIndent indent);
52 
54 
59  int SetContext( vtkRenderWindow * context );
60  vtkRenderWindow * GetContext();
62 
64 
66  vtkSetMacro(Steps,int);
67  vtkGetMacro(Steps,int);
69 
71 
77  vtkSetMacro(StepSize, double);
78  vtkGetMacro(StepSize, double);
80 
82 
83  vtkSetMacro(Magnification, int);
84  vtkGetMacro(Magnification, int);
86 
88 
89  vtkGetMacro(OpenGLExtensionsSupported, int);
91 
92  void TranslateInputExtent(
93  const int* inExt,
94  const int* inWholeExtent,
95  int *outExt);
96 
97 //BTX
98 protected:
101 
102  virtual int RequestInformation(vtkInformation *,
104 
106 
110  virtual int FillInputPortInformation(int port,
113 
114  int RequestUpdateExtent (vtkInformation * vtkNotUsed(request),
115  vtkInformationVector **inputVector,
116  vtkInformationVector *vtkNotUsed( outputVector ));
117 
119 
121  virtual int RequestData(vtkInformation *request,
122  vtkInformationVector **inputVector,
123  vtkInformationVector *outputVector);
125 
127  bool OwnWindow;
129 
131 
134 
135  int Steps;
136  double StepSize;
138 
139 
140 
141 private:
142  vtkImageDataLIC2D(const vtkImageDataLIC2D&); // Not implemented.
143  void operator=(const vtkImageDataLIC2D&); // Not implemented.
144 //ETX
145 };
146 
147 #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.
#define VTKRENDERINGLIC_EXPORT
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)