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 =========================================================================*/
35 #ifndef vtkImageDataLIC2D_h
36 #define vtkImageDataLIC2D_h
37 
38 #include "vtkRenderingLICOpenGL2Module.h" // For export macro
39 #include "vtkImageAlgorithm.h"
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:
52  void PrintSelf(ostream& os, vtkIndent indent);
53 
55 
62  int SetContext( vtkRenderWindow * context );
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 
108  const int* inExt,
109  const int* inWholeExtent,
110  int *outExt);
111 
112 protected:
115 
118 
127 
128  int RequestUpdateExtent (vtkInformation * vtkNotUsed(request),
129  vtkInformationVector **inputVector,
130  vtkInformationVector *vtkNotUsed( outputVector ));
131 
136  virtual int RequestData(vtkInformation *request,
137  vtkInformationVector **inputVector,
138  vtkInformationVector *outputVector);
139 
141  bool OwnWindow;
142  int OpenGLExtensionsSupported;
143 
144  vtkImageNoiseSource* NoiseSource;
145  vtkImageCast* ImageCast;
146 
147  int Steps;
148  double StepSize;
149  int Magnification;
150 
151 
152 private:
153  vtkImageDataLIC2D(const vtkImageDataLIC2D&) VTK_DELETE_FUNCTION;
154  void operator=(const vtkImageDataLIC2D&) VTK_DELETE_FUNCTION;
155 
156 };
157 
158 #endif
vtkImageDataLIC2D::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to collect information from their inputs and set information f...
vtkImageDataLIC2D::New
static vtkImageDataLIC2D * New()
vtkImageDataLIC2D
GPU implementation of a Line Integral Convolution, a technique for imaging vector fields.
Definition: vtkImageDataLIC2D.h:51
vtkImageDataLIC2D::TranslateInputExtent
void TranslateInputExtent(const int *inExt, const int *inWholeExtent, int *outExt)
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkImageAlgorithm.h
vtkImageDataLIC2D::Context
vtkWeakPointer< vtkOpenGLRenderWindow > Context
Definition: vtkImageDataLIC2D.h:140
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:41
vtkImageNoiseSource
Create an image filled with noise.
Definition: vtkImageNoiseSource.h:42
vtkImageDataLIC2D::RequestUpdateExtent
int RequestUpdateExtent(vtkInformation *vtkNotUsed(request), vtkInformationVector **inputVector, vtkInformationVector *vtkNotUsed(outputVector))
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkImageDataLIC2D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkImageDataLIC2D::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkWeakPointer.h
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkImageDataLIC2D::SetContext
int SetContext(vtkRenderWindow *context)
Get/Set the context.
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkImageDataLIC2D::GetContext
vtkRenderWindow * GetContext()
vtkImageDataLIC2D::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkImageDataLIC2D::vtkImageDataLIC2D
vtkImageDataLIC2D()
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition: vtkOpenGLRenderWindow.h:42
vtkRenderWindow
create a window for renderers to draw into
Definition: vtkRenderWindow.h:87
vtkImageCast
Image Data type Casting Filter.
Definition: vtkImageCast.h:47
vtkWeakPointer< vtkOpenGLRenderWindow >
vtkImageDataLIC2D::~vtkImageDataLIC2D
~vtkImageDataLIC2D()