VTK
dox/Rendering/vtkCompositePolyDataMapper.h
Go to the documentation of this file.
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 protected:
00063   vtkCompositePolyDataMapper();
00064   ~vtkCompositePolyDataMapper();
00065   
00069   vtkExecutive* CreateDefaultExecutive();
00070 
00072   virtual int FillInputPortInformation(int port, vtkInformation* info);
00073   
00076   void BuildPolyDataMapper();
00077 
00080   virtual vtkPolyDataMapper *MakeAMapper();
00081 
00083   void ComputeBounds();
00084 
00086   vtkTimeStamp BoundsMTime;
00087 
00090   vtkCompositePolyDataMapperInternals *Internal;
00091   
00093   vtkTimeStamp InternalMappersBuildTime; 
00094   
00095 private:
00096   vtkCompositePolyDataMapper(const vtkCompositePolyDataMapper&);  // Not implemented.
00097   void operator=(const vtkCompositePolyDataMapper&);    // Not implemented.
00098 };
00099 
00100 #endif