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

Method SetDisplayPosition

Interaction/Widgets/vtkPointHandleRepresentation3D.cxx:196–217  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

194
195//------------------------------------------------------------------------------
196void vtkPointHandleRepresentation3D::SetDisplayPosition(double p[3])
197{
198 if (this->Renderer && this->PointPlacer)
199 {
200 if (this->PointPlacer->ValidateDisplayPosition(this->Renderer, p))
201 {
202 double worldPos[3], worldOrient[9];
203 if (this->PointPlacer->ComputeWorldPosition(this->Renderer, p, worldPos, worldOrient))
204 {
205 this->DisplayPosition->SetValue(p);
206 this->WorldPosition->SetValue(worldPos);
207 this->DisplayPositionTime.Modified();
208 this->SetWorldPosition(this->WorldPosition->GetValue());
209 }
210 }
211 }
212 else
213 {
214 this->DisplayPosition->SetValue(p);
215 this->DisplayPositionTime.Modified();
216 }
217}
218
219//------------------------------------------------------------------------------
220void vtkPointHandleRepresentation3D::SetHandleSize(double size)

Callers

nothing calls this directly

Calls 6

SetWorldPositionMethod · 0.95
ComputeWorldPositionMethod · 0.45
SetValueMethod · 0.45
ModifiedMethod · 0.45
GetValueMethod · 0.45

Tested by

no test coverage detected