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 =========================================================================*/
37 #ifndef vtkImageDataLIC2D_h
38 #define vtkImageDataLIC2D_h
39 
40 #include "vtkRenderingLICOpenGL2Module.h" // For export macro
41 #include "vtkImageAlgorithm.h"
42 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
43 
44 class vtkRenderWindow;
47 class vtkImageCast;
48 
49 class VTKRENDERINGLICOPENGL2_EXPORT vtkImageDataLIC2D : public vtkImageAlgorithm
50 {
51 public:
52  static vtkImageDataLIC2D* New();
54  void PrintSelf(ostream& os, vtkIndent indent);
55 
57 
62  int SetContext( vtkRenderWindow * context );
63  vtkRenderWindow * GetContext();
65 
67 
69  vtkSetMacro(Steps,int);
70  vtkGetMacro(Steps,int);
72 
74 
80  vtkSetMacro(StepSize, double);
81  vtkGetMacro(StepSize, double);
83 
85 
86  vtkSetMacro(Magnification, int);
87  vtkGetMacro(Magnification, int);
89 
91 
92  vtkGetMacro(OpenGLExtensionsSupported, int);
94 
95  void TranslateInputExtent(
96  const int* inExt,
97  const int* inWholeExtent,
98  int *outExt);
99 
100 //BTX
101 protected:
104 
105  virtual int RequestInformation(vtkInformation *,
107 
109 
113  virtual int FillInputPortInformation(int port,
116 
117  int RequestUpdateExtent (vtkInformation * vtkNotUsed(request),
118  vtkInformationVector **inputVector,
119  vtkInformationVector *vtkNotUsed( outputVector ));
120 
122 
124  virtual int RequestData(vtkInformation *request,
125  vtkInformationVector **inputVector,
126  vtkInformationVector *outputVector);
128 
130  bool OwnWindow;
131  int OpenGLExtensionsSupported;
132 
133  vtkImageNoiseSource* NoiseSource;
134  vtkImageCast* ImageCast;
135 
136  int Steps;
137  double StepSize;
138  int Magnification;
139 
140 
141 private:
142  vtkImageDataLIC2D(const vtkImageDataLIC2D&); // Not implemented.
143  void operator=(const vtkImageDataLIC2D&); // Not implemented.
144 //ETX
145 };
146 
147 #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)