VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkDataSetMapper.h 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 "vtkRenderingCoreModule.h" // For export macro 00036 #include "vtkMapper.h" 00037 00038 class vtkPolyDataMapper; 00039 class vtkDataSetSurfaceFilter; 00040 00041 class VTKRENDERINGCORE_EXPORT vtkDataSetMapper : public vtkMapper 00042 { 00043 public: 00044 static vtkDataSetMapper *New(); 00045 vtkTypeMacro(vtkDataSetMapper, vtkMapper); 00046 void PrintSelf(ostream& os, vtkIndent indent); 00047 void Render(vtkRenderer *ren, vtkActor *act); 00048 00050 00052 vtkGetObjectMacro(PolyDataMapper, vtkPolyDataMapper); 00054 00058 void ReleaseGraphicsResources(vtkWindow *); 00059 00061 unsigned long GetMTime(); 00062 00064 00065 void SetInputData(vtkDataSet *input); 00066 vtkDataSet *GetInput(); 00068 00069 protected: 00070 vtkDataSetMapper(); 00071 ~vtkDataSetMapper(); 00072 00073 vtkDataSetSurfaceFilter *GeometryExtractor; 00074 vtkPolyDataMapper *PolyDataMapper; 00075 00076 virtual void ReportReferences(vtkGarbageCollector*); 00077 00078 // see algorithm for more info 00079 virtual int FillInputPortInformation(int port, vtkInformation* info); 00080 00081 private: 00082 vtkDataSetMapper(const vtkDataSetMapper&); // Not implemented. 00083 void operator=(const vtkDataSetMapper&); // Not implemented. 00084 }; 00085 00086 #endif