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

Method SetMatrix

Rendering/Core/vtkAssemblyNode.cxx:36–54  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

34
35//------------------------------------------------------------------------------
36void vtkAssemblyNode::SetMatrix(vtkMatrix4x4* matrix)
37{
38 // delete previous
39 if (this->Matrix)
40 {
41 this->Matrix->Delete();
42 this->Matrix = nullptr;
43 }
44 // return if nullptr matrix specified
45 if (!matrix)
46 {
47 return;
48 }
49
50 // else create a copy of the matrix
51 vtkMatrix4x4* newMatrix = vtkMatrix4x4::New();
52 newMatrix->DeepCopy(matrix);
53 this->Matrix = newMatrix;
54}
55
56//------------------------------------------------------------------------------
57vtkMTimeType vtkAssemblyNode::GetMTime()

Callers 15

GetKeyMatricesMethod · 0.45
GetKeyMatricesMethod · 0.45
PlaceWidgetExtendedMethod · 0.45
ComputeMatricesMethod · 0.45
UpdateShadingTableMethod · 0.45
getTorsoTransformFunction · 0.45
RenderOpaqueGeometryMethod · 0.45
UpdateMethod · 0.45
~vtkGridAxesHelperMethod · 0.45
UpdateMethod · 0.45

Calls 3

NewFunction · 0.70
DeleteMethod · 0.65
DeepCopyMethod · 0.45

Tested by

no test coverage detected