VTK  9.2.6
vtkImageDataLIC2D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageDataLIC2D.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 =========================================================================*/
38 #ifndef vtkImageDataLIC2D_h
39 #define vtkImageDataLIC2D_h
40 
41 #include "vtkImageAlgorithm.h"
42 #include "vtkRenderingLICOpenGL2Module.h" // For export macro
43 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
44 
45 class vtkRenderWindow;
48 class vtkImageCast;
49 
50 class VTKRENDERINGLICOPENGL2_EXPORT vtkImageDataLIC2D : public vtkImageAlgorithm
51 {
52 public:
53  static vtkImageDataLIC2D* New();
55  void PrintSelf(ostream& os, vtkIndent indent) override;
56 
58 
65  int SetContext(vtkRenderWindow* context);
66  vtkRenderWindow* GetContext();
68 
70 
75  vtkSetMacro(Steps, int);
76  vtkGetMacro(Steps, int);
78 
80 
91  vtkSetMacro(StepSize, double);
92  vtkGetMacro(StepSize, double);
94 
96 
99  vtkSetMacro(Magnification, int);
100  vtkGetMacro(Magnification, int);
102 
104 
107  vtkGetMacro(OpenGLExtensionsSupported, int);
109 
110  void TranslateInputExtent(const int* inExt, const int* inWholeExtent, int* outExt);
111 
112 protected:
114  ~vtkImageDataLIC2D() override;
115 
117 
124  int FillInputPortInformation(int port, vtkInformation* info) override;
125 
126  int RequestUpdateExtent(vtkInformation* vtkNotUsed(request), vtkInformationVector** inputVector,
127  vtkInformationVector* vtkNotUsed(outputVector)) override;
128 
133  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
134  vtkInformationVector* outputVector) override;
135 
137  bool OwnWindow;
139 
142 
143  int Steps;
144  double StepSize;
146 
147 private:
148  vtkImageDataLIC2D(const vtkImageDataLIC2D&) = delete;
149  void operator=(const vtkImageDataLIC2D&) = delete;
150 };
151 
152 #endif
OpenGL rendering window.
vtkImageCast * ImageCast
Image Data type Casting Filter.
Definition: vtkImageCast.h:45
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:39
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.