00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkMesaScalarsToColorsPainter.h,v $ 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 =========================================================================*/ 00015 00016 #ifndef __vtkMesaScalarsToColorsPainter_h 00017 #define __vtkMesaScalarsToColorsPainter_h 00018 00019 #include "vtkScalarsToColorsPainter.h" 00020 00021 class vtkOpenGLTexture; 00022 00023 class VTK_RENDERING_EXPORT vtkMesaScalarsToColorsPainter : 00024 public vtkScalarsToColorsPainter 00025 { 00026 public: 00027 static vtkMesaScalarsToColorsPainter* New(); 00028 vtkTypeRevisionMacro(vtkMesaScalarsToColorsPainter, 00029 vtkScalarsToColorsPainter); 00030 void PrintSelf(ostream& os, vtkIndent indent); 00031 00032 00033 // Description: 00034 // Release any graphics resources that are being consumed by this mapper. 00035 // The parameter window could be used to determine which graphic 00036 // resources to release. 00037 virtual void ReleaseGraphicsResources(vtkWindow *); 00038 protected: 00039 vtkMesaScalarsToColorsPainter(); 00040 ~vtkMesaScalarsToColorsPainter(); 00041 00042 vtkOpenGLTexture* InternalColorTexture; 00043 00044 // Description: 00045 // Generates rendering primitives of appropriate type(s). Multiple types 00046 // of preimitives can be requested by or-ring the primitive flags. 00047 // Subclasses may override this method. Default implementation propagates 00048 // the call to Deletegate Painter, in any. 00049 virtual void RenderInternal(vtkRenderer* renderer, vtkActor* actor, 00050 unsigned long typeflags); 00051 00052 private: 00053 vtkMesaScalarsToColorsPainter(const vtkMesaScalarsToColorsPainter&); // Not implemented. 00054 void operator=(const vtkMesaScalarsToColorsPainter&); // Not implemented. 00055 }; 00056 00057 #endif 00058