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 =========================================================================*/
24 #ifndef vtkValuePass_h
25 #define vtkValuePass_h
26 
27 #include "vtkRenderingOpenGL2Module.h" // For export macro
28 #include "vtkDefaultPass.h"
29 
33 
35 {
36 public:
37  static vtkValuePass *New();
38  vtkTypeMacro(vtkValuePass, vtkDefaultPass);
39  void PrintSelf(ostream& os, vtkIndent indent);
40 
41  static vtkInformationIntegerKey *RENDER_VALUES();
42 
43  void SetInputArrayToProcess(int fieldAssociation, const char *name);
44  void SetInputArrayToProcess(int fieldAssociation, int fieldAttributeType);
45  void SetInputComponentToProcess(int component);
46  void SetScalarRange(double min, double max);
47 
49 
51  static vtkInformationIntegerKey *SCALAR_MODE();
52  static vtkInformationIntegerKey *ARRAY_MODE();
53  static vtkInformationIntegerKey *ARRAY_ID();
54  static vtkInformationStringKey *ARRAY_NAME();
55  static vtkInformationIntegerKey *ARRAY_COMPONENT();
56  static vtkInformationDoubleVectorKey *SCALAR_RANGE();
58 
61  virtual void Render(const vtkRenderState *s);
62 
63  protected:
65  vtkValuePass();
66 
68  virtual ~vtkValuePass();
69 
71  virtual void RenderOpaqueGeometry(const vtkRenderState *s);
72 
73  class vtkInternals;
74  vtkInternals *Internals;
75 
76  private:
77  vtkValuePass(const vtkValuePass&); // Not implemented.
78  void operator=(const vtkValuePass&); // Not implemented.
79 };
80 
81 #endif
virtual void Render(const vtkRenderState *s)
#define VTKRENDERINGOPENGL2_EXPORT
static vtkDefaultPass * New()
void PrintSelf(ostream &os, vtkIndent indent)
Key for string values in vtkInformation.
Context in which a vtkRenderPass will render.
Key for double vector values.
a simple class to control print indentation
Definition: vtkIndent.h:38
Key for integer values in vtkInformation.
Render opaque objects with the vtkValuePainter.
Definition: vtkValuePass.h:33
virtual void RenderOpaqueGeometry(const vtkRenderState *s)
Implement the basic render passes.
#define max(a, b)