MCPcopy Create free account
hub / github.com/Kitware/ParaView / ReloadFiles

Method ReloadFiles

Remoting/ServerManager/vtkSMReaderReloadHelper.cxx:143–166  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

141
142//----------------------------------------------------------------------------
143bool 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//----------------------------------------------------------------------------
169bool vtkSMReaderReloadHelper::ExtendFileSeries(vtkSMSourceProxy* proxy)

Callers 2

reloadMethod · 0.80
ReloadFilesFunction · 0.80

Calls 5

SupportsReloadMethod · 0.95
GetPropertyMethod · 0.45
RecreateVTKObjectsMethod · 0.45

Tested by

no test coverage detected