------------------------------------------------------------------------------
| 179 | |
| 180 | //------------------------------------------------------------------------------ |
| 181 | void 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 | //------------------------------------------------------------------------------ |
| 200 | void vtkCameraPathRepresentation::CreateDefaultHandles(int npts) |
nothing calls this directly
no test coverage detected