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 =========================================================================*/
42 #ifndef vtkStructuredGridLIC2D_h
43 #define vtkStructuredGridLIC2D_h
44 
45 #include "vtkRenderingLICOpenGL2Module.h" // For export macro
47 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
48 
50 class vtkOpenGLHelper;
51 class vtkRenderWindow;
52 
53 class VTKRENDERINGLICOPENGL2_EXPORT vtkStructuredGridLIC2D
55 {
56 public:
59  void PrintSelf(ostream& os, vtkIndent indent);
60 
62 
69  int SetContext( vtkRenderWindow * context );
72 
74 
79  vtkSetMacro(Steps,int);
80  vtkGetMacro(Steps,int);
82 
84 
96  vtkSetMacro(StepSize,double);
97  vtkGetMacro(StepSize,double);
99 
101 
104  vtkSetClampMacro(Magnification, int, 1, VTK_INT_MAX);
105  vtkGetMacro(Magnification, int);
107 
111  int GetFBOSuccess() { return this->FBOSuccess; }
112 
116  int GetLICSuccess() { return this->LICSuccess; }
117 
118 protected:
121 
130 
139 
140  virtual int RequestInformation(vtkInformation *request,
141  vtkInformationVector **inputVector,
142  vtkInformationVector *outputVector);
143 
145  vtkInformationVector **inputVector,
146  vtkInformationVector *outputVector);
147 
152  vtkInformation *outInfo);
153 
158 
163  virtual int RequestData(vtkInformation *request,
164  vtkInformationVector **inputVector,
165  vtkInformationVector *outputVector);
166 
167  int Steps;
168  double StepSize;
169  int Magnification;
171 
172  vtkImageNoiseSource* NoiseSource;
173  bool OwnWindow;
174  int FBOSuccess;
175  int LICSuccess;
177 
178 private:
179  vtkStructuredGridLIC2D(const vtkStructuredGridLIC2D&) VTK_DELETE_FUNCTION;
180  void operator=(const vtkStructuredGridLIC2D&) VTK_DELETE_FUNCTION;
181 
182 };
183 
184 #endif
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:153
vtkStructuredGridAlgorithm.h
vtkStructuredGridLIC2D::vtkStructuredGridLIC2D
vtkStructuredGridLIC2D()
vtkStructuredGridLIC2D::AllocateOutputData
void AllocateOutputData(vtkDataObject *output, vtkInformation *outInfo)
Stolen from vtkImageAlgorithm.
vtkStructuredGridAlgorithm
Superclass for algorithms that produce only structured grid as output.
Definition: vtkStructuredGridAlgorithm.h:42
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkStructuredGridLIC2D::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkStructuredGridLIC2D::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkStructuredGridLIC2D::LICProgram
vtkOpenGLHelper * LICProgram
Definition: vtkStructuredGridLIC2D.h:176
vtkStructuredGridLIC2D::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkStructuredGrid
topologically regular array of data
Definition: vtkStructuredGrid.h:64
vtkStructuredGridLIC2D::AllocateScalars
void AllocateScalars(vtkStructuredGrid *sg, vtkInformation *outInfo)
Stolen from vtkImageData.
vtkImageNoiseSource
Create an image filled with noise.
Definition: vtkImageNoiseSource.h:42
vtkStructuredGridLIC2D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkStructuredGridLIC2D::GetLICSuccess
int GetLICSuccess()
Check if LIC runs properly.
Definition: vtkStructuredGridLIC2D.h:116
vtkStructuredGridLIC2D::GetFBOSuccess
int GetFBOSuccess()
Check if FBO is started properly.
Definition: vtkStructuredGridLIC2D.h:111
vtkOpenGLHelper
Definition: vtkOpenGLHelper.h:31
vtkStructuredGridLIC2D
GPU implementation of a Line Integral Convolution, a technique for imaging vector fields.
Definition: vtkStructuredGridLIC2D.h:57
vtkStructuredGridLIC2D::New
static vtkStructuredGridLIC2D * New()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkStructuredGridLIC2D::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
vtkStructuredGridLIC2D::GetContext
vtkRenderWindow * GetContext()
vtkWeakPointer.h
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkStructuredGridLIC2D::RequestUpdateExtent
int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkRenderWindow
create a window for renderers to draw into
Definition: vtkRenderWindow.h:87
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkStructuredGridLIC2D::SetContext
int SetContext(vtkRenderWindow *context)
Get/Set the context.
vtkStructuredGridLIC2D::~vtkStructuredGridLIC2D
~vtkStructuredGridLIC2D()
vtkWeakPointer< vtkRenderWindow >