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 =========================================================================*/
41 #ifndef vtkStructuredGridLIC2D_h
42 #define vtkStructuredGridLIC2D_h
43 
44 #include "vtkRenderingLICOpenGL2Module.h" // For export macro
46 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
47 
49 class vtkOpenGLHelper;
50 class vtkRenderWindow;
51 
52 class VTKRENDERINGLICOPENGL2_EXPORT vtkStructuredGridLIC2D
54 {
55 public:
56  static vtkStructuredGridLIC2D* New();
58  void PrintSelf(ostream& os, vtkIndent indent);
59 
61 
66  int SetContext( vtkRenderWindow * context );
67  vtkRenderWindow * GetContext();
69 
71 
73  vtkSetMacro(Steps,int);
74  vtkGetMacro(Steps,int);
76 
78 
85  vtkSetMacro(StepSize,double);
86  vtkGetMacro(StepSize,double);
88 
90 
91  vtkSetClampMacro(Magnification, int, 1, VTK_INT_MAX);
92  vtkGetMacro(Magnification, int);
94 
96  int GetFBOSuccess() { return this->FBOSuccess; }
97 
99  int GetLICSuccess() { return this->LICSuccess; }
100 
101 //BTX
102 protected:
105 
107 
111  virtual int FillInputPortInformation(int port,
114 
116 
120  virtual int FillOutputPortInformation(int port,
123 
124  virtual int RequestInformation(vtkInformation *request,
125  vtkInformationVector **inputVector,
126  vtkInformationVector *outputVector);
127 
128  int RequestUpdateExtent (vtkInformation *request,
129  vtkInformationVector **inputVector,
130  vtkInformationVector *outputVector);
131 
133 
135  void AllocateOutputData(vtkDataObject *output,
136  vtkInformation *outInfo);
138 
140  void AllocateScalars(vtkStructuredGrid *sg, vtkInformation *outInfo);
141 
143 
145  virtual int RequestData(vtkInformation *request,
146  vtkInformationVector **inputVector,
147  vtkInformationVector *outputVector);
149 
150  int Steps;
151  double StepSize;
152  int Magnification;
154 
155  vtkImageNoiseSource* NoiseSource;
156  bool OwnWindow;
157  int FBOSuccess;
158  int LICSuccess;
160 
161 private:
162  vtkStructuredGridLIC2D(const vtkStructuredGridLIC2D&); // Not implemented.
163  void operator=(const vtkStructuredGridLIC2D&); // Not implemented.
164 //ETX
165 };
166 
167 #endif
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Store vtkAlgorithm input/output information.
#define VTK_INT_MAX
Definition: vtkType.h:130
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int FillInputPortInformation(int port, vtkInformation *info)
static vtkStructuredGridAlgorithm * New()
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
a simple class to control print indentation
Definition: vtkIndent.h:38
Superclass for algorithms that produce only structured grid as output.
void PrintSelf(ostream &os, vtkIndent indent)
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Create an image filled with noise.
create a window for renderers to draw into
topologically regular array of data
Store zero or more vtkInformation instances.
general representation of visualization data
Definition: vtkDataObject.h:64