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

Method StartComplexInteraction

Rendering/VR/vtkVRPanelRepresentation.cxx:133–148  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

131
132//------------------------------------------------------------------------------
133void vtkVRPanelRepresentation::StartComplexInteraction(
134 vtkRenderWindowInteractor*, vtkAbstractWidget*, unsigned long, void* calldata)
135{
136 vtkEventData* edata = static_cast<vtkEventData*>(calldata);
137 vtkEventDataDevice3D* edd = edata->GetAsEventDataDevice3D();
138 if (edd)
139 {
140 edd->GetWorldPosition(this->StartEventPosition);
141 this->LastEventPosition[0] = this->StartEventPosition[0];
142 this->LastEventPosition[1] = this->StartEventPosition[1];
143 this->LastEventPosition[2] = this->StartEventPosition[2];
144 edd->GetWorldOrientation(this->StartEventOrientation);
145 std::copy(
146 this->StartEventOrientation, this->StartEventOrientation + 4, this->LastEventOrientation);
147 }
148}
149
150//------------------------------------------------------------------------------
151void vtkVRPanelRepresentation::ComplexInteraction(

Callers

nothing calls this directly

Calls 3

copyFunction · 0.50
GetWorldPositionMethod · 0.45

Tested by

no test coverage detected