VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkImageDataLIC2D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageDataLIC2D.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 =========================================================================*/
37 #ifndef __vtkImageDataLIC2D_h
38 #define __vtkImageDataLIC2D_h
39 
40 #include "vtkRenderingLICModule.h" // For export macro
41 #include "vtkImageAlgorithm.h"
42 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
43 
44 class vtkRenderWindow;
46 class vtkShaderProgram2;
47 
49 {
50 public:
51  static vtkImageDataLIC2D* New();
53  void PrintSelf(ostream& os, vtkIndent indent);
54 
56 
61  int SetContext( vtkRenderWindow * context );
62  vtkRenderWindow * GetContext();
64 
66 
68  vtkSetMacro(Steps,int);
69  vtkGetMacro(Steps,int);
71 
73 
79  vtkSetMacro(StepSize, double);
80  vtkGetMacro(StepSize, double);
82 
84 
85  vtkSetMacro(Magnification, int);
86  vtkGetMacro(Magnification, int);
88 
90 
91  vtkGetMacro(OpenGLExtensionsSupported, int);
93 
94  void TranslateInputExtent(
95  const int* inExt,
96  const int* inWholeExtent,
97  int *outExt);
98 
99 //BTX
100 protected:
103 
104  virtual int RequestInformation(vtkInformation *,
106 
108 
112  virtual int FillInputPortInformation(int port,
115 
117  vtkInformationVector **inputVector,
118  vtkInformationVector *vtkNotUsed( outputVector ));
119 
121 
123  virtual int RequestData(vtkInformation *request,
124  vtkInformationVector **inputVector,
125  vtkInformationVector *outputVector);
127 
129  bool OwnWindow;
131 
133 
135 
136  int Steps;
137  double StepSize;
139 
140 
141 
142 private:
143  vtkImageDataLIC2D(const vtkImageDataLIC2D&); // Not implemented.
144  void operator=(const vtkImageDataLIC2D&); // Not implemented.
145 //ETX
146 };
147 
148 #endif
#define vtkNotUsed(x)
Definition: vtkSetGet.h:547
Store vtkAlgorithm input/output information.
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:83
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:619
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
GLSL Program.
#define VTKRENDERINGLIC_EXPORT
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int FillInputPortInformation(int port, vtkInformation *info)
Create an image filled with noise.
vtkShaderProgram2 * MagShader
vtkImageNoiseSource * NoiseSource
vtkWeakPointer< vtkRenderWindow > Context
create a window for renderers to draw into
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)
static vtkAlgorithm * New()
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define vtkSetMacro(name, type)
Definition: vtkSetGet.h:69