00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkMesaPolyDataMapper.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 =========================================================================*/ 00029 #ifndef __vtkMesaPolyDataMapper_h 00030 #define __vtkMesaPolyDataMapper_h 00031 00032 #include "vtkPolyDataMapper.h" 00033 00034 class vtkProperty; 00035 class vtkRenderWindow; 00036 class vtkMesaRenderer; 00037 class vtkTimerLog; 00038 00039 class VTK_RENDERING_EXPORT vtkMesaPolyDataMapper : public vtkPolyDataMapper 00040 { 00041 public: 00042 static vtkMesaPolyDataMapper *New(); 00043 vtkTypeRevisionMacro(vtkMesaPolyDataMapper,vtkPolyDataMapper); 00044 virtual void PrintSelf(ostream& os, vtkIndent indent); 00045 00047 virtual void RenderPiece(vtkRenderer *ren, vtkActor *a); 00048 00052 void ReleaseGraphicsResources(vtkWindow *); 00053 00055 virtual int Draw(vtkRenderer *ren, vtkActor *a); 00056 00057 protected: 00058 vtkMesaPolyDataMapper(); 00059 ~vtkMesaPolyDataMapper(); 00060 00061 int ListId; 00062 vtkRenderWindow *RenderWindow; // RenderWindow used for the previous render 00063 private: 00064 vtkMesaPolyDataMapper(const vtkMesaPolyDataMapper&); // Not implemented. 00065 void operator=(const vtkMesaPolyDataMapper&); // Not implemented. 00066 }; 00067 00068 #endif