00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkOpenGLPolyDataMapper.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 =========================================================================*/ 00026 #ifndef __vtkOpenGLPolyDataMapper_h 00027 #define __vtkOpenGLPolyDataMapper_h 00028 00029 #include "vtkPolyDataMapper.h" 00030 00031 class vtkProperty; 00032 class vtkRenderWindow; 00033 class vtkOpenGLRenderer; 00034 00035 class VTK_RENDERING_EXPORT vtkOpenGLPolyDataMapper : public vtkPolyDataMapper 00036 { 00037 public: 00038 static vtkOpenGLPolyDataMapper *New(); 00039 vtkTypeRevisionMacro(vtkOpenGLPolyDataMapper,vtkPolyDataMapper); 00040 virtual void PrintSelf(ostream& os, vtkIndent indent); 00041 00043 virtual void RenderPiece(vtkRenderer *ren, vtkActor *a); 00044 00048 void ReleaseGraphicsResources(vtkWindow *); 00049 00051 virtual int Draw(vtkRenderer *ren, vtkActor *a); 00052 00053 protected: 00054 vtkOpenGLPolyDataMapper(); 00055 ~vtkOpenGLPolyDataMapper(); 00056 00057 int ListId; 00058 private: 00059 vtkOpenGLPolyDataMapper(const vtkOpenGLPolyDataMapper&); // Not implemented. 00060 void operator=(const vtkOpenGLPolyDataMapper&); // Not implemented. 00061 }; 00062 00063 #endif