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

Method SetAllArrayStatus

IO/Exodus/vtkExodusIIReader.cxx:6503–6577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6501}
6502
6503void vtkExodusIIReader::SetAllArrayStatus(int otyp, int status)
6504{
6505 int numObj;
6506 int i;
6507 switch (otyp)
6508 {
6509 case EDGE_BLOCK_CONN:
6510 case FACE_BLOCK_CONN:
6511 case ELEM_BLOCK_ELEM_CONN:
6512 case NODE_SET_CONN:
6513 case EDGE_SET_CONN:
6514 case FACE_SET_CONN:
6515 case SIDE_SET_CONN:
6516 case ELEM_SET_CONN:
6517 { // Convert the "connectivity" type into an "object" type:
6518 int ctypidx = this->Metadata->GetConnTypeIndexFromConnType(otyp);
6519 int otypidx = conn_obj_idx_cvt[ctypidx];
6520 otyp = obj_types[otypidx];
6521 // Now set the status
6522 numObj = this->GetNumberOfObjects(otyp);
6523 for (i = 0; i < numObj; ++i)
6524 {
6525 this->SetObjectStatus(otyp, i, status);
6526 }
6527 }
6528 break;
6529 case NODAL:
6530 case GLOBAL:
6531 case EDGE_BLOCK:
6532 case FACE_BLOCK:
6533 case ELEM_BLOCK:
6534 case NODE_SET:
6535 case EDGE_SET:
6536 case FACE_SET:
6537 case SIDE_SET:
6538 case ELEM_SET:
6539 numObj = this->GetNumberOfObjectArrays(otyp);
6540 for (i = 0; i < numObj; ++i)
6541 {
6542 this->SetObjectArrayStatus(otyp, i, status);
6543 }
6544 break;
6545 // ---------------------
6546 case ASSEMBLY:
6547 numObj = this->GetNumberOfAssemblyArrays();
6548 for (i = 0; i < numObj; ++i)
6549 {
6550 this->SetAssemblyArrayStatus(i, status);
6551 }
6552 [[fallthrough]];
6553 case PART:
6554 numObj = this->GetNumberOfPartArrays();
6555 for (i = 0; i < numObj; ++i)
6556 {
6557 this->SetPartArrayStatus(i, status);
6558 }
6559 [[fallthrough]];
6560 case MATERIAL: