| 217 | } |
| 218 | |
| 219 | void vtkSplineWidget::SetHandlePosition(int handle, double x, double y, double z) |
| 220 | { |
| 221 | if (handle < 0 || handle >= this->NumberOfHandles) |
| 222 | { |
| 223 | vtkErrorMacro(<< "vtkSplineWidget: handle index out of range."); |
| 224 | return; |
| 225 | } |
| 226 | this->HandleGeometry[handle]->SetCenter(x, y, z); |
| 227 | this->HandleGeometry[handle]->Update(); |
| 228 | if (this->ProjectToPlane) |
| 229 | { |
| 230 | this->ProjectPointsToPlane(); |
| 231 | } |
| 232 | this->BuildRepresentation(); |
| 233 | } |
| 234 | |
| 235 | void vtkSplineWidget::SetHandlePosition(int handle, double xyz[3]) |
| 236 | { |