VTK  9.0.1
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 =========================================================================*/
35 #ifndef vtkImageDataLIC2D_h
36 #define vtkImageDataLIC2D_h
37 
38 #include "vtkImageAlgorithm.h"
39 #include "vtkRenderingLICOpenGL2Module.h" // For export macro
40 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
41 
42 class vtkRenderWindow;
45 class vtkImageCast;
46 
47 class VTKRENDERINGLICOPENGL2_EXPORT vtkImageDataLIC2D : public vtkImageAlgorithm
48 {
49 public:
50  static vtkImageDataLIC2D* New();
52  void PrintSelf(ostream& os, vtkIndent indent) override;
53 
55 
62  int SetContext(vtkRenderWindow* context);
63  vtkRenderWindow* GetContext();
65 
67 
72  vtkSetMacro(Steps, int);
73  vtkGetMacro(Steps, int);
75 
77 
88  vtkSetMacro(StepSize, double);
89  vtkGetMacro(StepSize, double);
91 
93 
96  vtkSetMacro(Magnification, int);
97  vtkGetMacro(Magnification, int);
99 
101 
104  vtkGetMacro(OpenGLExtensionsSupported, int);
106 
107  void TranslateInputExtent(const int* inExt, const int* inWholeExtent, int* outExt);
108 
109 protected:
111  ~vtkImageDataLIC2D() override;
112 
114 
121  int FillInputPortInformation(int port, vtkInformation* info) override;
122 
123  int RequestUpdateExtent(vtkInformation* vtkNotUsed(request), vtkInformationVector** inputVector,
124  vtkInformationVector* vtkNotUsed(outputVector)) override;
125 
130  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
131  vtkInformationVector* outputVector) override;
132 
134  bool OwnWindow;
136 
139 
140  int Steps;
141  double StepSize;
143 
144 private:
145  vtkImageDataLIC2D(const vtkImageDataLIC2D&) = delete;
146  void operator=(const vtkImageDataLIC2D&) = delete;
147 };
148 
149 #endif
vtkImageAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.
vtkImageDataLIC2D
Definition: vtkImageDataLIC2D.h:47
vtkImageDataLIC2D::StepSize
double StepSize
Definition: vtkImageDataLIC2D.h:141
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkImageAlgorithm.h
vtkImageDataLIC2D::Context
vtkWeakPointer< vtkOpenGLRenderWindow > Context
Definition: vtkImageDataLIC2D.h:133
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:37
vtkImageNoiseSource
Create an image filled with noise.
Definition: vtkImageNoiseSource.h:33
vtkImageDataLIC2D::OpenGLExtensionsSupported
int OpenGLExtensionsSupported
Definition: vtkImageDataLIC2D.h:135
vtkX3D::port
@ port
Definition: vtkX3D.h:453
vtkImageAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to translate the update extent requests from each output port ...
vtkImageAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkImageDataLIC2D::NoiseSource
vtkImageNoiseSource * NoiseSource
Definition: vtkImageDataLIC2D.h:137
vtkImageDataLIC2D::Steps
int Steps
Definition: vtkImageDataLIC2D.h:140
vtkWeakPointer.h
vtkImageDataLIC2D::Magnification
int Magnification
Definition: vtkImageDataLIC2D.h:142
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkX3D::info
@ info
Definition: vtkX3D.h:382
vtkImageAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkImageDataLIC2D::OwnWindow
bool OwnWindow
Definition: vtkImageDataLIC2D.h:134
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition: vtkOpenGLRenderWindow.h:51
vtkRenderWindow
create a window for renderers to draw into
Definition: vtkRenderWindow.h:93
vtkImageDataLIC2D::ImageCast
vtkImageCast * ImageCast
Definition: vtkImageDataLIC2D.h:138
vtkImageAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkImageCast
Image Data type Casting Filter.
Definition: vtkImageCast.h:39
vtkWeakPointer< vtkOpenGLRenderWindow >