00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00021 #ifndef __vtkPVUpdateSuppressor_h
00022 #define __vtkPVUpdateSuppressor_h
00023
00024 #include "vtkDataSetAlgorithm.h"
00025
00026 class VTK_EXPORT vtkPVUpdateSuppressor : public vtkDataSetAlgorithm
00027 {
00028 public:
00029 vtkTypeRevisionMacro(vtkPVUpdateSuppressor,vtkDataSetAlgorithm);
00030 void PrintSelf(ostream& os, vtkIndent indent);
00031
00033 static vtkPVUpdateSuppressor *New();
00034
00036
00039 void RemoveAllCaches();
00040 void CacheUpdate(int idx, int total);
00042
00044 void ForceUpdate();
00045
00047
00051 vtkSetMacro(UpdatePiece, int);
00052 vtkGetMacro(UpdatePiece, int);
00053 vtkSetMacro(UpdateNumberOfPieces, int);
00054 vtkGetMacro(UpdateNumberOfPieces, int);
00056
00058
00060 vtkSetStringMacro(OutputType);
00062
00063 protected:
00064 vtkPVUpdateSuppressor();
00065 ~vtkPVUpdateSuppressor();
00066
00067 int UpdatePiece;
00068 int UpdateNumberOfPieces;
00069
00070 vtkTimeStamp UpdateTime;
00071
00072 vtkDataSet** CachedGeometry;
00073 int CachedGeometryLength;
00074
00075
00076 virtual vtkExecutive* CreateDefaultExecutive();
00077
00078 virtual int RequestDataObject(vtkInformation*,
00079 vtkInformationVector**,
00080 vtkInformationVector*);
00081 char* OutputType;
00082
00083
00084 int PreviousUpdateWasBlockedByStreaming;
00085
00086 private:
00087 vtkPVUpdateSuppressor(const vtkPVUpdateSuppressor&);
00088 void operator=(const vtkPVUpdateSuppressor&);
00089 };
00090
00091 #endif