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

Method IsInputPresent

Rendering/Annotation/vtkXYPlotActor.cxx:381–402  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

379
380//------------------------------------------------------------------------------
381int vtkXYPlotActor::IsInputPresent(vtkAlgorithmOutput* in, const char* arrayName, int component)
382{
383 int numConns = this->InputConnectionHolder->GetNumberOfInputConnections(0);
384 for (int idx = 0; idx < numConns; idx++)
385 {
386 if (this->DoesConnectionMatch(idx, in))
387 {
388 if (arrayName == nullptr && this->SelectedInputScalars[idx] == nullptr &&
389 component == this->SelectedInputScalarsComponent->GetValue(idx))
390 {
391 return idx + 1;
392 }
393 if (arrayName != nullptr && this->SelectedInputScalars[idx] != nullptr &&
394 strcmp(arrayName, this->SelectedInputScalars[idx]) == 0 &&
395 component == this->SelectedInputScalarsComponent->GetValue(idx))
396 {
397 return idx + 1;
398 }
399 }
400 }
401 return 0;
402}
403
404//------------------------------------------------------------------------------
405void vtkXYPlotActor::AddDataSetInput(vtkDataSet* ds, const char* arrayName, int component)

Callers 2

Calls 3

DoesConnectionMatchMethod · 0.95
GetValueMethod · 0.45

Tested by

no test coverage detected