MCPcopy Create free account
hub / github.com/Kitware/VTK / SetQueryString

Method SetQueryString

Filters/Sources/vtkSelectionSource.cxx:736–753  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

734
735//------------------------------------------------------------------------------
736void vtkSelectionSource::SetQueryString(unsigned int nodeId, const char* queryString)
737{
738 if (nodeId >= this->NodesInfo.size())
739 {
740 vtkErrorMacro("Invalid node id: " << nodeId);
741 return;
742 }
743 const std::string safeQueryString = queryString ? queryString : "";
744 if (safeQueryString.empty())
745 {
746 return;
747 }
748 if (this->NodesInfo[nodeId]->QueryString != safeQueryString)
749 {
750 this->NodesInfo[nodeId]->QueryString = safeQueryString;
751 this->Modified();
752 }
753}
754
755//------------------------------------------------------------------------------
756const char* vtkSelectionSource::GetQueryString(unsigned int nodeId)

Callers 5

~vtkSelectionNodeMethod · 0.80
ShallowCopyMethod · 0.80
DeepCopyMethod · 0.80
RequestDataMethod · 0.80
SetQueryStringFunction · 0.80

Calls 3

sizeMethod · 0.45
emptyMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected