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

Method DeleteCameraAt

Interaction/Widgets/vtkCameraPathRepresentation.cxx:122–136  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

120
121//------------------------------------------------------------------------------
122void 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//------------------------------------------------------------------------------
139void vtkCameraPathRepresentation::SetNumberOfHandles(int npts)

Callers 2

EraseHandleMethod · 0.95

Calls 5

UpdateConfigurationMethod · 0.95
DeletePickListMethod · 0.80
eraseMethod · 0.45
beginMethod · 0.45
atMethod · 0.45

Tested by 1