| 167 | } |
| 168 | |
| 169 | void vtkBrokenLineWidget::SetHandlePosition(int handle, double x, double y, double z) |
| 170 | { |
| 171 | if (handle < 0 || handle >= this->NumberOfHandles) |
| 172 | { |
| 173 | vtkErrorMacro(<< "vtkBrokenLineWidget: handle index out of range."); |
| 174 | return; |
| 175 | } |
| 176 | this->HandleGeometry[handle]->SetCenter(x, y, z); |
| 177 | this->HandleGeometry[handle]->Update(); |
| 178 | if (this->ProjectToPlane) |
| 179 | { |
| 180 | this->ProjectPointsToPlane(); |
| 181 | } |
| 182 | this->BuildRepresentation(); |
| 183 | } |
| 184 | |
| 185 | void vtkBrokenLineWidget::SetHandlePosition(int handle, double xyz[3]) |
| 186 | { |
no test coverage detected