| 351 | } |
| 352 | |
| 353 | void vtkParallelCoordinatesView::ClearBrushPoints() |
| 354 | { |
| 355 | this->NumberOfBrushPoints = 0; |
| 356 | |
| 357 | vtkIdType npts = this->BrushData->GetPoints()->GetNumberOfPoints(); |
| 358 | for (vtkIdType i = 0; i < npts; i++) |
| 359 | this->BrushData->GetPoints()->SetPoint(i, -1, -1, 0); |
| 360 | |
| 361 | // clear them for all of the lines |
| 362 | vtkNew<vtkIdList> cell; |
| 363 | auto cellIter = vtk::TakeSmartPointer(this->BrushData->GetLines()->NewIterator()); |
| 364 | for (cellIter->GoToFirstCell(); !cellIter->IsDoneWithTraversal(); cellIter->GoToNextCell()) |
| 365 | { |
| 366 | const vtkIdType cellNum = cellIter->GetCurrentCellId(); |
| 367 | cellIter->GetCurrentCell(cell); |
| 368 | |
| 369 | for (vtkIdType j = 0; j < cell->GetNumberOfIds(); j++) |
| 370 | { |
| 371 | cell->SetId(j, cellNum * this->MaximumNumberOfBrushPoints); |
| 372 | } |
| 373 | |
| 374 | cellIter->ReplaceCurrentCell(cell); |
| 375 | } |
| 376 | |
| 377 | this->BrushData->Modified(); |
| 378 | } |
| 379 | |
| 380 | //------------------------------------------------------------------------------ |
| 381 | int vtkParallelCoordinatesView::AddLassoBrushPoint(double* p) |
no test coverage detected