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

Method SetParametricSpline

Interaction/Widgets/vtkCameraPathRepresentation.cxx:181–197  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

179
180//------------------------------------------------------------------------------
181void vtkCameraPathRepresentation::SetParametricSpline(vtkParametricSpline* spline)
182{
183 this->SetParametricSplineInternal(spline);
184
185 if (!spline || !spline->GetPoints() || spline->GetPoints()->GetNumberOfPoints() < 1)
186 {
187 this->SetNumberOfHandles(0);
188 return;
189 }
190
191 // Ensure no handle is highlighted
192 this->HighlightHandle(nullptr);
193 int npts = spline->GetPoints()->GetNumberOfPoints();
194 this->ReconfigureHandles(npts, this->NumberOfHandles);
195 this->NumberOfHandles = npts;
196 this->RebuildRepresentation();
197}
198
199//------------------------------------------------------------------------------
200void vtkCameraPathRepresentation::CreateDefaultHandles(int npts)

Callers

nothing calls this directly

Calls 7

SetNumberOfHandlesMethod · 0.95
ReconfigureHandlesMethod · 0.95
RebuildRepresentationMethod · 0.95
GetPointsMethod · 0.45
GetNumberOfPointsMethod · 0.45
HighlightHandleMethod · 0.45

Tested by

no test coverage detected