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