Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Rendering/vtkLODActor.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkLODActor.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00077 #ifndef __vtkLODActor_h
00078 #define __vtkLODActor_h
00079 
00080 #include "vtkActor.h"
00081 
00082 class vtkMapper;
00083 class vtkMapperCollection;
00084 class vtkMaskPoints;
00085 class vtkOutlineFilter;
00086 class vtkPolyDataMapper;
00087 class vtkRenderer;
00088 class vtkViewport;
00089 class vtkWindow;
00090 
00091 class VTK_RENDERING_EXPORT vtkLODActor : public vtkActor
00092 {
00093 public:
00094   vtkTypeRevisionMacro(vtkLODActor,vtkActor);
00095   void PrintSelf(ostream& os, vtkIndent indent);
00096 
00100   static vtkLODActor *New();
00101 
00104   virtual void Render(vtkRenderer *, vtkMapper *);
00105 
00108   int RenderOpaqueGeometry(vtkViewport *viewport);
00109 
00113   void ReleaseGraphicsResources(vtkWindow *);
00114 
00117   void AddLODMapper(vtkMapper *mapper);
00118 
00120 
00121   vtkGetMacro(NumberOfCloudPoints,int);
00122   vtkSetMacro(NumberOfCloudPoints,int);
00124 
00126 
00128   vtkGetObjectMacro(LODMappers, vtkMapperCollection);
00130 
00133   void Modified();
00134   
00136   void ShallowCopy(vtkProp *prop);
00137 
00138 protected:
00139   vtkLODActor();
00140   ~vtkLODActor();
00141 
00142   vtkActor            *Device;
00143   vtkMapperCollection *LODMappers;
00144 
00145   // stuff for creating our own LOD mappers
00146   vtkMaskPoints       *MaskPoints;
00147   vtkOutlineFilter    *OutlineFilter;
00148   vtkTimeStamp        BuildTime;
00149   int                 NumberOfCloudPoints;
00150   vtkPolyDataMapper   *LowMapper;
00151   vtkPolyDataMapper   *MediumMapper;
00152 
00153   void CreateOwnLODs();
00154   void UpdateOwnLODs();
00155   void DeleteOwnLODs();
00156 
00157 private:
00158   vtkLODActor(const vtkLODActor&);  // Not implemented.
00159   void operator=(const vtkLODActor&);  // Not implemented.
00160 };
00161 
00162 #endif
00163 
00164