VTK  9.7.1
vtkDGCopyResponder.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 vtkDGCopyResponder_h
11 #define vtkDGCopyResponder_h
12 
13 #include "vtkFiltersCellGridModule.h" // for export macro
14 
15 #include "vtkCellGridCopyQuery.h" // for inheritance
16 #include "vtkCellGridResponder.h"
17 #include "vtkDGCell.h"
18 
19 VTK_ABI_NAMESPACE_BEGIN
20 class vtkCellMetadata;
21 
22 class VTKFILTERSCELLGRID_EXPORT vtkDGCopyResponder
23  : public vtkCellGridResponder<vtkCellGridCopyQuery>
24 {
25 public:
26  static vtkDGCopyResponder* New();
28 
29  bool Query(
30  vtkCellGridCopyQuery* query, vtkCellMetadata* cellType, vtkCellGridResponders* caches) override;
31 
32 protected:
33  vtkDGCopyResponder() = default;
34  ~vtkDGCopyResponder() override = default;
35 
39  void CopySpecs(vtkCellGridCopyQuery* query, vtkDGCell* sourceMetadata, vtkDGCell* targetMetadata);
40 
45  void CopySpec(
46  vtkCellGridCopyQuery* query, vtkDGCell::Source& sourceSpec, vtkDGCell::Source& targetSpec);
47 
48 private:
49  vtkDGCopyResponder(const vtkDGCopyResponder&) = delete;
50  void operator=(const vtkDGCopyResponder&) = delete;
51 };
52 
53 VTK_ABI_NAMESPACE_END
54 #endif // vtkDGCopyResponder_h
55 // VTK-HeaderTest-Exclude: vtkDGCopyResponder.h
Respond to a query on one particular type of cell.
Copy the cell metadata and attribute(s) of one cell-grid into another.
Metadata for a particular type of cell (finite element).
A container that holds objects able to respond to queries specialized for particular vtkCellMetadata ...
Base class for a discontinuous Galerkin cells of all shapes.
Definition: vtkDGCell.h:43
Copy data from one vtkCellGrid to another.
virtual bool Query(QueryClass *query, vtkCellMetadata *cellType, vtkCellGridResponders *caches)=0
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
Records describing the source arrays for cells or cell-sides.
Definition: vtkDGCell.h:89