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 =========================================================================*/
00026 #ifndef __vtkOpenGLScalarsToColorsPainter_h
00027 #define __vtkOpenGLScalarsToColorsPainter_h
00028 
00029 #include "vtkScalarsToColorsPainter.h"
00030 
00031 class vtkOpenGLTexture;
00032 
00033 class VTK_RENDERING_EXPORT vtkOpenGLScalarsToColorsPainter : 
00034   public vtkScalarsToColorsPainter
00035 {
00036 public:
00037   static vtkOpenGLScalarsToColorsPainter* New();
00038   vtkTypeMacro(vtkOpenGLScalarsToColorsPainter,
00039     vtkScalarsToColorsPainter);
00040   void PrintSelf(ostream& os, vtkIndent indent);
00041   
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 
00060 
00064   virtual void RenderInternal(vtkRenderer* renderer, vtkActor* actor, 
00065                               unsigned long typeflags,bool forceCompileOnly);
00067 
00068 private:
00069   vtkOpenGLScalarsToColorsPainter(const vtkOpenGLScalarsToColorsPainter&); // Not implemented.
00070   void operator=(const vtkOpenGLScalarsToColorsPainter&); // Not implemented.
00071 };
00072 
00073 #endif
00074