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 =========================================================================*/
44 #ifndef vtkStructuredGridLIC2D_h
45 #define vtkStructuredGridLIC2D_h
46 
47 #include "vtkRenderingLICOpenGL2Module.h" // For export macro
49 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
50 
52 class vtkOpenGLHelper;
53 class vtkRenderWindow;
54 
55 class VTKRENDERINGLICOPENGL2_EXPORT vtkStructuredGridLIC2D
57 {
58 public:
59  static vtkStructuredGridLIC2D* New();
61  void PrintSelf(ostream& os, vtkIndent indent);
62 
64 
69  int SetContext( vtkRenderWindow * context );
70  vtkRenderWindow * GetContext();
72 
74 
76  vtkSetMacro(Steps,int);
77  vtkGetMacro(Steps,int);
79 
81 
88  vtkSetMacro(StepSize,double);
89  vtkGetMacro(StepSize,double);
91 
93 
94  vtkSetClampMacro(Magnification, int, 1, VTK_INT_MAX);
95  vtkGetMacro(Magnification, int);
97 
99  int GetFBOSuccess() { return this->FBOSuccess; }
100 
102  int GetLICSuccess() { return this->LICSuccess; }
103 
104 //BTX
105 protected:
108 
110 
114  virtual int FillInputPortInformation(int port,
117 
119 
123  virtual int FillOutputPortInformation(int port,
126 
127  virtual int RequestInformation(vtkInformation *request,
128  vtkInformationVector **inputVector,
129  vtkInformationVector *outputVector);
130 
131  int RequestUpdateExtent (vtkInformation *request,
132  vtkInformationVector **inputVector,
133  vtkInformationVector *outputVector);
134 
136 
138  void AllocateOutputData(vtkDataObject *output,
139  vtkInformation *outInfo);
141 
143  void AllocateScalars(vtkStructuredGrid *sg, vtkInformation *outInfo);
144 
146 
148  virtual int RequestData(vtkInformation *request,
149  vtkInformationVector **inputVector,
150  vtkInformationVector *outputVector);
152 
153  int Steps;
154  double StepSize;
155  int Magnification;
157 
158  vtkImageNoiseSource* NoiseSource;
159  bool OwnWindow;
160  int FBOSuccess;
161  int LICSuccess;
163 
164 private:
165  vtkStructuredGridLIC2D(const vtkStructuredGridLIC2D&); // Not implemented.
166  void operator=(const vtkStructuredGridLIC2D&); // Not implemented.
167 //ETX
168 };
169 
170 #endif
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Store vtkAlgorithm input/output information.
#define VTK_INT_MAX
Definition: vtkType.h:132
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