00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkOpenGLPolyDataMapper.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00043 #ifndef __vtkOpenGLPolyDataMapper_h 00044 #define __vtkOpenGLPolyDataMapper_h 00045 00046 #include "vtkPolyDataMapper.h" 00047 00048 class vtkProperty; 00049 class vtkRenderWindow; 00050 class vtkOpenGLRenderer; 00051 00052 class VTK_RENDERING_EXPORT vtkOpenGLPolyDataMapper : public vtkPolyDataMapper 00053 { 00054 public: 00055 static vtkOpenGLPolyDataMapper *New(); 00056 vtkTypeRevisionMacro(vtkOpenGLPolyDataMapper,vtkPolyDataMapper); 00057 virtual void PrintSelf(ostream& os, vtkIndent indent); 00058 00060 virtual void RenderPiece(vtkRenderer *ren, vtkActor *a); 00061 00065 void ReleaseGraphicsResources(vtkWindow *); 00066 00068 virtual int Draw(vtkRenderer *ren, vtkActor *a); 00069 00070 protected: 00071 vtkOpenGLPolyDataMapper(); 00072 ~vtkOpenGLPolyDataMapper(); 00073 00074 int ListId; 00075 private: 00076 vtkOpenGLPolyDataMapper(const vtkOpenGLPolyDataMapper&); // Not implemented. 00077 void operator=(const vtkOpenGLPolyDataMapper&); // Not implemented. 00078 }; 00079 00080 #endif