VTK
vtkStructuredGridLIC2D.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkStructuredGridLIC2D.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=========================================================================*/
45#ifndef vtkStructuredGridLIC2D_h
46#define vtkStructuredGridLIC2D_h
47
48#include "vtkRenderingLICOpenGL2Module.h" // For export macro
50#include "vtkWeakPointer.h" // needed for vtkWeakPointer.
51
53class vtkOpenGLHelper;
54class vtkRenderWindow;
55
56class VTKRENDERINGLICOPENGL2_EXPORT vtkStructuredGridLIC2D
58{
59public:
62 void PrintSelf(ostream& os, vtkIndent indent);
63
65
72 int SetContext( vtkRenderWindow * context );
75
77
82 vtkSetMacro(Steps,int);
83 vtkGetMacro(Steps,int);
85
87
99 vtkSetMacro(StepSize,double);
100 vtkGetMacro(StepSize,double);
102
104
107 vtkSetClampMacro(Magnification, int, 1, VTK_INT_MAX);
108 vtkGetMacro(Magnification, int);
110
114 int GetFBOSuccess() { return this->FBOSuccess; }
115
119 int GetLICSuccess() { return this->LICSuccess; }
120
121protected:
124
133
142
143 virtual int RequestInformation(vtkInformation *request,
144 vtkInformationVector **inputVector,
145 vtkInformationVector *outputVector);
146
148 vtkInformationVector **inputVector,
149 vtkInformationVector *outputVector);
150
155 vtkInformation *outInfo);
156
161
166 virtual int RequestData(vtkInformation *request,
167 vtkInformationVector **inputVector,
168 vtkInformationVector *outputVector);
169
170 int Steps;
171 double StepSize;
172 int Magnification;
174
175 vtkImageNoiseSource* NoiseSource;
176 bool OwnWindow;
177 int FBOSuccess;
178 int LICSuccess;
180
181private:
182 vtkStructuredGridLIC2D(const vtkStructuredGridLIC2D&) VTK_DELETE_FUNCTION;
183 void operator=(const vtkStructuredGridLIC2D&) VTK_DELETE_FUNCTION;
184
185};
186
187#endif
general representation of visualization data
Definition: vtkDataObject.h:65
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.
create a window for renderers to draw into
Superclass for algorithms that produce only structured grid as output.
GPU implementation of a Line Integral Convolution, a technique for imaging vector fields.
int GetFBOSuccess()
Check if FBO is started properly.
int SetContext(vtkRenderWindow *context)
Get/Set the context.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkRenderWindow * GetContext()
int GetLICSuccess()
Check if LIC runs properly.
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
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.
int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void AllocateOutputData(vtkDataObject *output, vtkInformation *outInfo)
Stolen from vtkImageAlgorithm.
void AllocateScalars(vtkStructuredGrid *sg, vtkInformation *outInfo)
Stolen from vtkImageData.
static vtkStructuredGridLIC2D * New()
topologically regular array of data
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
#define VTK_INT_MAX
Definition: vtkType.h:153