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 =========================================================================*/
35 #ifndef vtkImageDataLIC2D_h
36 #define vtkImageDataLIC2D_h
37 
38 #include "vtkRenderingLICModule.h" // For export macro
39 #include "vtkImageAlgorithm.h"
40 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
41 
42 class vtkRenderWindow;
44 class vtkImageCast;
45 class vtkShaderProgram2;
46 
47 class VTKRENDERINGLIC_EXPORT vtkImageDataLIC2D : public vtkImageAlgorithm
48 {
49 public:
50  static vtkImageDataLIC2D* New();
52  void PrintSelf(ostream& os, vtkIndent indent);
53 
55 
62  int SetContext( vtkRenderWindow * context );
63  vtkRenderWindow * GetContext();
65 
67 
72  vtkSetMacro(Steps,int);
73  vtkGetMacro(Steps,int);
75 
77 
88  vtkSetMacro(StepSize, double);
89  vtkGetMacro(StepSize, double);
91 
93 
96  vtkSetMacro(Magnification, int);
97  vtkGetMacro(Magnification, int);
99 
101 
104  vtkGetMacro(OpenGLExtensionsSupported, int);
106 
107  void TranslateInputExtent(
108  const int* inExt,
109  const int* inWholeExtent,
110  int *outExt);
111 
112 protected:
115 
116  virtual int RequestInformation(vtkInformation *,
118 
125  virtual int FillInputPortInformation(int port,
127 
128  int RequestUpdateExtent (vtkInformation * vtkNotUsed(request),
129  vtkInformationVector **inputVector,
130  vtkInformationVector *vtkNotUsed( outputVector ));
131 
136  virtual int RequestData(vtkInformation *request,
137  vtkInformationVector **inputVector,
138  vtkInformationVector *outputVector);
139 
141  bool OwnWindow;
143 
145 
148 
149  int Steps;
150  double StepSize;
152 
153 
154 
155 private:
156  vtkImageDataLIC2D(const vtkImageDataLIC2D&) VTK_DELETE_FUNCTION;
157  void operator=(const vtkImageDataLIC2D&) VTK_DELETE_FUNCTION;
158 
159 };
160 
161 #endif
Image Data type Casting Filter.
Definition: vtkImageCast.h:46
Store vtkAlgorithm input/output information.
vtkImageNoiseSource * NoiseSource
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to translate the update extent requests from each output port ...
GLSL Program.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
GPU implementation of a Line Integral Convolution, a technique for imaging vector fields...
vtkImageCast * ImageCast
Create an image filled with noise.
vtkShaderProgram2 * MagShader
vtkWeakPointer< vtkRenderWindow > Context
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
create a window for renderers to draw into
int FillInputPortInformation(int port, vtkInformation *info) override
These method should be reimplemented by subclasses that have more than a single input or single outpu...
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.