00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkMesaDisplayListPainter.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 =========================================================================*/ 00022 #ifndef __vtkMesaDisplayListPainter_h 00023 #define __vtkMesaDisplayListPainter_h 00024 00025 #include "vtkDisplayListPainter.h" 00026 00027 class VTK_RENDERING_EXPORT vtkMesaDisplayListPainter : public vtkDisplayListPainter 00028 { 00029 public: 00030 static vtkMesaDisplayListPainter* New(); 00031 vtkTypeRevisionMacro(vtkMesaDisplayListPainter, vtkDisplayListPainter); 00032 void PrintSelf(ostream& os, vtkIndent indent); 00033 00034 00038 virtual void ReleaseGraphicsResources(vtkWindow *); 00039 protected: 00040 vtkMesaDisplayListPainter(); 00041 ~vtkMesaDisplayListPainter(); 00042 00043 unsigned int ListIds[4]; 00044 vtkTimeStamp BuildTimes[4]; 00045 00046 void ReleaseList(int index); 00047 00049 00051 virtual void RenderInternal(vtkRenderer* renderer, vtkActor* actor, 00052 unsigned long typeflags); 00054 00055 private: 00056 vtkMesaDisplayListPainter(const vtkMesaDisplayListPainter&); // Not implemented. 00057 void operator=(const vtkMesaDisplayListPainter&); // Not implemented. 00058 }; 00059 00060 #endif 00061