| 463 | } |
| 464 | |
| 465 | void vtkBrokenLineWidget::BuildRepresentation() |
| 466 | { |
| 467 | // Get points array from line source |
| 468 | vtkPoints* points = this->LineSource->GetPoints(); |
| 469 | if (points->GetNumberOfPoints() != this->NumberOfHandles) |
| 470 | { |
| 471 | points->SetNumberOfPoints(this->NumberOfHandles); |
| 472 | } |
| 473 | |
| 474 | double pt[3]; |
| 475 | int i; |
| 476 | for (i = 0; i < this->NumberOfHandles; ++i) |
| 477 | { |
| 478 | this->HandleGeometry[i]->GetCenter(pt); |
| 479 | points->SetPoint(i, pt); |
| 480 | } |
| 481 | this->LineSource->Modified(); |
| 482 | } |
| 483 | |
| 484 | int vtkBrokenLineWidget::HighlightHandle(vtkProp* prop) |
| 485 | { |
no test coverage detected