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

Method SetHandlePosition

Interaction/Widgets/vtkBrokenLineWidget.cxx:169–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169void 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
185void vtkBrokenLineWidget::SetHandlePosition(int handle, double xyz[3])
186{

Callers 1

InitializeHandlesMethod · 0.95

Calls 4

ProjectPointsToPlaneMethod · 0.95
BuildRepresentationMethod · 0.95
SetCenterMethod · 0.45
UpdateMethod · 0.45

Tested by

no test coverage detected