ParaView
vtkCPUnstructuredGridBuilder.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkCPUnstructuredGridBuilder.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 =========================================================================*/
23 #ifndef vtkCPUnstructuredGridBuilder_h
24 #define vtkCPUnstructuredGridBuilder_h
25 
26 #include "vtkCPGridBuilder.h"
27 #include "vtkPVCatalystTestDriverModule.h" // needed for export macros
28 
29 class vtkDataObject;
30 class vtkIdList;
31 class vtkPoints;
32 class vtkUnstructuredGrid;
33 
34 class VTKPVCATALYSTTESTDRIVER_EXPORT vtkCPUnstructuredGridBuilder : public vtkCPGridBuilder
35 {
36 public:
37  static vtkCPUnstructuredGridBuilder* New();
39  void PrintSelf(ostream& os, vtkIndent indent);
40 
46  virtual vtkDataObject* GetGrid(unsigned long timeStep, double time, int& builtNewGrid);
47 
51  vtkUnstructuredGrid* GetUnstructuredGrid();
52 
57  bool SetPoints(vtkPoints* points);
58 
62  virtual void Allocate(vtkIdType numCells = 1000, int extSize = 1000);
63 
65 
69  vtkIdType InsertNextCell(int type, vtkIdType npts, vtkIdType* pts);
70  vtkIdType InsertNextCell(int type, vtkIdList* ptIds);
72 
73 protected:
76 
82 
86  void SetUnstructuredGrid(vtkUnstructuredGrid* grid);
87 
88 private:
90  void operator=(const vtkCPUnstructuredGridBuilder&) VTK_DELETE_FUNCTION;
91 
93 
96  vtkUnstructuredGrid* UnstructuredGrid;
97 };
98 #endif
99 
void PrintSelf(ostream &os, vtkIndent indent)
Abstract class for creating grids.
bool IsGridModified
Flag to indicate if UnstructuredGrid has been modified since last call to GetGrid().
virtual vtkDataObject * GetGrid(unsigned long timeStep, double time, int &builtNewGrid)=0
Return a grid.
Class for creating unstructured grids.