------------------------------------------------------------------------------
| 734 | |
| 735 | //------------------------------------------------------------------------------ |
| 736 | void 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 | //------------------------------------------------------------------------------ |
| 756 | const char* vtkSelectionSource::GetQueryString(unsigned int nodeId) |
no test coverage detected