VTK
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 =========================================================================*/
44 #ifndef __vtkImageDataLIC2D_h
45 #define __vtkImageDataLIC2D_h
46 
47 #include "vtkImageAlgorithm.h"
48 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
49 
50 class vtkRenderWindow;
52 
54 {
55 public:
56  static vtkImageDataLIC2D* New();
58  void PrintSelf(ostream& os, vtkIndent indent);
59 
61 
66  int SetContext( vtkRenderWindow * context );
67  vtkRenderWindow * GetContext();
69 
71 
73  vtkSetMacro(Steps,int);
74  vtkGetMacro(Steps,int);
76 
78 
84  vtkSetClampMacro(StepSize, double, 0.0, 100.0);
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 
106  void TranslateInputExtent(const int* inExt,
107  const int* inWholeExtent, int *outExt);
108 
109 //BTX
110 protected:
113 
114  virtual int RequestInformation(vtkInformation *,
116 
118 
122  virtual int FillInputPortInformation(int port,
125 
126  int RequestUpdateExtent (vtkInformation * vtkNotUsed(request),
127  vtkInformationVector **inputVector,
128  vtkInformationVector *vtkNotUsed( outputVector ));
129 
131 
133  virtual int RequestData(vtkInformation *request,
134  vtkInformationVector **inputVector,
135  vtkInformationVector *outputVector);
137 
138  int Steps;
139  double StepSize;
144 
146  bool OwnWindow;
149 
150 private:
151  vtkImageDataLIC2D(const vtkImageDataLIC2D&); // Not implemented.
152  void operator=(const vtkImageDataLIC2D&); // Not implemented.
153 //ETX
154 };
155 
156 #endif
Store vtkAlgorithm input/output information.
#define VTK_INT_MAX
Definition: vtkType.h:123
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
a simple class to control print indentation
Definition: vtkIndent.h:37
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int FillInputPortInformation(int port, vtkInformation *info)
Create an image filled with noise.
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 VTK_HYBRID_EXPORT