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

Method BuildRepresentation

Interaction/Widgets/vtkSplineWidget.cxx:523–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

521}
522
523void vtkSplineWidget::BuildRepresentation()
524{
525 // Handles have changed position, re-compute the spline coeffs
526 vtkPoints* points = this->ParametricSpline->GetPoints();
527 if (points->GetNumberOfPoints() != this->NumberOfHandles)
528 {
529 points->SetNumberOfPoints(this->NumberOfHandles);
530 }
531
532 double pt[3];
533 int i;
534 for (i = 0; i < this->NumberOfHandles; ++i)
535 {
536 this->HandleGeometry[i]->GetCenter(pt);
537 points->SetPoint(i, pt);
538 }
539 this->ParametricSpline->Modified();
540}
541
542int vtkSplineWidget::HighlightHandle(vtkProp* prop)
543{

Callers 7

SetClosedMethod · 0.95
SetHandlePositionMethod · 0.95
SetEnabledMethod · 0.95
OnMouseMoveMethod · 0.95
PlaceWidgetMethod · 0.95
SetProjectionPositionMethod · 0.95
SetNumberOfHandlesMethod · 0.95

Calls 6

GetPointsMethod · 0.45
GetNumberOfPointsMethod · 0.45
SetNumberOfPointsMethod · 0.45
GetCenterMethod · 0.45
SetPointMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected