ParaView
vtkCPTestDriver.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkCPTestDriver.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 =========================================================================*/
24 #ifndef vtkCPTestDriver_h
25 #define vtkCPTestDriver_h
26 
27 #include "vtkObject.h"
28 #include "vtkPVCatalystTestDriverModule.h" // needed for export macros
29 
31 
32 class VTKPVCATALYSTTESTDRIVER_EXPORT vtkCPTestDriver : public vtkObject
33 {
34 public:
35  static vtkCPTestDriver* New();
36  vtkTypeMacro(vtkCPTestDriver, vtkObject);
37  void PrintSelf(ostream& os, vtkIndent indent);
38 
42  virtual int Run();
43 
45 
48  vtkSetMacro(NumberOfTimeSteps, unsigned long);
49  vtkGetMacro(NumberOfTimeSteps, unsigned long);
51 
57  virtual double GetTime(unsigned long timeStep);
58 
60 
63  void SetGridBuilder(vtkCPBaseGridBuilder* gridBuilder);
64  vtkCPBaseGridBuilder* GetGridBuilder();
66 
68 
71  vtkSetMacro(StartTime, double);
72  vtkGetMacro(StartTime, double);
73  vtkSetMacro(EndTime, double);
74  vtkGetMacro(EndTime, double);
76 
77 protected:
79  ~vtkCPTestDriver();
80 
81 private:
82  vtkCPTestDriver(const vtkCPTestDriver&) VTK_DELETE_FUNCTION;
83  void operator=(const vtkCPTestDriver&) VTK_DELETE_FUNCTION;
84 
88  vtkCPBaseGridBuilder* GridBuilder;
89 
94  unsigned long NumberOfTimeSteps;
95 
97 
100  double StartTime;
101  double EndTime;
102 };
104 
105 #endif
Abstract class for creating grids.
Class for creating a co-processor test driver.