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

Method SetLockNormalToCamera

Interaction/Widgets/vtkCoordinateFrameRepresentation.cxx:236–270  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

234
235//------------------------------------------------------------------------------
236void vtkCoordinateFrameRepresentation::SetLockNormalToCamera(vtkTypeBool lock)
237{
238 vtkDebugMacro(<< this->GetClassName() << " (" << this << "): setting " << LockNormalToCamera
239 << " to " << lock);
240 if (lock == this->LockNormalToCamera)
241 {
242 return;
243 }
244
245 if (lock)
246 {
247 this->CellPicker->DeletePickList(this->OriginSphereActor);
248 this->CellPicker->DeletePickList(this->XVectorLineActor);
249 this->CellPicker->DeletePickList(this->XVectorConeActor);
250 this->CellPicker->DeletePickList(this->YVectorLineActor);
251 this->CellPicker->DeletePickList(this->YVectorConeActor);
252 this->CellPicker->DeletePickList(this->ZVectorLineActor);
253 this->CellPicker->DeletePickList(this->ZVectorConeActor);
254
255 this->SetNormalToCamera();
256 }
257 else
258 {
259 this->CellPicker->AddPickList(this->OriginSphereActor);
260 this->CellPicker->AddPickList(this->XVectorLineActor);
261 this->CellPicker->AddPickList(this->XVectorConeActor);
262 this->CellPicker->AddPickList(this->YVectorLineActor);
263 this->CellPicker->AddPickList(this->YVectorConeActor);
264 this->CellPicker->AddPickList(this->ZVectorLineActor);
265 this->CellPicker->AddPickList(this->ZVectorConeActor);
266 }
267
268 this->LockNormalToCamera = lock;
269 this->Modified();
270}
271
272//------------------------------------------------------------------------------
273int vtkCoordinateFrameRepresentation::ComputeInteractionState(int X, int Y, int vtkNotUsed(modify))

Callers

nothing calls this directly

Calls 5

SetNormalToCameraMethod · 0.95
DeletePickListMethod · 0.80
GetClassNameMethod · 0.45
AddPickListMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected