VTK
vtkStructuredGridLIC2D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkStructuredGridLIC2D.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 =========================================================================*/
42 #ifndef vtkStructuredGridLIC2D_h
43 #define vtkStructuredGridLIC2D_h
44 
45 #include "vtkRenderingLICModule.h" // For export macro
47 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
48 
49 class vtkRenderWindow;
51 
52 class VTKRENDERINGLIC_EXPORT vtkStructuredGridLIC2D
54 {
55 public:
56  static vtkStructuredGridLIC2D* New();
58  void PrintSelf(ostream& os, vtkIndent indent);
59 
61 
68  int SetContext( vtkRenderWindow * context );
69  vtkRenderWindow * GetContext();
71 
73 
78  vtkSetMacro(Steps,int);
79  vtkGetMacro(Steps,int);
81 
83 
95  vtkSetMacro(StepSize,double);
96  vtkGetMacro(StepSize,double);
98 
100 
103  vtkSetClampMacro(Magnification, int, 1, VTK_INT_MAX);
104  vtkGetMacro(Magnification, int);
106 
108 
111  vtkGetMacro( OpenGLExtensionsSupported, int );
113 
117  int GetFBOSuccess() { return this->FBOSuccess; }
118 
122  int GetLICSuccess() { return this->LICSuccess; }
123 
124 protected:
127 
134  virtual int FillInputPortInformation(int port,
136 
143  virtual int FillOutputPortInformation(int port,
145 
146  virtual int RequestInformation(vtkInformation *request,
147  vtkInformationVector **inputVector,
148  vtkInformationVector *outputVector);
149 
150  int RequestUpdateExtent (vtkInformation *request,
151  vtkInformationVector **inputVector,
152  vtkInformationVector *outputVector);
153 
157  void AllocateOutputData(vtkDataObject *output,
158  vtkInformation *outInfo);
159 
163  void AllocateScalars(vtkStructuredGrid *sg, vtkInformation *outInfo);
164 
169  virtual int RequestData(vtkInformation *request,
170  vtkInformationVector **inputVector,
171  vtkInformationVector *outputVector);
172 
173  int Steps;
174  double StepSize;
178 
180  bool OwnWindow;
183 
184 private:
185  vtkStructuredGridLIC2D(const vtkStructuredGridLIC2D&) VTK_DELETE_FUNCTION;
186  void operator=(const vtkStructuredGridLIC2D&) VTK_DELETE_FUNCTION;
187 
188 };
189 
190 #endif
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
GPU implementation of a Line Integral Convolution, a technique for imaging vector fields...
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkImageNoiseSource * NoiseSource
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store vtkAlgorithm input/output information.
int GetLICSuccess()
Check if LIC runs properly.
#define VTK_INT_MAX
Definition: vtkType.h:153
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
int GetFBOSuccess()
Check if FBO is started properly.
static vtkStructuredGridAlgorithm * New()
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
a simple class to control print indentation
Definition: vtkIndent.h:39
Superclass for algorithms that produce only structured grid as output.
Create an image filled with noise.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
create a window for renderers to draw into
topologically regular array of data
Store zero or more vtkInformation instances.
vtkWeakPointer< vtkRenderWindow > Context
general representation of visualization data
Definition: vtkDataObject.h:64