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

Method SetWorldPosition

Interaction/Widgets/vtkHandleRepresentation.cxx:97–112  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

95
96//------------------------------------------------------------------------------
97void vtkHandleRepresentation::SetWorldPosition(double pos[3])
98{
99 if (this->Renderer && this->PointPlacer)
100 {
101 if (this->PointPlacer->ValidateWorldPosition(pos))
102 {
103 this->WorldPosition->SetValue(pos);
104 this->WorldPositionTime.Modified();
105 }
106 }
107 else
108 {
109 this->WorldPosition->SetValue(pos);
110 this->WorldPositionTime.Modified();
111 }
112}
113
114//------------------------------------------------------------------------------
115void vtkHandleRepresentation::GetWorldPosition(double pos[3]) VTK_FUTURE_CONST

Callers 15

SetWorldPositionFunction · 0.45
SetAnchorPositionMethod · 0.45

Calls 3

ValidateWorldPositionMethod · 0.45
SetValueMethod · 0.45
ModifiedMethod · 0.45

Tested by 13

CreateWidgetFunction · 0.36
TestSphereHandleWidgetFunction · 0.36
ExecuteMethod · 0.36
TestHandleWidgetFunction · 0.36
ExecuteMethod · 0.36
TestMultipleViewportsFunction · 0.36