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:
61  void PrintSelf(ostream& os, vtkIndent indent);
62 
64 
69  int SetContext( vtkRenderWindow * context );
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 
117 
119 
126 
127  virtual int RequestInformation(vtkInformation *request,
128  vtkInformationVector **inputVector,
129  vtkInformationVector *outputVector);
130 
132  vtkInformationVector **inputVector,
133  vtkInformationVector *outputVector);
134 
136 
139  vtkInformation *outInfo);
141 
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
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:132
vtkStructuredGridAlgorithm.h
vtkStructuredGridLIC2D::vtkStructuredGridLIC2D
vtkStructuredGridLIC2D()
vtkStructuredGridLIC2D::AllocateOutputData
void AllocateOutputData(vtkDataObject *output, vtkInformation *outInfo)
vtkStructuredGridAlgorithm
Superclass for algorithms that produce only structured grid as output.
Definition: vtkStructuredGridAlgorithm.h:41
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkStructuredGridLIC2D::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkStructuredGridLIC2D::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkStructuredGridLIC2D::LICProgram
vtkOpenGLHelper * LICProgram
Definition: vtkStructuredGridLIC2D.h:162
vtkStructuredGridLIC2D::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkStructuredGrid
topologically regular array of data
Definition: vtkStructuredGrid.h:63
vtkStructuredGridLIC2D::AllocateScalars
void AllocateScalars(vtkStructuredGrid *sg, vtkInformation *outInfo)
vtkImageNoiseSource
Create an image filled with noise.
Definition: vtkImageNoiseSource.h:38
vtkStructuredGridLIC2D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
vtkStructuredGridLIC2D::GetLICSuccess
int GetLICSuccess()
Definition: vtkStructuredGridLIC2D.h:102
vtkStructuredGridLIC2D::GetFBOSuccess
int GetFBOSuccess()
Definition: vtkStructuredGridLIC2D.h:99
vtkOpenGLHelper
Definition: vtkOpenGLHelper.h:31
vtkStructuredGridLIC2D
Definition: vtkStructuredGridLIC2D.h:53
vtkStructuredGridLIC2D::New
static vtkStructuredGridLIC2D * New()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkStructuredGridLIC2D::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
vtkStructuredGridLIC2D::GetContext
vtkRenderWindow * GetContext()
vtkWeakPointer.h
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkStructuredGridLIC2D::RequestUpdateExtent
int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkRenderWindow
create a window for renderers to draw into
Definition: vtkRenderWindow.h:89
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkStructuredGridLIC2D::SetContext
int SetContext(vtkRenderWindow *context)
vtkStructuredGridLIC2D::~vtkStructuredGridLIC2D
~vtkStructuredGridLIC2D()
vtkWeakPointer< vtkRenderWindow >