vtkCPUnstructuredGridBuilder.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
11 #ifndef vtkCPUnstructuredGridBuilder_h
12 #define vtkCPUnstructuredGridBuilder_h
13 
14 #include "vtkCPGridBuilder.h"
15 #include "vtkPVCatalystTestDriverModule.h" // needed for export macros
16 
17 class vtkDataObject;
18 class vtkIdList;
19 class vtkPoints;
21 
22 class VTKPVCATALYSTTESTDRIVER_EXPORT vtkCPUnstructuredGridBuilder : public vtkCPGridBuilder
23 {
24 public:
27  void PrintSelf(ostream& os, vtkIndent indent) override;
28 
34  vtkDataObject* GetGrid(unsigned long timeStep, double time, int& builtNewGrid) override;
35 
39  vtkUnstructuredGrid* GetUnstructuredGrid();
40 
45  bool SetPoints(vtkPoints* points);
46 
50  virtual void Allocate(vtkIdType numCells = 1000, int extSize = 1000);
51 
53 
57  vtkIdType InsertNextCell(int type, vtkIdType npts, vtkIdType* pts);
58  vtkIdType InsertNextCell(int type, vtkIdList* ptIds);
60 
61 protected:
63  ~vtkCPUnstructuredGridBuilder() override;
64 
70 
74  void SetUnstructuredGrid(vtkUnstructuredGrid* grid);
75 
76 private:
78  void operator=(const vtkCPUnstructuredGridBuilder&) = delete;
79 
81 
84  vtkUnstructuredGrid* UnstructuredGrid;
85 };
86 #endif
87 
Abstract class for creating grids.
int vtkIdType
bool IsGridModified
Flag to indicate if UnstructuredGrid has been modified since last call to GetGrid().
vtkDataObject * GetGrid(unsigned long timeStep, double time, int &builtNewGrid) override=0
Return a grid.
static vtkObject * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Class for creating unstructured grids.