VTK  9.7.1
vtkIOSSCellGridReaderInternal.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
4 
6 
7 #include "vtkCellAttribute.h" // For CellTypeInfo.
8 #include "vtkUnstructuredGridFieldAnnotations.h" // For Annotations.
9 
10 VTK_ABI_NAMESPACE_BEGIN
11 
12 class vtkDGCell;
14 
23 {
24 public:
26 
27  std::vector<vtkSmartPointer<vtkCellGrid>> GetCellGrids(const std::string& blockName,
28  vtkIOSSReader::EntityType vtk_entity_type, const DatabaseHandle& handle, int timestep,
29  vtkIOSSCellGridReader* self);
30 
31  std::vector<vtkSmartPointer<vtkCellGrid>> GetElementBlock(const std::string& blockName,
32  vtkIOSSReader::EntityType vtk_entity_type, const DatabaseHandle& handle, int timestep,
33  vtkIOSSCellGridReader* self);
34 
35  std::vector<vtkSmartPointer<vtkCellGrid>> GetElementBlock(const std::string& blockName,
36  const Ioss::GroupingEntity* group_entity, const DatabaseHandle& handle, int timestep,
37  vtkIOSSCellGridReader* self);
38 
39  std::vector<vtkSmartPointer<vtkCellGrid>> GetSideSet(const std::string& blockName,
40  vtkIOSSReader::EntityType vtk_entity_type, const DatabaseHandle& handle, int timestep,
41  vtkIOSSCellGridReader* self);
42 
43  std::vector<vtkSmartPointer<vtkCellGrid>> GetNodeSet(const std::string& blockName,
44  vtkIOSSReader::EntityType vtk_entity_type, const DatabaseHandle& handle, int timestep,
45  vtkIOSSCellGridReader* self);
46 
48  int shape_conn_size, int shape_order, vtkDGCell* dg);
49 
50  void GetNodalAttributes(vtkDataArraySelection* fieldSelection, vtkDataSetAttributes* arrayGroup,
51  vtkCellGrid* grid, vtkDGCell* meta, const Ioss::GroupingEntity* group_entity,
52  Ioss::Region* region, const DatabaseHandle& handle, int timestep, bool read_ioss_ids,
53  const std::string& cache_key_suffix);
54 
55  void GetElementAttributes(vtkDataArraySelection* fieldSelection, vtkDataSetAttributes* arrayGroup,
56  vtkCellGrid* grid, vtkDGCell* meta, const Ioss::GroupingEntity* group_entity,
57  Ioss::Region* region, const DatabaseHandle& handle, int timestep, bool read_ioss_ids,
58  const std::string& cache_key_suffix);
59 
60  bool ApplyDisplacements(vtkCellGrid* grid, Ioss::Region* region,
61  const Ioss::GroupingEntity* group_entity, const DatabaseHandle& handle, int timestep);
62 
64 };
65 
66 VTK_ABI_NAMESPACE_END
std::vector< vtkSmartPointer< vtkCellGrid > > GetElementBlock(const std::string &blockName, vtkIOSSReader::EntityType vtk_entity_type, const DatabaseHandle &handle, int timestep, vtkIOSSCellGridReader *self)
Internal methods for the cell-grid version of the IOSS reader.
std::vector< vtkSmartPointer< vtkCellGrid > > GetSideSet(const std::string &blockName, vtkIOSSReader::EntityType vtk_entity_type, const DatabaseHandle &handle, int timestep, vtkIOSSCellGridReader *self)
Internal methods and state for the IOSS reader.
bool ApplyDisplacements(vtkCellGrid *grid, Ioss::Region *region, const Ioss::GroupingEntity *group_entity, const DatabaseHandle &handle, int timestep)
std::vector< vtkSmartPointer< vtkCellGrid > > GetNodeSet(const std::string &blockName, vtkIOSSReader::EntityType vtk_entity_type, const DatabaseHandle &handle, int timestep, vtkIOSSCellGridReader *self)
vtkNew< vtkUnstructuredGridFieldAnnotations > Annotations
std::pair< std::string, int > DatabaseHandle
void GetNodalAttributes(vtkDataArraySelection *fieldSelection, vtkDataSetAttributes *arrayGroup, vtkCellGrid *grid, vtkDGCell *meta, const Ioss::GroupingEntity *group_entity, Ioss::Region *region, const DatabaseHandle &handle, int timestep, bool read_ioss_ids, const std::string &cache_key_suffix)
Visualization data composed of cells of arbitrary type.
Definition: vtkCellGrid.h:48
Store on/off settings for data arrays, etc.
Base class for a discontinuous Galerkin cells of all shapes.
Definition: vtkDGCell.h:43
represent and manipulate attribute data in a dataset
std::vector< vtkSmartPointer< vtkCellGrid > > GetCellGrids(const std::string &blockName, vtkIOSSReader::EntityType vtk_entity_type, const DatabaseHandle &handle, int timestep, vtkIOSSCellGridReader *self)
Reader for IOSS (Sierra IO System) that produces cell-grid data.
vtkIOSSCellGridReaderInternal(vtkIOSSCellGridReader *self)
vtkCellAttribute::CellTypeInfo GetCellGridInfoForBlock(int shape_conn_size, int shape_order, vtkDGCell *dg)
void GetElementAttributes(vtkDataArraySelection *fieldSelection, vtkDataSetAttributes *arrayGroup, vtkCellGrid *grid, vtkDGCell *meta, const Ioss::GroupingEntity *group_entity, Ioss::Region *region, const DatabaseHandle &handle, int timestep, bool read_ioss_ids, const std::string &cache_key_suffix)