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

Method SetHandlePosition

Interaction/Widgets/vtkSplineWidget.cxx:219–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219void 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
235void vtkSplineWidget::SetHandlePosition(int handle, double xyz[3])
236{

Callers 10

InitializeHandlesMethod · 0.95
InitializeHandlesMethod · 0.45
SetHandlePositionFunction · 0.45
InitializeHandlesMethod · 0.45
InitializeHandlesMethod · 0.45
TestSplineWidgetFunction · 0.45
TestOSPRaySplineWidget2Function · 0.45

Calls 4

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

Tested by 5

TestSplineWidgetFunction · 0.36
TestOSPRaySplineWidget2Function · 0.36