----------------------------------------------------------------------------
| 109 | |
| 110 | //---------------------------------------------------------------------------- |
| 111 | bool vtkSMReaderReloadHelper::SupportsReload(vtkSMSourceProxy* proxy) |
| 112 | { |
| 113 | if (vtkPVXMLElement* hints = proxy ? proxy->GetHints() : nullptr) |
| 114 | { |
| 115 | if (vtkPVXMLElement* rfhints = hints->FindNestedElementByName("ReloadFiles")) |
| 116 | { |
| 117 | if (proxy->GetProperty(rfhints->GetAttributeOrEmpty("property"))) |
| 118 | { |
| 119 | return true; |
| 120 | } |
| 121 | } |
| 122 | return (hints->FindNestedElementByName("ReaderFactory") != nullptr && |
| 123 | vtkSMCoreUtilities::GetFileNameProperty(proxy) != nullptr); |
| 124 | } |
| 125 | |
| 126 | return false; |
| 127 | } |
| 128 | |
| 129 | //---------------------------------------------------------------------------- |
| 130 | bool vtkSMReaderReloadHelper::SupportsFileSeries(vtkSMSourceProxy* proxy) |
no test coverage detected