VTK  9.4.20241226
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
17#include "vtkDGCell.h"
18
19VTK_ABI_NAMESPACE_BEGIN
20class vtkCellMetadata;
21
22class VTKFILTERSCELLGRID_EXPORT vtkDGCopyResponder
23 : public vtkCellGridResponder<vtkCellGridCopyQuery>
24{
25public:
28
29 bool Query(
30 vtkCellGridCopyQuery* query, vtkCellMetadata* cellType, vtkCellGridResponders* caches) override;
31
32protected:
33 vtkDGCopyResponder() = default;
34 ~vtkDGCopyResponder() override = default;
35
39 void CopySpecs(vtkCellGridCopyQuery* query, vtkDGCell* sourceMetadata, vtkDGCell* targetMetadata);
40
46 vtkCellGridCopyQuery* query, vtkDGCell::Source& sourceSpec, vtkDGCell::Source& targetSpec);
47
48private:
50 void operator=(const vtkDGCopyResponder&) = delete;
51};
52
53VTK_ABI_NAMESPACE_END
54#endif // vtkDGCopyResponder_h
55// VTK-HeaderTest-Exclude: vtkDGCopyResponder.h
Copy the cell metadata and attribute(s) of one cell-grid into another.
Respond to a query on one particular type of cell.
A container that holds objects able to respond to queries specialized for particular vtkCellMetadata ...
Metadata for a particular type of cell (finite element).
Base class for a discontinuous Galerkin cells of all shapes.
Definition vtkDGCell.h:44
Copy data from one vtkCellGrid to another.
static vtkDGCopyResponder * New()
bool Query(vtkCellGridCopyQuery *query, vtkCellMetadata *cellType, vtkCellGridResponders *caches) override
void CopySpec(vtkCellGridCopyQuery *query, vtkDGCell::Source &sourceSpec, vtkDGCell::Source &targetSpec)
Copy a single cell/side specification from sourceSpec into targetSpec.
vtkDGCopyResponder()=default
~vtkDGCopyResponder() override=default
void CopySpecs(vtkCellGridCopyQuery *query, vtkDGCell *sourceMetadata, vtkDGCell *targetMetadata)
This method is used to copy cell connectivity arrays for one cell type.
Records describing the source arrays for cells or cell-sides.
Definition vtkDGCell.h:90