------------------------------------------------------------------------------
| 379 | |
| 380 | //------------------------------------------------------------------------------ |
| 381 | int 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 | //------------------------------------------------------------------------------ |
| 405 | void vtkXYPlotActor::AddDataSetInput(vtkDataSet* ds, const char* arrayName, int component) |
no test coverage detected