VTK
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 "vtkRenderingLICOpenGL2Module.h" // For export macro
42 #include "vtkImageAlgorithm.h"
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(
111  const int* inExt,
112  const int* inWholeExtent,
113  int *outExt);
114 
115 protected:
117  ~vtkImageDataLIC2D() override;
118 
121 
129  vtkInformation *info) override;
130 
131  int RequestUpdateExtent (vtkInformation * vtkNotUsed(request),
132  vtkInformationVector **inputVector,
133  vtkInformationVector *vtkNotUsed( outputVector )) override;
134 
139  int RequestData(vtkInformation *request,
140  vtkInformationVector **inputVector,
141  vtkInformationVector *outputVector) override;
142 
144  bool OwnWindow;
146 
149 
150  int Steps;
151  double StepSize;
153 
154 
155 private:
156  vtkImageDataLIC2D(const vtkImageDataLIC2D&) = delete;
157  void operator=(const vtkImageDataLIC2D&) = delete;
158 
159 };
160 
161 #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:50
vtkImageDataLIC2D::StepSize
double StepSize
Definition: vtkImageDataLIC2D.h:151
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkImageAlgorithm.h
vtkImageDataLIC2D::Context
vtkWeakPointer< vtkOpenGLRenderWindow > Context
Definition: vtkImageDataLIC2D.h:143
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:40
vtkImageNoiseSource
Create an image filled with noise.
Definition: vtkImageNoiseSource.h:41
vtkImageDataLIC2D::OpenGLExtensionsSupported
int OpenGLExtensionsSupported
Definition: vtkImageDataLIC2D.h:145
vtkX3D::port
Definition: vtkX3D.h:447
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:39
vtkImageDataLIC2D::NoiseSource
vtkImageNoiseSource * NoiseSource
Definition: vtkImageDataLIC2D.h:147
vtkImageDataLIC2D::Steps
int Steps
Definition: vtkImageDataLIC2D.h:150
vtkWeakPointer.h
vtkImageDataLIC2D::Magnification
int Magnification
Definition: vtkImageDataLIC2D.h:152
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::info
Definition: vtkX3D.h:376
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:144
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition: vtkOpenGLRenderWindow.h:53
vtkRenderWindow
create a window for renderers to draw into
Definition: vtkRenderWindow.h:87
vtkImageDataLIC2D::ImageCast
vtkImageCast * ImageCast
Definition: vtkImageDataLIC2D.h:148
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:46
vtkWeakPointer< vtkOpenGLRenderWindow >