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 =========================================================================*/
27 #ifndef vtkOpenGLScalarsToColorsPainter_h
28 #define vtkOpenGLScalarsToColorsPainter_h
29 
30 #include "vtkRenderingOpenGLModule.h" // For export macro
32 
33 class vtkOpenGLTexture;
34 
35 class VTKRENDERINGOPENGL_EXPORT vtkOpenGLScalarsToColorsPainter :
37 {
38 public:
42  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
43 
49  void ReleaseGraphicsResources(vtkWindow *) VTK_OVERRIDE;
50 
51  int GetPremultiplyColorsWithAlpha(vtkActor* actor) VTK_OVERRIDE;
52 
56  vtkIdType GetTextureSizeLimit() VTK_OVERRIDE;
57 
58 protected:
60  ~vtkOpenGLScalarsToColorsPainter() VTK_OVERRIDE;
61 
62  vtkOpenGLTexture* InternalColorTexture;
63  int AlphaBitPlanes;
64  bool AcquiredGraphicsResources;
65  bool SupportsSeparateSpecularColor;
66 
73  void RenderInternal(vtkRenderer* renderer, vtkActor* actor,
74  unsigned long typeflags, bool forceCompileOnly) VTK_OVERRIDE;
75 
76 private:
77  vtkOpenGLScalarsToColorsPainter(const vtkOpenGLScalarsToColorsPainter&) VTK_DELETE_FUNCTION;
78  void operator=(const vtkOpenGLScalarsToColorsPainter&) VTK_DELETE_FUNCTION;
79 };
80 
81 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
implementation of vtkScalarsToColorsPainter for OpenGL.
abstract specification for renderers
Definition: vtkRenderer.h:63
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:37
a simple class to control print indentation
Definition: vtkIndent.h:39
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.