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 =========================================================================*/
34 #ifndef vtkImageDataLIC2D_h
35 #define vtkImageDataLIC2D_h
36 
37 #include "vtkRenderingLICOpenGL2Module.h" // For export macro
38 #include "vtkImageAlgorithm.h"
39 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
40 
41 class vtkRenderWindow;
44 class vtkImageCast;
45 
46 class VTKRENDERINGLICOPENGL2_EXPORT vtkImageDataLIC2D : public vtkImageAlgorithm
47 {
48 public:
49  static vtkImageDataLIC2D* New();
51  void PrintSelf(ostream& os, vtkIndent indent);
52 
54 
59  int SetContext( vtkRenderWindow * context );
60  vtkRenderWindow * GetContext();
62 
64 
66  vtkSetMacro(Steps,int);
67  vtkGetMacro(Steps,int);
69 
71 
77  vtkSetMacro(StepSize, double);
78  vtkGetMacro(StepSize, double);
80 
82 
83  vtkSetMacro(Magnification, int);
84  vtkGetMacro(Magnification, int);
86 
88 
89  vtkGetMacro(OpenGLExtensionsSupported, int);
91 
92  void TranslateInputExtent(
93  const int* inExt,
94  const int* inWholeExtent,
95  int *outExt);
96 
97 //BTX
98 protected:
101 
102  virtual int RequestInformation(vtkInformation *,
104 
106 
110  virtual int FillInputPortInformation(int port,
113 
114  int RequestUpdateExtent (vtkInformation * vtkNotUsed(request),
115  vtkInformationVector **inputVector,
116  vtkInformationVector *vtkNotUsed( outputVector ));
117 
119 
121  virtual int RequestData(vtkInformation *request,
122  vtkInformationVector **inputVector,
123  vtkInformationVector *outputVector);
125 
127  bool OwnWindow;
128  int OpenGLExtensionsSupported;
129 
130  vtkImageNoiseSource* NoiseSource;
131  vtkImageCast* ImageCast;
132 
133  int Steps;
134  double StepSize;
135  int Magnification;
136 
137 
138 private:
139  vtkImageDataLIC2D(const vtkImageDataLIC2D&); // Not implemented.
140  void operator=(const vtkImageDataLIC2D&); // Not implemented.
141 //ETX
142 };
143 
144 #endif
OpenGL rendering window.
Image Data type Casting Filter.
Definition: vtkImageCast.h:45
Store vtkAlgorithm input/output information.
vtkWeakPointer< vtkOpenGLRenderWindow > Context
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int FillInputPortInformation(int port, vtkInformation *info)
Create an image filled with noise.
create a window for renderers to draw into
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)
static vtkAlgorithm * New()
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)