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

Method FindPickedActor

Rendering/Core/vtkInteractorStyle3D.cxx:133–152  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

131
132//------------------------------------------------------------------------------
133void vtkInteractorStyle3D::FindPickedActor(double pos[3], double orient[4])
134{
135 if (!orient)
136 {
137 this->InteractionPicker->Pick3DPoint(pos, this->CurrentRenderer);
138 }
139 else
140 {
141 this->InteractionPicker->Pick3DRay(pos, orient, this->CurrentRenderer);
142 }
143 vtkProp* prop = this->InteractionPicker->GetViewProp();
144 if (prop != nullptr)
145 {
146 this->InteractionProp = vtkProp3D::SafeDownCast(prop);
147 }
148 else
149 {
150 this->InteractionProp = nullptr;
151 }
152}
153
154//------------------------------------------------------------------------------
155void vtkInteractorStyle3D::Prop3DTransform(

Callers 2

StartPositionPropMethod · 0.45
UpdateRayMethod · 0.45

Calls 3

Pick3DPointMethod · 0.45
Pick3DRayMethod · 0.45
GetViewPropMethod · 0.45

Tested by

no test coverage detected