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

Method FindApplicableDomain

Remoting/ServerManager/vtkSMInputArrayDomain.cxx:389–407  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

387
388//---------------------------------------------------------------------------
389vtkSMInputArrayDomain* vtkSMInputArrayDomain::FindApplicableDomain(vtkSMProperty* property)
390{
391 auto iter = property->NewDomainIterator();
392 vtkSMInputArrayDomain* chosen = nullptr;
393 for (iter->Begin(); !iter->IsAtEnd(); iter->Next())
394 {
395 if (auto iad = vtkSMInputArrayDomain::SafeDownCast(iter->GetDomain()))
396 {
397 chosen = chosen ? chosen : iad;
398 if (iad->IsInDomain(property) == vtkSMDomain::IN_DOMAIN)
399 {
400 chosen = iad;
401 break;
402 }
403 }
404 }
405 iter->Delete();
406 return chosen;
407}
408
409//---------------------------------------------------------------------------
410void vtkSMInputArrayDomain::PrintSelf(ostream& os, vtkIndent indent)

Callers

nothing calls this directly

Calls 7

NewDomainIteratorMethod · 0.80
BeginMethod · 0.45
IsAtEndMethod · 0.45
NextMethod · 0.45
GetDomainMethod · 0.45
IsInDomainMethod · 0.45
DeleteMethod · 0.45

Tested by

no test coverage detected