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

Method AddID

Filters/Sources/vtkSelectionSource.cxx:232–248  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

230
231//------------------------------------------------------------------------------
232void vtkSelectionSource::AddID(unsigned int nodeId, vtkIdType proc, vtkIdType id)
233{
234 if (nodeId >= this->NodesInfo.size())
235 {
236 vtkErrorMacro("Invalid node id: " << nodeId);
237 return;
238 }
239 // proc == -1 means all processes. All others are stored at index proc+1
240 proc++;
241
242 if (proc >= (vtkIdType)this->NodesInfo[nodeId]->IDs.size())
243 {
244 this->NodesInfo[nodeId]->IDs.resize(proc + 1);
245 }
246 this->NodesInfo[nodeId]->IDs[proc].insert(id);
247 this->Modified();
248}
249
250//------------------------------------------------------------------------------
251void vtkSelectionSource::AddStringID(unsigned int nodeId, vtkIdType proc, const char* id)

Callers 12

AddIDFunction · 0.80
TestBSPTreeFunction · 0.80
TestAppendSelectionFunction · 0.80
TestPDCFunction · 0.80
TestAMRFunction · 0.80
TestExtractValuesFunction · 0.80
TestExtractSelectionFunction · 0.80

Calls 4

sizeMethod · 0.45
resizeMethod · 0.45
insertMethod · 0.45
ModifiedMethod · 0.45

Tested by 11

TestBSPTreeFunction · 0.64
TestAppendSelectionFunction · 0.64
TestPDCFunction · 0.64
TestAMRFunction · 0.64
TestExtractValuesFunction · 0.64
TestExtractSelectionFunction · 0.64