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

Method SetDisplayPosition

Interaction/Widgets/vtkHandleRepresentation.cxx:38–58  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

36
37//------------------------------------------------------------------------------
38void vtkHandleRepresentation::SetDisplayPosition(double displyPos[2])
39{
40 if (this->Renderer && this->PointPlacer)
41 {
42 if (this->PointPlacer->ValidateDisplayPosition(this->Renderer, displyPos))
43 {
44 double worldPos[3], worldOrient[9];
45 if (this->PointPlacer->ComputeWorldPosition(this->Renderer, displyPos, worldPos, worldOrient))
46 {
47 this->DisplayPosition->SetValue(displyPos);
48 this->WorldPosition->SetValue(worldPos);
49 this->DisplayPositionTime.Modified();
50 }
51 }
52 }
53 else
54 {
55 this->DisplayPosition->SetValue(displyPos);
56 this->DisplayPositionTime.Modified();
57 }
58}
59
60//------------------------------------------------------------------------------
61void vtkHandleRepresentation::GetDisplayPosition(double pos[2])

Calls 4

ComputeWorldPositionMethod · 0.45
SetValueMethod · 0.45
ModifiedMethod · 0.45

Tested by 2

TestGL2PSExporterRasterFunction · 0.36
TestHandleWidget2DFunction · 0.36