VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkOpenGLScalarsToColorsPainter.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00026 #ifndef __vtkOpenGLScalarsToColorsPainter_h 00027 #define __vtkOpenGLScalarsToColorsPainter_h 00028 00029 #include "vtkRenderingOpenGLModule.h" // For export macro 00030 #include "vtkScalarsToColorsPainter.h" 00031 00032 class vtkOpenGLTexture; 00033 00034 class VTKRENDERINGOPENGL_EXPORT vtkOpenGLScalarsToColorsPainter : 00035 public vtkScalarsToColorsPainter 00036 { 00037 public: 00038 static vtkOpenGLScalarsToColorsPainter* New(); 00039 vtkTypeMacro(vtkOpenGLScalarsToColorsPainter, 00040 vtkScalarsToColorsPainter); 00041 void PrintSelf(ostream& os, vtkIndent indent); 00042 00046 virtual void ReleaseGraphicsResources(vtkWindow *); 00047 00048 virtual int GetPremultiplyColorsWithAlpha(vtkActor* actor); 00049 00051 virtual vtkIdType GetTextureSizeLimit(); 00052 00053 protected: 00054 vtkOpenGLScalarsToColorsPainter(); 00055 ~vtkOpenGLScalarsToColorsPainter(); 00056 00057 vtkOpenGLTexture* InternalColorTexture; 00058 int AlphaBitPlanes; 00059 bool AcquiredGraphicsResources; 00060 bool SupportsSeparateSpecularColor; 00061 00063 00067 virtual void RenderInternal(vtkRenderer* renderer, vtkActor* actor, 00068 unsigned long typeflags, bool forceCompileOnly); 00070 00071 private: 00072 vtkOpenGLScalarsToColorsPainter(const vtkOpenGLScalarsToColorsPainter&); // Not implemented. 00073 void operator=(const vtkOpenGLScalarsToColorsPainter&); // Not implemented. 00074 }; 00075 00076 #endif