MCPcopy Create free account
hub / github.com/Kitware/VTK / PlaceWidget

Method PlaceWidget

Interaction/Widgets/vtkPointWidget.cxx:626–644  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

624}
625
626void 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
646void vtkPointWidget::GetPolyData(vtkPolyData* pd)
647{

Callers 1

vtkPointWidgetMethod · 0.95

Calls 5

sqrtFunction · 0.50
AdjustBoundsMethod · 0.45
SetModelBoundsMethod · 0.45
SetFocalPointMethod · 0.45
UpdateMethod · 0.45

Tested by

no test coverage detected