------------------------------------------------------------------------------
| 120 | |
| 121 | //------------------------------------------------------------------------------ |
| 122 | void vtkCameraPathRepresentation::DeleteCameraAt(int index) |
| 123 | { |
| 124 | if (index < 0 || index >= this->NumberOfHandles) |
| 125 | { |
| 126 | vtkErrorMacro(<< "ERROR: Invalid index\n"); |
| 127 | return; |
| 128 | } |
| 129 | |
| 130 | this->CameraHandles.erase(this->CameraHandles.begin() + index); |
| 131 | vtkActor* handleActor = this->HandleActors.at(index); |
| 132 | this->HandlePicker->DeletePickList(handleActor); |
| 133 | this->HandleActors.erase(this->HandleActors.begin() + index); |
| 134 | |
| 135 | this->UpdateConfiguration(this->NumberOfHandles - 1); |
| 136 | } |
| 137 | |
| 138 | //------------------------------------------------------------------------------ |
| 139 | void vtkCameraPathRepresentation::SetNumberOfHandles(int npts) |