00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkDataSetMapper.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 =========================================================================*/ 00032 #ifndef __vtkDataSetMapper_h 00033 #define __vtkDataSetMapper_h 00034 00035 #include "vtkMapper.h" 00036 00037 class vtkPolyDataMapper; 00038 class vtkDataSetSurfaceFilter; 00039 00040 class VTK_RENDERING_EXPORT vtkDataSetMapper : public vtkMapper 00041 { 00042 public: 00043 static vtkDataSetMapper *New(); 00044 vtkTypeRevisionMacro(vtkDataSetMapper,vtkMapper); 00045 void PrintSelf(ostream& os, vtkIndent indent); 00046 void Render(vtkRenderer *ren, vtkActor *act); 00047 00049 00051 vtkGetObjectMacro(PolyDataMapper, vtkPolyDataMapper); 00053 00057 void ReleaseGraphicsResources(vtkWindow *); 00058 00060 unsigned long GetMTime(); 00061 00063 00064 void SetInput(vtkDataSet *input); 00065 vtkDataSet *GetInput(); 00067 00068 protected: 00069 vtkDataSetMapper(); 00070 ~vtkDataSetMapper(); 00071 00072 vtkDataSetSurfaceFilter *GeometryExtractor; 00073 vtkPolyDataMapper *PolyDataMapper; 00074 00075 virtual void ReportReferences(vtkGarbageCollector*); 00076 00077 // see algorithm for more info 00078 virtual int FillInputPortInformation(int port, vtkInformation* info); 00079 00080 private: 00081 vtkDataSetMapper(const vtkDataSetMapper&); // Not implemented. 00082 void operator=(const vtkDataSetMapper&); // Not implemented. 00083 }; 00084 00085 #endif 00086 00087