00001 /*========================================================================= 00002 00003 Program: ParaView 00004 Module: $RCSfile: vtkSMLODDisplayProxy.h,v $ 00005 00006 Copyright (c) Kitware, Inc. 00007 All rights reserved. 00008 See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 =========================================================================*/ 00020 #ifndef __vtkSMLODDisplayProxy_h 00021 #define __vtkSMLODDisplayProxy_h 00022 00023 #include "vtkSMDataObjectDisplayProxy.h" 00024 class vtkSMProxy; 00025 class vtkPVLODPartDisplayInformation; 00026 00027 class VTK_EXPORT vtkSMLODDisplayProxy : public vtkSMDataObjectDisplayProxy 00028 { 00029 public: 00030 static vtkSMLODDisplayProxy* New(); 00031 vtkTypeRevisionMacro(vtkSMLODDisplayProxy, vtkSMDataObjectDisplayProxy); 00032 void PrintSelf(ostream& os, vtkIndent indent); 00033 00035 virtual void SetLODResolution(int res); 00036 00038 virtual void CacheUpdate(int idx, int total); 00039 00042 virtual void Update(); 00043 00048 virtual void InvalidateGeometry(); 00049 00052 virtual vtkPVLODPartDisplayInformation* GetLODInformation(); 00053 00054 //BTX 00055 enum {InformationInvalidatedEvent = 2000}; 00056 //ETX 00057 00058 protected: 00059 vtkSMLODDisplayProxy(); 00060 ~vtkSMLODDisplayProxy(); 00061 00063 virtual void SetupVolumePipeline(); 00064 00066 00067 virtual void SetupPipeline(); 00068 virtual void SetupDefaults(); 00070 00071 virtual void CreateVTKObjects(int numObjects); 00072 00073 vtkSMProxy *LODDecimatorProxy; 00074 vtkSMProxy *LODUpdateSuppressorProxy; 00075 vtkSMProxy *LODMapperProxy; 00076 00077 int LODResolution; 00078 int LODGeometryIsValid; 00079 int LODInformationIsValid; 00080 vtkPVLODPartDisplayInformation* LODInformation; 00081 00082 void InvalidateLODGeometry(); 00083 00084 // Calls Force Update on the LOD Update suppressor. 00085 void UpdateLODPipeline(); 00086 00087 private: 00088 vtkSMLODDisplayProxy(const vtkSMLODDisplayProxy&); // Not implemented. 00089 void operator=(const vtkSMLODDisplayProxy&); // Not implemented. 00090 }; 00091 00092 00093 #endif 00094 00095