| 624 | } |
| 625 | |
| 626 | void vtkPointWidget::PlaceWidget(double bds[6]) |
| 627 | { |
| 628 | int i; |
| 629 | double bounds[6], center[3]; |
| 630 | |
| 631 | this->AdjustBounds(bds, bounds, center); |
| 632 | |
| 633 | this->Cursor3D->SetModelBounds(bounds); |
| 634 | this->Cursor3D->SetFocalPoint(center); |
| 635 | this->Cursor3D->Update(); |
| 636 | |
| 637 | for (i = 0; i < 6; i++) |
| 638 | { |
| 639 | this->InitialBounds[i] = bounds[i]; |
| 640 | } |
| 641 | this->InitialLength = sqrt((bounds[1] - bounds[0]) * (bounds[1] - bounds[0]) + |
| 642 | (bounds[3] - bounds[2]) * (bounds[3] - bounds[2]) + |
| 643 | (bounds[5] - bounds[4]) * (bounds[5] - bounds[4])); |
| 644 | } |
| 645 | |
| 646 | void vtkPointWidget::GetPolyData(vtkPolyData* pd) |
| 647 | { |
no test coverage detected