VTK  9.3.0
vtkImageDataLIC2D.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
26 #ifndef vtkImageDataLIC2D_h
27 #define vtkImageDataLIC2D_h
28 
29 #include "vtkImageAlgorithm.h"
30 #include "vtkRenderingLICOpenGL2Module.h" // For export macro
31 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
32 
33 VTK_ABI_NAMESPACE_BEGIN
34 class vtkRenderWindow;
37 class vtkImageCast;
38 
39 class VTKRENDERINGLICOPENGL2_EXPORT vtkImageDataLIC2D : public vtkImageAlgorithm
40 {
41 public:
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
47 
54  int SetContext(vtkRenderWindow* context);
57 
59 
64  vtkSetMacro(Steps, int);
65  vtkGetMacro(Steps, int);
67 
69 
80  vtkSetMacro(StepSize, double);
81  vtkGetMacro(StepSize, double);
83 
85 
88  vtkSetMacro(Magnification, int);
89  vtkGetMacro(Magnification, int);
91 
93 
96  vtkGetMacro(OpenGLExtensionsSupported, int);
98 
99  void TranslateInputExtent(const int* inExt, const int* inWholeExtent, int* outExt);
100 
101 protected:
103  ~vtkImageDataLIC2D() override;
104 
106 
114 
115  int RequestUpdateExtent(vtkInformation* vtkNotUsed(request), vtkInformationVector** inputVector,
116  vtkInformationVector* vtkNotUsed(outputVector)) override;
117 
122  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
123  vtkInformationVector* outputVector) override;
124 
126  bool OwnWindow;
128 
131 
132  int Steps;
133  double StepSize;
135 
136 private:
137  vtkImageDataLIC2D(const vtkImageDataLIC2D&) = delete;
138  void operator=(const vtkImageDataLIC2D&) = delete;
139 };
140 
141 VTK_ABI_NAMESPACE_END
142 #endif
Generic algorithm superclass for image algs.
Image Data type Casting Filter.
Definition: vtkImageCast.h:35
GPU implementation of a Line Integral Convolution, a technique for imaging vector fields.
vtkRenderWindow * GetContext()
Get/Set the context.
int SetContext(vtkRenderWindow *context)
Get/Set the context.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
int RequestUpdateExtent(vtkInformation *vtkNotUsed(request), vtkInformationVector **inputVector, vtkInformationVector *vtkNotUsed(outputVector)) override
vtkWeakPointer< vtkOpenGLRenderWindow > Context
vtkImageCast * ImageCast
~vtkImageDataLIC2D() override
vtkImageNoiseSource * NoiseSource
static vtkImageDataLIC2D * New()
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void TranslateInputExtent(const int *inExt, const int *inWholeExtent, int *outExt)
Create an image filled with noise.
a simple class to control print indentation
Definition: vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
OpenGL rendering window.
create a window for renderers to draw into
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447