VTK  9.3.20240424
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
40VTK_ABI_NAMESPACE_BEGIN
42class vtkOpenGLHelper;
43class vtkRenderWindow;
44
45class VTKRENDERINGLICOPENGL2_EXPORT vtkStructuredGridLIC2D : public vtkStructuredGridAlgorithm
46{
47public:
50 void PrintSelf(ostream& os, vtkIndent indent) override;
51
53
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
109protected:
112
119 int FillInputPortInformation(int port, vtkInformation* info) override;
120
127 int FillOutputPortInformation(int port, vtkInformation* info) override;
128
130 vtkInformationVector* outputVector) override;
131
133 vtkInformationVector* outputVector) override;
134
139
144
150 vtkInformationVector* outputVector) override;
151
152 int Steps;
153 double StepSize;
156
162
163private:
165 void operator=(const vtkStructuredGridLIC2D&) = delete;
166};
167
168VTK_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.
vtkRenderWindow * GetContext()
Get/Set the context.
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.
~vtkStructuredGridLIC2D() override
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.
static vtkStructuredGridLIC2D * New()
topologically regular array of data
a weak reference to a vtkObject.
#define VTK_INT_MAX
Definition vtkType.h:144