VTK  9.3.1
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:
42  static vtkImageDataLIC2D* New();
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
47 
54  int SetContext(vtkRenderWindow* context);
55  vtkRenderWindow* GetContext();
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 
113  int FillInputPortInformation(int port, vtkInformation* info) override;
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
OpenGL rendering window.
vtkImageCast * ImageCast
Image Data type Casting Filter.
Definition: vtkImageCast.h:34
Store vtkAlgorithm input/output information.
vtkWeakPointer< vtkOpenGLRenderWindow > Context
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to translate the update extent requests from each output port ...
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
GPU implementation of a Line Integral Convolution, a technique for imaging vector fields...
Create an image filled with noise.
vtkImageNoiseSource * NoiseSource
create a window for renderers to draw into
int FillInputPortInformation(int port, vtkInformation *info) override
These method should be reimplemented by subclasses that have more than a single input or single outpu...
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.