VTK
vtkOpenGLScalarsToColorsPainter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOpenGLScalarsToColorsPainter.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 vtkOpenGLScalarsToColorsPainter_h
25 #define vtkOpenGLScalarsToColorsPainter_h
26 
27 #include "vtkRenderingOpenGLModule.h" // For export macro
29 
30 class vtkOpenGLTexture;
31 
32 class VTKRENDERINGOPENGL_EXPORT vtkOpenGLScalarsToColorsPainter :
34 {
35 public:
39  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
40 
46  void ReleaseGraphicsResources(vtkWindow *) VTK_OVERRIDE;
47 
48  int GetPremultiplyColorsWithAlpha(vtkActor* actor) VTK_OVERRIDE;
49 
53  vtkIdType GetTextureSizeLimit() VTK_OVERRIDE;
54 
55 protected:
57  ~vtkOpenGLScalarsToColorsPainter() VTK_OVERRIDE;
58 
59  vtkOpenGLTexture* InternalColorTexture;
60  int AlphaBitPlanes;
61  bool AcquiredGraphicsResources;
62  bool SupportsSeparateSpecularColor;
63 
70  void RenderInternal(vtkRenderer* renderer, vtkActor* actor,
71  unsigned long typeflags, bool forceCompileOnly) VTK_OVERRIDE;
72 
73 private:
75  void operator=(const vtkOpenGLScalarsToColorsPainter&) VTK_DELETE_FUNCTION;
76 };
77 
78 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:45
implementation of vtkScalarsToColorsPainter for OpenGL.
abstract specification for renderers
Definition: vtkRenderer.h:57
int vtkIdType
Definition: vtkType.h:345
virtual int GetPremultiplyColorsWithAlpha(vtkActor *actor)
For alpha blending, we sometime premultiply the colors with alpha and change the alpha blending funct...
virtual void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this painter.
OpenGL texture map.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
a simple class to control print indentation
Definition: vtkIndent.h:33
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
painter that converts scalars to colors.
static vtkScalarsToColorsPainter * New()
virtual vtkIdType GetTextureSizeLimit()
Return the texture size limit.