MCPcopy Create free account
hub / github.com/Kitware/VTK / vtkEntitySet

Method vtkEntitySet

IO/IOSS/vtkIOSSModel.cxx:1761–1783  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1759 std::vector<std::tuple<std::string, Ioss::Field::BasicType, int>> Fields;
1760
1761 vtkEntitySet(vtkPartitionedDataSet* pds, vtkIOSSWriter::EntityType entityType,
1762 const std::string& name, int blockId, vtkMultiProcessController* controller,
1763 vtkIOSSWriter* writer)
1764 : vtkGroupingEntity(writer)
1765 , DataSets(vtkCompositeDataSet::GetDataSets<vtkDataSet>(pds))
1766 , Name(name)
1767 , BlockId(blockId)
1768 , Count(0)
1769 {
1770 for (auto& ds : this->DataSets)
1771 {
1772 // no need to check for global IDs
1773 auto elementSide = vtkIntArray::SafeDownCast(ds->GetCellData()->GetArray("element_side"));
1774 if (!elementSide && ds->GetNumberOfCells() != 0)
1775 {
1776 throw std::runtime_error("missing 'element_side' cell array.");
1777 }
1778
1779 this->Count += ds->GetNumberOfCells();
1780 }
1781 this->Fields = ::GetFields(vtkDataObject::CELL, writer->GetChooseFieldsToWrite(),
1782 writer->GetFieldSelection(entityType), pds, controller);
1783 }
1784
1785 void AppendMD5(vtksysMD5* md5) const override
1786 {

Callers

nothing calls this directly

Calls 5

GetFieldsFunction · 0.70
GetArrayMethod · 0.45
GetCellDataMethod · 0.45
GetNumberOfCellsMethod · 0.45
GetFieldSelectionMethod · 0.45

Tested by

no test coverage detected