ParaView
vtkCPFileGridBuilder.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkCPFileGridBuilder.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 =========================================================================*/
22 #ifndef vtkCPFileGridBuilder_h
23 #define vtkCPFileGridBuilder_h
24 
25 #include "vtkCPGridBuilder.h"
26 #include "vtkPVCatalystTestDriverModule.h" // needed for export macros
27 
28 class vtkDataObject;
29 class vtkCPFieldBuilder;
30 
31 class VTKPVCATALYSTTESTDRIVER_EXPORT vtkCPFileGridBuilder : public vtkCPGridBuilder
32 {
33 public:
35  void PrintSelf(ostream& os, vtkIndent indent);
36 
42  virtual vtkDataObject* GetGrid(unsigned long timeStep, double time, int& builtNewGrid);
43 
45 
48  vtkGetStringMacro(FileName);
49  vtkSetStringMacro(FileName);
51 
53 
56  vtkGetMacro(KeepPointData, bool);
57  vtkSetMacro(KeepPointData, bool);
59 
61 
64  vtkGetMacro(KeepCellData, bool);
65  vtkSetMacro(KeepCellData, bool);
67 
71  vtkDataObject* GetGrid();
72 
73 protected:
76 
80  virtual void SetGrid(vtkDataObject*);
81 
82 private:
83  vtkCPFileGridBuilder(const vtkCPFileGridBuilder&) VTK_DELETE_FUNCTION;
84 
85  void operator=(const vtkCPFileGridBuilder&) VTK_DELETE_FUNCTION;
86 
90  char* FileName;
91 
96  bool KeepPointData;
97 
102  bool KeepCellData;
103 
105 
108  vtkDataObject* Grid;
109 };
111 
112 #endif
void PrintSelf(ostream &os, vtkIndent indent)
Abstract class for creating grids.
Abstract class for specifying fields over grids.
virtual vtkDataObject * GetGrid(unsigned long timeStep, double time, int &builtNewGrid)=0
Return a grid.
Class for creating grids from a VTK file.