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 "vtkRenderingLICModule.h" // For export macro
46 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
47 
48 class vtkRenderWindow;
50 
53 {
54 public:
55  static vtkStructuredGridLIC2D* New();
57  void PrintSelf(ostream& os, vtkIndent indent);
58 
60 
65  int SetContext( vtkRenderWindow * context );
66  vtkRenderWindow * GetContext();
68 
70 
72  vtkSetMacro(Steps,int);
73  vtkGetMacro(Steps,int);
75 
77 
84  vtkSetMacro(StepSize,double);
85  vtkGetMacro(StepSize,double);
87 
89 
90  vtkSetClampMacro(Magnification, int, 1, VTK_INT_MAX);
91  vtkGetMacro(Magnification, int);
93 
95 
96  vtkGetMacro( OpenGLExtensionsSupported, int );
98 
100  int GetFBOSuccess() { return this->FBOSuccess; }
101 
103  int GetLICSuccess() { return this->LICSuccess; }
104 
105 //BTX
106 protected:
109 
111 
115  virtual int FillInputPortInformation(int port,
118 
120 
124  virtual int FillOutputPortInformation(int port,
127 
128  virtual int RequestInformation(vtkInformation *request,
129  vtkInformationVector **inputVector,
130  vtkInformationVector *outputVector);
131 
132  int RequestUpdateExtent (vtkInformation *request,
133  vtkInformationVector **inputVector,
134  vtkInformationVector *outputVector);
135 
137 
139  void AllocateOutputData(vtkDataObject *output,
140  vtkInformation *outInfo);
142 
144  void AllocateScalars(vtkStructuredGrid *sg, vtkInformation *outInfo);
145 
147 
149  virtual int RequestData(vtkInformation *request,
150  vtkInformationVector **inputVector,
151  vtkInformationVector *outputVector);
153 
154  int Steps;
155  double StepSize;
159 
161  bool OwnWindow;
164 
165 private:
166  vtkStructuredGridLIC2D(const vtkStructuredGridLIC2D&); // Not implemented.
167  void operator=(const vtkStructuredGridLIC2D&); // Not implemented.
168 //ETX
169 };
170 
171 #endif
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkImageNoiseSource * NoiseSource
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 *)
#define VTKRENDERINGLIC_EXPORT
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.
vtkWeakPointer< vtkRenderWindow > Context
general representation of visualization data
Definition: vtkDataObject.h:64