VTK
vtkValuePass.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkValuePass.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 vtkValuePass_h
38#define vtkValuePass_h
39
40#include "vtkRenderingOpenGL2Module.h" // For export macro
41#include "vtkDefaultPass.h"
42
46class vtkRenderer;
47class vtkRenderWindow;
48class vtkFloatArray;
49
50class VTKRENDERINGOPENGL2_EXPORT vtkValuePass : public vtkDefaultPass
51{
52public:
53
54 enum Mode {
55 INVERTIBLE_LUT = 1,
56 FLOATING_POINT = 2 };
57
58 static vtkValuePass *New();
60 void PrintSelf(ostream& os, vtkIndent indent);
61
63
64 vtkSetMacro(RenderingMode, int);
65 vtkGetMacro(RenderingMode, int);
66 void SetInputArrayToProcess(int fieldAssociation, const char *name);
67 void SetInputArrayToProcess(int fieldAssociation, int fieldAttributeType);
69 void SetScalarRange(double min, double max);
70
72
83
88 virtual void Render(const vtkRenderState *s);
89
96
102 void GetFloatImageData(int const format, int const width, int const height,
103 void* data);
104
110
112
113 protected:
118
122 virtual ~vtkValuePass();
123
128 virtual void RenderOpaqueGeometry(const vtkRenderState *s);
129
135
139 void EndPass();
140
142
149
150
151 class vtkInternals;
152 vtkInternals *Internals;
154
155 private:
156 vtkValuePass(const vtkValuePass&) VTK_DELETE_FUNCTION;
157 void operator=(const vtkValuePass&) VTK_DELETE_FUNCTION;
158
159};
160
161#endif
Implement the basic render passes.
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:42
a simple class to control print indentation
Definition: vtkIndent.h:40
Key for integer values in vtkInformation.
Key for string values in vtkInformation.
Context in which a vtkRenderPass will render.
create a window for renderers to draw into
abstract specification for renderers
Definition: vtkRenderer.h:64
Render opaque objects with the vtkValuePainter.
Definition: vtkValuePass.h:35
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
bool HasWindowSizeChanged(vtkRenderer *ren)
Methods managing graphics resources required during FLOATING_POINT mode.
static vtkValuePass * New()
virtual ~vtkValuePass()
Destructor.
vtkValuePass()
Default constructor.
virtual void Render(const vtkRenderState *s)
Perform rendering according to a render state s.
static vtkInformationIntegerKey * SCALAR_MODE()
Passed down the rendering pipeline to control what data array to draw.
void EndPass()
Unbinds internal FBO when FLOATING_POINT mode is enabled.
void ReleaseFloatingPointMode(vtkRenderer *ren)
static vtkInformationIntegerKey * ARRAY_COMPONENT()
int * GetFloatImageExtents()
Interface to get the rendered image in FLOATING_POINT mode.
static vtkInformationIntegerKey * ARRAY_ID()
static vtkInformationStringKey * ARRAY_NAME()
static vtkInformationIntegerKey * RENDER_VALUES()
void SetInputArrayToProcess(int fieldAssociation, int fieldAttributeType)
vtkFloatArray * GetFloatImageDataArray(vtkRenderer *ren)
Interface to get the rendered image in FLOATING_POINT mode.
void GetFloatImageData(int const format, int const width, int const height, void *data)
Interface to get the rendered image in FLOATING_POINT mode.
void SetInputArrayToProcess(int fieldAssociation, const char *name)
static vtkInformationIntegerKey * RELOAD_DATA()
void BeginPass(vtkRenderer *ren)
Manages graphics resources depending on the rendering mode.
bool IsFloatingPointModeSupported(vtkRenderWindow *renWin)
virtual void RenderOpaqueGeometry(const vtkRenderState *s)
Opaque pass with key checking.
void SetScalarRange(double min, double max)
static vtkInformationDoubleVectorKey * SCALAR_RANGE()
static vtkInformationIntegerKey * ARRAY_MODE()
void SetInputComponentToProcess(int component)
bool InitializeFloatingPointMode(vtkRenderer *ren)
@ component
Definition: vtkX3D.h:175
@ height
Definition: vtkX3D.h:254
@ name
Definition: vtkX3D.h:219
@ data
Definition: vtkX3D.h:315
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
#define max(a, b)