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

Method SupportsReload

Remoting/ServerManager/vtkSMReaderReloadHelper.cxx:111–127  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

109
110//----------------------------------------------------------------------------
111bool 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//----------------------------------------------------------------------------
130bool vtkSMReaderReloadHelper::SupportsFileSeries(vtkSMSourceProxy* proxy)

Callers 4

SupportsFileSeriesMethod · 0.95
ReloadFilesMethod · 0.95
updateEnableStateMethod · 0.80
reloadMethod · 0.80

Calls 2

GetPropertyMethod · 0.45

Tested by

no test coverage detected