vtkCPFileGridBuilder.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
10 #ifndef vtkCPFileGridBuilder_h
11 #define vtkCPFileGridBuilder_h
12 
13 #include "vtkCPGridBuilder.h"
14 #include "vtkPVCatalystTestDriverModule.h" // needed for export macros
15 
16 class vtkDataObject;
17 class vtkCPFieldBuilder;
18 
19 class VTKPVCATALYSTTESTDRIVER_EXPORT vtkCPFileGridBuilder : public vtkCPGridBuilder
20 {
21 public:
23  void PrintSelf(ostream& os, vtkIndent indent) override;
24 
30  vtkDataObject* GetGrid(unsigned long timeStep, double time, int& builtNewGrid) override;
31 
33 
36  vtkGetStringMacro(FileName);
37  vtkSetStringMacro(FileName);
39 
41 
44  vtkGetMacro(KeepPointData, bool);
45  vtkSetMacro(KeepPointData, bool);
47 
49 
52  vtkGetMacro(KeepCellData, bool);
53  vtkSetMacro(KeepCellData, bool);
55 
60 
61 protected:
63  ~vtkCPFileGridBuilder() override;
64 
68  virtual void SetGrid(vtkDataObject*);
69 
70 private:
72 
73  void operator=(const vtkCPFileGridBuilder&) = delete;
74 
78  char* FileName;
79 
84  bool KeepPointData;
85 
90  bool KeepCellData;
91 
93 
96  vtkDataObject* Grid;
97 };
99 
100 #endif
Abstract class for creating grids.
Abstract class for specifying fields over grids.
vtkDataObject * GetGrid(unsigned long timeStep, double time, int &builtNewGrid) override=0
Return a grid.
Class for creating grids from a VTK file.
void PrintSelf(ostream &os, vtkIndent indent) override