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

Method SetUserTransform

Rendering/Core/vtkProp3D.cxx:394–419  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

392
393//------------------------------------------------------------------------------
394void vtkProp3D::SetUserTransform(vtkLinearTransform* transform)
395{
396 this->IsIdentity = 0;
397 if (transform == this->UserTransform)
398 {
399 return;
400 }
401 if (this->UserTransform)
402 {
403 this->UserTransform->Delete();
404 this->UserTransform = nullptr;
405 }
406 if (this->UserMatrix)
407 {
408 this->UserMatrix->Delete();
409 this->UserMatrix = nullptr;
410 }
411 if (transform)
412 {
413 this->UserTransform = transform;
414 this->UserTransform->Register(this);
415 this->UserMatrix = transform->GetMatrix();
416 this->UserMatrix->Register(this);
417 }
418 this->Modified();
419}
420
421//------------------------------------------------------------------------------
422void vtkProp3D::SetUserMatrix(vtkMatrix4x4* matrix)

Callers 15

ShallowCopyMethod · 0.95
PokeMatrixMethod · 0.95
ExecuteMethod · 0.45
RunFunction · 0.45
testICPTransformMethod · 0.45
ExecuteMethod · 0.45
ExecuteMethod · 0.45
ExecuteMethod · 0.45
vtkVRRendererMethod · 0.45

Calls 4

DeleteMethod · 0.65
RegisterMethod · 0.45
GetMatrixMethod · 0.45
ModifiedMethod · 0.45

Tested by 15

RunFunction · 0.36
testICPTransformMethod · 0.36
ExecuteMethod · 0.36
TestGPURayCastCroppingFunction · 0.36
RegisterVolumeToRenderFunction · 0.36
RegisterVolumeToRenderFunction · 0.36