VTK  9.7.1
vtkDGTranscribeUnstructuredCells.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 vtkDGTranscribeUnstructuredCells_h
11 #define vtkDGTranscribeUnstructuredCells_h
12 
13 #include "vtkCellGridResponder.h"
14 #include "vtkFiltersCellGridModule.h" // For export macro
15 #include "vtkNew.h" // for ivar
16 #include "vtkUnstructuredGridToCellGrid.h" // for query template-parameter
17 
18 VTK_ABI_NAMESPACE_BEGIN
19 
20 class vtkDGCell;
21 
22 class VTKFILTERSCELLGRID_EXPORT vtkDGTranscribeUnstructuredCells
23  : public vtkCellGridResponder<vtkUnstructuredGridToCellGrid::TranscribeQuery>
24 {
25 public:
30  void PrintSelf(ostream& os, vtkIndent indent) override;
31 
32  bool ClaimMatchingCells(TranscribeQuery* query, vtkDGCell* cellType);
33  bool TranscribeMatchingCells(TranscribeQuery* query, vtkDGCell* cellType);
34  bool Query(
35  TranscribeQuery* query, vtkCellMetadata* cellType, vtkCellGridResponders* caches) override;
36 
37 protected:
39  ~vtkDGTranscribeUnstructuredCells() override = default;
40 
41  void AddCellAttributes(TranscribeQuery* query, vtkDGCell* dgCell);
42  void AddPointAttributes(TranscribeQuery* query, vtkDGCell* dgCell);
43 
44 private:
46  void operator=(const vtkDGTranscribeUnstructuredCells&) = delete;
47 };
48 
49 VTK_ABI_NAMESPACE_END
50 #endif // vtkDGTranscribeUnstructuredCells_h
Respond to a query on one particular type of cell.
Metadata for a particular type of cell (finite element).
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
Transcribe unstructured-grid cells as vtkDGCell subclasses.
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...
An internal query object for transcribing cells from input to output.