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 
53 class vtkOpenGLHelper;
54 class vtkRenderWindow;
55 
56 class VTKRENDERINGLICOPENGL2_EXPORT vtkStructuredGridLIC2D
58 {
59 public:
62  void PrintSelf(ostream& os, vtkIndent indent) override;
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 
121 protected:
124 
132  vtkInformation *info) override;
133 
141  vtkInformation *info) override;
142 
144  vtkInformationVector **inputVector,
145  vtkInformationVector *outputVector) override;
146 
148  vtkInformationVector **inputVector,
149  vtkInformationVector *outputVector) override;
150 
155  vtkInformation *outInfo);
156 
161 
167  vtkInformationVector **inputVector,
168  vtkInformationVector *outputVector) override;
169 
170  int Steps;
171  double StepSize;
174 
176  bool OwnWindow;
180 
181 private:
183  void operator=(const vtkStructuredGridLIC2D&) = delete;
184 
185 };
186 
187 #endif
vtkStructuredGridLIC2D::StepSize
double StepSize
Definition: vtkStructuredGridLIC2D.h:171
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:159
vtkStructuredGridLIC2D::RequestData
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
vtkStructuredGridAlgorithm.h
vtkStructuredGridLIC2D::Magnification
int Magnification
Definition: vtkStructuredGridLIC2D.h:172
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::NoiseSource
vtkImageNoiseSource * NoiseSource
Definition: vtkStructuredGridLIC2D.h:175
vtkStructuredGridLIC2D::LICProgram
vtkOpenGLHelper * LICProgram
Definition: vtkStructuredGridLIC2D.h:179
vtkStructuredGrid
topologically regular array of data
Definition: vtkStructuredGrid.h:64
vtkStructuredGridLIC2D::LICSuccess
int LICSuccess
Definition: vtkStructuredGridLIC2D.h:178
vtkStructuredGridLIC2D::AllocateScalars
void AllocateScalars(vtkStructuredGrid *sg, vtkInformation *outInfo)
Stolen from vtkImageData.
vtkStructuredGridLIC2D::Steps
int Steps
Definition: vtkStructuredGridLIC2D.h:170
vtkStructuredGridLIC2D::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkStructuredGridLIC2D::RequestUpdateExtent
int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
vtkImageNoiseSource
Create an image filled with noise.
Definition: vtkImageNoiseSource.h:42
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkStructuredGridLIC2D::GetLICSuccess
int GetLICSuccess()
Check if LIC runs properly.
Definition: vtkStructuredGridLIC2D.h:119
vtkStructuredGridLIC2D::GetFBOSuccess
int GetFBOSuccess()
Check if FBO is started properly.
Definition: vtkStructuredGridLIC2D.h:114
vtkStructuredGridLIC2D::~vtkStructuredGridLIC2D
~vtkStructuredGridLIC2D() override
vtkOpenGLHelper
Definition: vtkOpenGLHelper.h:31
vtkStructuredGridLIC2D
GPU implementation of a Line Integral Convolution, a technique for imaging vector fields.
Definition: vtkStructuredGridLIC2D.h:58
vtkStructuredGridLIC2D::New
static vtkStructuredGridLIC2D * New()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkStructuredGridLIC2D::GetContext
vtkRenderWindow * GetContext()
vtkStructuredGridLIC2D::FBOSuccess
int FBOSuccess
Definition: vtkStructuredGridLIC2D.h:177
vtkStructuredGridLIC2D::OwnWindow
bool OwnWindow
Definition: vtkStructuredGridLIC2D.h:176
vtkStructuredGridLIC2D::Context
vtkWeakPointer< vtkRenderWindow > Context
Definition: vtkStructuredGridLIC2D.h:173
vtkWeakPointer.h
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkStructuredGridLIC2D::FillOutputPortInformation
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkStructuredGridLIC2D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkRenderWindow
create a window for renderers to draw into
Definition: vtkRenderWindow.h:88
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkStructuredGridLIC2D::RequestInformation
int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
vtkStructuredGridLIC2D::SetContext
int SetContext(vtkRenderWindow *context)
Get/Set the context.
vtkWeakPointer< vtkRenderWindow >