X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FOBJECT%2FSMESH_vtkPVUpdateSuppressor.h;fp=src%2FOBJECT%2FSMESH_vtkPVUpdateSuppressor.h;h=0000000000000000000000000000000000000000;hb=493747e8ea338a2d88204a5f12ba924d72ecbb5b;hp=4cd0624e757d4ce76de1c4dc08097d84bc6e2387;hpb=ef8432633e57037dcd8df55503e62b08069c9190;p=modules%2Fsmesh.git diff --git a/src/OBJECT/SMESH_vtkPVUpdateSuppressor.h b/src/OBJECT/SMESH_vtkPVUpdateSuppressor.h deleted file mode 100644 index 4cd0624e7..000000000 --- a/src/OBJECT/SMESH_vtkPVUpdateSuppressor.h +++ /dev/null @@ -1,98 +0,0 @@ -/*========================================================================= - - Program: ParaView - Module: $RCSfile$ - - Copyright (c) Kitware, Inc. - All rights reserved. - See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details. - - This software is distributed WITHOUT ANY WARRANTY; without even - the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - PURPOSE. See the above copyright notice for more information. - - =========================================================================*/ -// .NAME vtkPVUpdateSuppressor - prevents propagation of update -// .SECTION Description -// vtkPVUpdateSuppressor now uses the vtkProcessModule singleton to set up the -// default values for UpdateNumberOfPieces and UpdatePiece, so we no longer have -// to set the default values (in most cases). -// .SECTION See Also -// vtkPVCacheKeeper vtkUpdateSuppressorPipeline - -#ifndef __vtkPVUpdateSuppressor_h -#define __vtkPVUpdateSuppressor_h - -#include "vtkDataObjectAlgorithm.h" - -class VTK_EXPORT vtkPVUpdateSuppressor: public vtkDataObjectAlgorithm -{ -public: -vtkTypeRevisionMacro(vtkPVUpdateSuppressor,vtkDataObjectAlgorithm) - ; - void PrintSelf(ostream& os, vtkIndent indent); - - // Description: - // Construct with user-specified implicit function. - static vtkPVUpdateSuppressor *New(); - - // Description: - // Force update on the input. - virtual void ForceUpdate(); - - // Description: - // Set number of pieces and piece on the data. - // This causes the filter to ingore the request from the output. - // It is here because the user may not have celled update on the output - // before calling force update (it is an easy fix). - vtkSetMacro(UpdatePiece, int) - ; - vtkGetMacro(UpdatePiece, int) - ; - vtkSetMacro(UpdateNumberOfPieces, int) - ; - vtkGetMacro(UpdateNumberOfPieces, int) - ; - - // Description: - // Get/Set if the update suppressor is enabled. If the update suppressor - // is not enabled, it won't supress any updates. Enabled by default. - void SetEnabled(int); - vtkGetMacro(Enabled, int) - ; - - // Description: - // Get/Set the update time that is sent up the pipeline. - void SetUpdateTime(double utime); - vtkGetMacro(UpdateTime, double) - ; - -protected: - vtkPVUpdateSuppressor(); - ~vtkPVUpdateSuppressor(); - - int RequestDataObject(vtkInformation* request, - vtkInformationVector **inputVector, - vtkInformationVector *outputVector); - int RequestData(vtkInformation* request, vtkInformationVector **inputVector, - vtkInformationVector *outputVector); - - int UpdatePiece; - int UpdateNumberOfPieces; - double UpdateTime; - - bool UpdateTimeInitialized; - - int Enabled; - - vtkTimeStamp PipelineUpdateTime; - - // Create a default executive. - virtual vtkExecutive* CreateDefaultExecutive(); - -private: - vtkPVUpdateSuppressor(const vtkPVUpdateSuppressor&); // Not implemented. - void operator=(const vtkPVUpdateSuppressor&); // Not implemented. -}; - -#endif