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

Method IsInDomain

Remoting/ServerManager/vtkSMStringListDomain.cxx:66–93  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

64
65//---------------------------------------------------------------------------
66int vtkSMStringListDomain::IsInDomain(vtkSMProperty* property)
67{
68 if (this->IsOptional)
69 {
70 return 1;
71 }
72
73 if (!property)
74 {
75 return 0;
76 }
77 vtkSMStringVectorProperty* sp = vtkSMStringVectorProperty::SafeDownCast(property);
78 if (sp)
79 {
80 unsigned int numElems = sp->GetNumberOfUncheckedElements();
81 for (unsigned int i = 0; i < numElems; i++)
82 {
83 unsigned int idx;
84 if (!this->IsInDomain(sp->GetUncheckedElement(i), idx))
85 {
86 return 0;
87 }
88 }
89 return 1;
90 }
91
92 return 0;
93}
94
95//---------------------------------------------------------------------------
96int vtkSMStringListDomain::IsInDomain(const char* val, unsigned int& idx)

Callers 1

SetDefaultValuesMethod · 0.95

Calls 4

GetNumberOfStringsMethod · 0.95
GetStringMethod · 0.95
GetUncheckedElementMethod · 0.45

Tested by

no test coverage detected