VTK  9.7.1
vtkDGCellCenterResponder.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
10 #ifndef vtkDGCellCenterResponder_h
11 #define vtkDGCellCenterResponder_h
12 
13 #include "vtkFiltersCellGridModule.h" // for export macro
14 
15 #include "vtkCellGridCellCenters.h" // for inheritance
16 #include "vtkCellGridResponder.h"
17 
18 VTK_ABI_NAMESPACE_BEGIN
19 class vtkCellMetadata;
20 class vtkDGCell;
21 
22 class VTKFILTERSCELLGRID_EXPORT vtkDGCellCenterResponder
23  : public vtkCellGridResponder<vtkCellGridCellCenters::Query>
24 {
25 public:
26  static vtkDGCellCenterResponder* New();
28  void PrintSelf(ostream& os, vtkIndent indent) override;
29 
31  vtkCellGridResponders* caches) override;
32 
33 protected:
34  vtkDGCellCenterResponder() = default;
35  ~vtkDGCellCenterResponder() override = default;
36 
37  void AllocateOutputVertices(vtkCellGridCellCenters::Query* request);
38  void AddCellCenters(vtkCellGridCellCenters::Query* request, vtkDGCell* cellType);
39  void GenerateOutputVertices(vtkCellGridCellCenters::Query* request, vtkDGCell* cellType);
40 
41 private:
43  void operator=(const vtkDGCellCenterResponder&) = delete;
44 };
45 
46 VTK_ABI_NAMESPACE_END
47 #endif // vtkDGCellCenterResponder_h
48 // VTK-HeaderTest-Exclude: vtkDGCellCenterResponder.h
Respond to a query on one particular type of cell.
Metadata for a particular type of cell (finite element).
Respond to a query on one particular type of cell.
A container that holds objects able to respond to queries specialized for particular vtkCellMetadata ...
a simple class to control print indentation
Definition: vtkIndent.h:28
Base class for a discontinuous Galerkin cells of all shapes.
Definition: vtkDGCell.h:43
A query corresponding to this algorithm.
virtual bool Query(QueryClass *query, vtkCellMetadata *cellType, vtkCellGridResponders *caches)=0
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...