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 
45 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
46 
47 class vtkRenderWindow;
49 
51 {
52 public:
53  static vtkStructuredGridLIC2D* New();
55  void PrintSelf(ostream& os, vtkIndent indent);
56 
58 
63  int SetContext( vtkRenderWindow * context );
64  vtkRenderWindow * GetContext();
66 
68 
70  vtkSetMacro(Steps,int);
71  vtkGetMacro(Steps,int);
73 
75 
82  vtkSetMacro(StepSize,double);
83  vtkGetMacro(StepSize,double);
85 
87 
88  vtkSetClampMacro(Magnification, int, 1, VTK_INT_MAX);
89  vtkGetMacro(Magnification, int);
91 
93 
94  vtkGetMacro( OpenGLExtensionsSupported, int );
96 
98  int GetFBOSuccess() { return this->FBOSuccess; }
99 
101  int GetLICSuccess() { return this->LICSuccess; }
102 
103 //BTX
104 protected:
107 
109 
113  virtual int FillInputPortInformation(int port,
116 
118 
122  virtual int FillOutputPortInformation(int port,
125 
126  virtual int RequestInformation(vtkInformation *request,
127  vtkInformationVector **inputVector,
128  vtkInformationVector *outputVector);
129 
130  int RequestUpdateExtent (vtkInformation *request,
131  vtkInformationVector **inputVector,
132  vtkInformationVector *outputVector);
133 
135 
137  void AllocateOutputData(vtkDataObject *output,
138  int outputPort);
140 
142  void AllocateScalars(vtkStructuredGrid *sg);
143 
145 
147  virtual int RequestData(vtkInformation *request,
148  vtkInformationVector **inputVector,
149  vtkInformationVector *outputVector);
151 
152  int Steps;
153  double StepSize;
157 
159  bool OwnWindow;
162 
163 private:
164  vtkStructuredGridLIC2D(const vtkStructuredGridLIC2D&); // Not implemented.
165  void operator=(const vtkStructuredGridLIC2D&); // Not implemented.
166 //ETX
167 };
168 
169 #endif