----------------------------------------------------------------------------
| 141 | |
| 142 | //---------------------------------------------------------------------------- |
| 143 | bool vtkSMReaderReloadHelper::ReloadFiles(vtkSMSourceProxy* proxy) |
| 144 | { |
| 145 | if (!this->SupportsReload(proxy)) |
| 146 | { |
| 147 | return false; |
| 148 | } |
| 149 | |
| 150 | assert(proxy); |
| 151 | |
| 152 | SM_SCOPED_TRACE(CallFunction).arg("ReloadFiles").arg(proxy); |
| 153 | |
| 154 | vtkPVXMLElement* hints = proxy->GetHints(); |
| 155 | vtkPVXMLElement* rfhints = hints ? hints->FindNestedElementByName("ReloadFiles") : nullptr; |
| 156 | if (rfhints && proxy->GetProperty(rfhints->GetAttributeOrEmpty("property"))) |
| 157 | { |
| 158 | proxy->InvokeCommand(rfhints->GetAttributeOrEmpty("property")); |
| 159 | } |
| 160 | else |
| 161 | { |
| 162 | proxy->RecreateVTKObjects(); |
| 163 | } |
| 164 | proxy->UpdatePipelineInformation(); |
| 165 | return true; |
| 166 | } |
| 167 | |
| 168 | //---------------------------------------------------------------------------- |
| 169 | bool vtkSMReaderReloadHelper::ExtendFileSeries(vtkSMSourceProxy* proxy) |
no test coverage detected