00001 /*========================================================================= 00002 00003 Program: ParaView 00004 Module: $RCSfile: vtkPVProcessModuleBatchHelper.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 =========================================================================*/ 00021 #ifndef __vtkPVProcessModuleBatchHelper_h 00022 #define __vtkPVProcessModuleBatchHelper_h 00023 00024 #include "vtkProcessModuleGUIHelper.h" 00025 00026 class vtkPVProcessModule; 00027 class vtkSMApplication; 00028 00029 class VTK_EXPORT vtkPVProcessModuleBatchHelper : public vtkProcessModuleGUIHelper 00030 { 00031 public: 00032 static vtkPVProcessModuleBatchHelper* New(); 00033 vtkTypeRevisionMacro(vtkPVProcessModuleBatchHelper,vtkProcessModuleGUIHelper); 00034 void PrintSelf(ostream& os, vtkIndent indent); 00036 virtual int RunGUIStart(int argc, char **argv, int numServerProcs, int myId); 00037 00039 virtual int OpenConnectionDialog(int*) { return 1; } 00040 00042 00043 virtual void SendPrepareProgress(); 00044 virtual void SendCleanupPendingProgress(); 00045 virtual void SetLocalProgress(const char*, int); 00047 00049 virtual void ExitApplication(); 00050 00051 protected: 00052 vtkPVProcessModuleBatchHelper(); 00053 virtual ~vtkPVProcessModuleBatchHelper(); 00054 00055 vtkSMApplication* SMApplication; 00056 int ShowProgress; 00057 vtkSetStringMacro(Filter); 00058 char* Filter; 00059 int CurrentProgress; 00060 00061 void CloseCurrentProgress(); 00062 private: 00063 00064 vtkPVProcessModuleBatchHelper(const vtkPVProcessModuleBatchHelper&); // Not implemented 00065 void operator=(const vtkPVProcessModuleBatchHelper&); // Not implemented 00066 }; 00067 00068 #endif