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

Method BuildRepresentation

Interaction/Widgets/vtkBrokenLineWidget.cxx:465–482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

463}
464
465void 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
484int vtkBrokenLineWidget::HighlightHandle(vtkProp* prop)
485{

Callers 5

SetHandlePositionMethod · 0.95
SetEnabledMethod · 0.95
OnMouseMoveMethod · 0.95
PlaceWidgetMethod · 0.95
SetProjectionPositionMethod · 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