------------------------------------------------------------------------------
| 315 | |
| 316 | //------------------------------------------------------------------------------ |
| 317 | vtkIdType vtkChartBox::GetColumnId(const vtkStdString& name) |
| 318 | { |
| 319 | vtkPlot* plot = this->GetPlot(0); |
| 320 | if (!plot || !plot->GetInput()) |
| 321 | { |
| 322 | return -1; |
| 323 | } |
| 324 | vtkTable* table = plot->GetInput(); |
| 325 | vtkIdType nbColumn = table->GetNumberOfColumns(); |
| 326 | for (vtkIdType i = 0; i < nbColumn; i++) |
| 327 | { |
| 328 | if (table->GetColumnName(i) == name) |
| 329 | { |
| 330 | return i; |
| 331 | } |
| 332 | } |
| 333 | return -1; |
| 334 | } |
| 335 | |
| 336 | //------------------------------------------------------------------------------ |
| 337 | vtkAxis* vtkChartBox::GetYAxis() |
no test coverage detected