ParaView
vtkPVUpdateSuppressor.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVUpdateSuppressor.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
26 #ifndef vtkPVUpdateSuppressor_h
27 #define vtkPVUpdateSuppressor_h
28 
29 #include "vtkDataObjectAlgorithm.h"
30 #include "vtkPVVTKExtensionsRenderingModule.h" // needed for export macro
31 
32 class VTKPVVTKEXTENSIONSRENDERING_EXPORT vtkPVUpdateSuppressor : public vtkDataObjectAlgorithm
33 {
34 public:
35  vtkTypeMacro(vtkPVUpdateSuppressor, vtkDataObjectAlgorithm);
36  void PrintSelf(ostream& os, vtkIndent indent);
37 
41  static vtkPVUpdateSuppressor* New();
42 
46  virtual void ForceUpdate();
47 
49 
53  void SetEnabled(bool);
54  vtkGetMacro(Enabled, bool);
56 
58 
62  vtkGetMacro(ForcedUpdateTimeStamp, vtkTimeStamp);
64 
65 protected:
68 
69  int RequestDataObject(vtkInformation* request, vtkInformationVector** inputVector,
70  vtkInformationVector* outputVector);
71  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
72  vtkInformationVector* outputVector);
73 
74  vtkTimeStamp ForcedUpdateTimeStamp;
75 
76  bool Enabled;
77 
78  // Create a default executive.
79  virtual vtkExecutive* CreateDefaultExecutive();
80 
81 private:
82  vtkPVUpdateSuppressor(const vtkPVUpdateSuppressor&) VTK_DELETE_FUNCTION;
83  void operator=(const vtkPVUpdateSuppressor&) VTK_DELETE_FUNCTION;
84 };
85 
86 #endif
prevents propagation of update