VTK  9.7.1
vtkDGCellSourceResponder.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 vtkDGCellSourceResponder_h
11 #define vtkDGCellSourceResponder_h
12 
13 #include "vtkFiltersCellGridModule.h" // for export macro
14 
15 #include "vtkCellGridCellSource.h" // for inheritance
16 #include "vtkCellGridResponder.h"
17 
18 VTK_ABI_NAMESPACE_BEGIN
19 class vtkCellMetadata;
20 class vtkDGCell;
21 
22 class VTKFILTERSCELLGRID_EXPORT vtkDGCellSourceResponder
23  : public vtkCellGridResponder<vtkCellGridCellSource::Query>
24 {
25 public:
26  static vtkDGCellSourceResponder* New();
28  void PrintSelf(ostream& os, vtkIndent indent) override;
29 
30  bool Query(vtkCellGridCellSource::Query* query, vtkCellMetadata* cellType,
31  vtkCellGridResponders* caches) override;
32 
33 protected:
34  vtkDGCellSourceResponder() = default;
35  ~vtkDGCellSourceResponder() override = default;
36 
37  void CreateCellAttribute(vtkDGCell* dgCell, vtkStringToken cellTypeToken,
38  const std::string& fieldName, vtkStringToken space, int numberOfComponents,
39  vtkStringToken functionSpace, vtkStringToken basis, int order, vtkIdType numberOfValues,
40  int basisSize = 1, vtkStringToken dofSharing = vtkStringToken{});
41 
42 private:
44  void operator=(const vtkDGCellSourceResponder&) = delete;
45 };
46 
47 VTK_ABI_NAMESPACE_END
48 #endif // vtkDGCellSourceResponder_h
49 // VTK-HeaderTest-Exclude: vtkDGCellSourceResponder.h
Respond to a query on one particular type of cell.
Metadata for a particular type of cell (finite element).
int vtkIdType
Definition: vtkType.h:363
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
Represent a string by its integer hash.
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...
basis[0]
Definition: CellC0Basis.h:1
Respond to a query on one particular type of cell.
A cell-grid query used by this filter.