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

Method ReadField

IO/Geometry/vtkOpenFOAMReader.cxx:3825–3849  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3823}
3824
3825bool vtkFoamEntryValue::ReadField(vtkFoamIOobject& io)
3826{
3827 this->SetStreamOption(io);
3828
3829 // Basic field types: "boolField", "labelField", "scalarField" ...
3830 vtkFoamTypes::dataType listDataType(vtkFoamTypes::FieldToEnum(io.GetClassName()));
3831
3832 try
3833 {
3834 if (vtkFoamTypes::IsGood(listDataType))
3835 {
3836 this->ReadNonUniformList(io, listDataType);
3837 }
3838 else
3839 {
3840 throw vtkFoamError() << "Unsupported field type " << io.GetClassName();
3841 }
3842 }
3843 catch (const vtkFoamError& err)
3844 {
3845 io.SetError(err);
3846 return false;
3847 }
3848 return true;
3849}
3850
3851// Read a list of labelLists. requires size prefix of the listList
3852// to be present. size of each sublist must also be present in the

Callers 1

MakeLagrangianMeshMethod · 0.80

Calls 5

ReadNonUniformListMethod · 0.95
vtkFoamErrorClass · 0.85
SetErrorMethod · 0.80
SetStreamOptionMethod · 0.45
GetClassNameMethod · 0.45

Tested by

no test coverage detected