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 =========================================================================*/
38 #ifndef vtkImageDataLIC2D_h
39 #define vtkImageDataLIC2D_h
40 
41 #include "vtkRenderingLICOpenGL2Module.h" // For export macro
42 #include "vtkImageAlgorithm.h"
43 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
44 
45 class vtkRenderWindow;
48 class vtkImageCast;
49 
50 class VTKRENDERINGLICOPENGL2_EXPORT vtkImageDataLIC2D : public vtkImageAlgorithm
51 {
52 public:
55  void PrintSelf(ostream& os, vtkIndent indent);
56 
58 
65  int SetContext( vtkRenderWindow * context );
68 
70 
75  vtkSetMacro(Steps,int);
76  vtkGetMacro(Steps,int);
78 
80 
91  vtkSetMacro(StepSize, double);
92  vtkGetMacro(StepSize, double);
94 
96 
99  vtkSetMacro(Magnification, int);
100  vtkGetMacro(Magnification, int);
102 
104 
107  vtkGetMacro(OpenGLExtensionsSupported, int);
109 
111  const int* inExt,
112  const int* inWholeExtent,
113  int *outExt);
114 
115 protected:
118 
121 
130 
131  int RequestUpdateExtent (vtkInformation * vtkNotUsed(request),
132  vtkInformationVector **inputVector,
133  vtkInformationVector *vtkNotUsed( outputVector ));
134 
139  virtual int RequestData(vtkInformation *request,
140  vtkInformationVector **inputVector,
141  vtkInformationVector *outputVector);
142 
144  bool OwnWindow;
145  int OpenGLExtensionsSupported;
146 
147  vtkImageNoiseSource* NoiseSource;
148  vtkImageCast* ImageCast;
149 
150  int Steps;
151  double StepSize;
152  int Magnification;
153 
154 
155 private:
156  vtkImageDataLIC2D(const vtkImageDataLIC2D&) VTK_DELETE_FUNCTION;
157  void operator=(const vtkImageDataLIC2D&) VTK_DELETE_FUNCTION;
158 
159 };
160 
161 #endif
Generic algorithm superclass for image algs.
Image Data type Casting Filter.
Definition: vtkImageCast.h:47
GPU implementation of a Line Integral Convolution, a technique for imaging vector fields.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkRenderWindow * GetContext()
int SetContext(vtkRenderWindow *context)
Get/Set the context.
vtkWeakPointer< vtkOpenGLRenderWindow > Context
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to collect information from their inputs and set information f...
int RequestUpdateExtent(vtkInformation *vtkNotUsed(request), vtkInformationVector **inputVector, vtkInformationVector *vtkNotUsed(outputVector))
static vtkImageDataLIC2D * New()
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
void TranslateInputExtent(const int *inExt, const int *inWholeExtent, int *outExt)
Create an image filled with noise.
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
OpenGL rendering window.
create a window for renderers to draw into
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.