VTK  9.3.20240419
vtkStructuredGridLIC2D.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
33 #ifndef vtkStructuredGridLIC2D_h
34 #define vtkStructuredGridLIC2D_h
35 
36 #include "vtkRenderingLICOpenGL2Module.h" // For export macro
38 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
39 
40 VTK_ABI_NAMESPACE_BEGIN
42 class vtkOpenGLHelper;
43 class vtkRenderWindow;
44 
45 class VTKRENDERINGLICOPENGL2_EXPORT vtkStructuredGridLIC2D : public vtkStructuredGridAlgorithm
46 {
47 public:
50  void PrintSelf(ostream& os, vtkIndent indent) override;
51 
53 
60  int SetContext(vtkRenderWindow* context);
63 
65 
70  vtkSetMacro(Steps, int);
71  vtkGetMacro(Steps, int);
73 
75 
87  vtkSetMacro(StepSize, double);
88  vtkGetMacro(StepSize, double);
90 
92 
95  vtkSetClampMacro(Magnification, int, 1, VTK_INT_MAX);
96  vtkGetMacro(Magnification, int);
98 
102  int GetFBOSuccess() { return this->FBOSuccess; }
103 
107  int GetLICSuccess() { return this->LICSuccess; }
108 
109 protected:
112 
120 
128 
130  vtkInformationVector* outputVector) override;
131 
133  vtkInformationVector* outputVector) override;
134 
139 
144 
149  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
150  vtkInformationVector* outputVector) override;
151 
152  int Steps;
153  double StepSize;
156 
158  bool OwnWindow;
162 
163 private:
165  void operator=(const vtkStructuredGridLIC2D&) = delete;
166 };
167 
168 VTK_ABI_NAMESPACE_END
169 #endif
general representation of visualization data
Create an image filled with noise.
a simple class to control print indentation
Definition: vtkIndent.h:108
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 RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkImageNoiseSource * NoiseSource
int GetFBOSuccess()
Check if FBO is started properly.
int SetContext(vtkRenderWindow *context)
Get/Set the context.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
int GetLICSuccess()
Check if LIC runs properly.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
vtkRenderWindow * GetContext()
Get/Set the context.
~vtkStructuredGridLIC2D() override
static vtkStructuredGridLIC2D * New()
vtkWeakPointer< vtkRenderWindow > Context
void AllocateOutputData(vtkDataObject *output, vtkInformation *outInfo)
Stolen from vtkImageAlgorithm.
int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
void AllocateScalars(vtkStructuredGrid *sg, vtkInformation *outInfo)
Stolen from vtkImageData.
topologically regular array of data
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
#define VTK_INT_MAX
Definition: vtkType.h:144