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 "vtkRenderingLICModule.h" // For export macro
49 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
50 
51 class vtkRenderWindow;
53 
54 class VTKRENDERINGLIC_EXPORT vtkStructuredGridLIC2D
56 {
57 public:
58  static vtkStructuredGridLIC2D* New();
60  void PrintSelf(ostream& os, vtkIndent indent);
61 
63 
68  int SetContext( vtkRenderWindow * context );
69  vtkRenderWindow * GetContext();
71 
73 
75  vtkSetMacro(Steps,int);
76  vtkGetMacro(Steps,int);
78 
80 
87  vtkSetMacro(StepSize,double);
88  vtkGetMacro(StepSize,double);
90 
92 
93  vtkSetClampMacro(Magnification, int, 1, VTK_INT_MAX);
94  vtkGetMacro(Magnification, int);
96 
98 
99  vtkGetMacro( OpenGLExtensionsSupported, int );
101 
103  int GetFBOSuccess() { return this->FBOSuccess; }
104 
106  int GetLICSuccess() { return this->LICSuccess; }
107 
108 //BTX
109 protected:
112 
114 
118  virtual int FillInputPortInformation(int port,
121 
123 
127  virtual int FillOutputPortInformation(int port,
130 
131  virtual int RequestInformation(vtkInformation *request,
132  vtkInformationVector **inputVector,
133  vtkInformationVector *outputVector);
134 
135  int RequestUpdateExtent (vtkInformation *request,
136  vtkInformationVector **inputVector,
137  vtkInformationVector *outputVector);
138 
140 
142  void AllocateOutputData(vtkDataObject *output,
143  vtkInformation *outInfo);
145 
147  void AllocateScalars(vtkStructuredGrid *sg, vtkInformation *outInfo);
148 
150 
152  virtual int RequestData(vtkInformation *request,
153  vtkInformationVector **inputVector,
154  vtkInformationVector *outputVector);
156 
157  int Steps;
158  double StepSize;
162 
164  bool OwnWindow;
167 
168 private:
169  vtkStructuredGridLIC2D(const vtkStructuredGridLIC2D&); // Not implemented.
170  void operator=(const vtkStructuredGridLIC2D&); // Not implemented.
171 //ETX
172 };
173 
174 #endif
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkImageNoiseSource * NoiseSource
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.
vtkWeakPointer< vtkRenderWindow > Context
general representation of visualization data
Definition: vtkDataObject.h:64