VTK
dox/Rendering/vtkOpenGLScalarsToColorsPainter.h
Go to the documentation of this file.
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 =========================================================================*/
00023 #ifndef __vtkOpenGLScalarsToColorsPainter_h
00024 #define __vtkOpenGLScalarsToColorsPainter_h
00025 
00026 #include "vtkScalarsToColorsPainter.h"
00027 
00028 class vtkOpenGLTexture;
00029 
00030 class VTK_RENDERING_EXPORT vtkOpenGLScalarsToColorsPainter : 
00031   public vtkScalarsToColorsPainter
00032 {
00033 public:
00034   static vtkOpenGLScalarsToColorsPainter* New();
00035   vtkTypeMacro(vtkOpenGLScalarsToColorsPainter,
00036                vtkScalarsToColorsPainter);
00037   void PrintSelf(ostream& os, vtkIndent indent);
00038   
00039 
00043   virtual void ReleaseGraphicsResources(vtkWindow *);
00044   
00045   virtual int GetPremultiplyColorsWithAlpha(vtkActor* actor);
00046 protected:
00047   vtkOpenGLScalarsToColorsPainter();
00048   ~vtkOpenGLScalarsToColorsPainter();
00049  
00050   vtkOpenGLTexture* InternalColorTexture;
00051 
00053 
00057   virtual void RenderInternal(vtkRenderer* renderer, vtkActor* actor, 
00058                               unsigned long typeflags,bool forceCompileOnly);
00060 
00061 private:
00062   vtkOpenGLScalarsToColorsPainter(const vtkOpenGLScalarsToColorsPainter&); // Not implemented.
00063   void operator=(const vtkOpenGLScalarsToColorsPainter&); // Not implemented.
00064 };
00065 
00066 #endif
00067