00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkCompositePolyDataMapper.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 =========================================================================*/ 00030 #ifndef __vtkCompositePolyDataMapper_h 00031 #define __vtkCompositePolyDataMapper_h 00032 00033 #include "vtkMapper.h" 00034 00035 class vtkPolyDataMapper; 00036 class vtkInformation; 00037 class vtkRenderer; 00038 class vtkActor; 00039 class vtkCompositePolyDataMapperInternals; 00040 00041 class VTK_RENDERING_EXPORT vtkCompositePolyDataMapper : public vtkMapper 00042 { 00043 00044 public: 00045 static vtkCompositePolyDataMapper *New(); 00046 vtkTypeMacro(vtkCompositePolyDataMapper, vtkMapper); 00047 virtual void PrintSelf(ostream& os, vtkIndent indent); 00048 00051 void Render(vtkRenderer *ren, vtkActor *a); 00052 00054 00055 double *GetBounds(); 00056 void GetBounds(double bounds[6]) { this->Superclass::GetBounds( bounds ); }; 00058 00060 void ReleaseGraphicsResources(vtkWindow *); 00061 00062 00063 protected: 00064 vtkCompositePolyDataMapper(); 00065 ~vtkCompositePolyDataMapper(); 00066 00070 vtkExecutive* CreateDefaultExecutive(); 00071 00073 virtual int FillInputPortInformation(int port, vtkInformation* info); 00074 00077 void BuildPolyDataMapper(); 00078 00080 void ComputeBounds(); 00081 00083 vtkTimeStamp BoundsMTime; 00084 00087 vtkCompositePolyDataMapperInternals *Internal; 00088 00090 vtkTimeStamp InternalMappersBuildTime; 00091 00092 private: 00093 vtkCompositePolyDataMapper(const vtkCompositePolyDataMapper&); // Not implemented. 00094 void operator=(const vtkCompositePolyDataMapper&); // Not implemented. 00095 }; 00096 00097 #endif