| 4886 | } |
| 4887 | |
| 4888 | void vtkExodusIIReaderPrivate::SetObjectStatus(int otyp, int k, int stat) |
| 4889 | { |
| 4890 | stat = (stat != 0); // Force stat to be either 0 or 1 |
| 4891 | // OK, found the object |
| 4892 | ObjectInfoType* oinfop = this->GetSortedObjectInfo(otyp, k); |
| 4893 | if (!oinfop) |
| 4894 | { // error message will have been generated by GetSortedObjectInfo() |
| 4895 | return; |
| 4896 | } |
| 4897 | |
| 4898 | vtkLogF(TRACE, "vtkExodusIIReaderPrivate(%p): SetObjectStatus(%d, %d (%s), %d)", |
| 4899 | static_cast<void*>(this), otyp, k, oinfop->Name.c_str(), stat); |
| 4900 | |
| 4901 | if (oinfop->Status == stat) |
| 4902 | { // no change => do nothing |
| 4903 | return; |
| 4904 | } |
| 4905 | oinfop->Status = stat; |
| 4906 | this->Modified(); |
| 4907 | } |
| 4908 | |
| 4909 | void vtkExodusIIReaderPrivate::SetUnsortedObjectStatus(int otyp, int k, int stat) |
| 4910 | { |