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

Method PlaceTensor

Interaction/Widgets/vtkTensorRepresentation.cxx:1113–1122  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Place a tensor at a specified position

Source from the content-addressed store, hash-verified

1111//------------------------------------------------------------------------------
1112// Place a tensor at a specified position
1113void vtkTensorRepresentation::PlaceTensor(double tensor[9], double pos[3])
1114{
1115 // Now update the widget/representation from the tensor
1116 this->SetTensor(tensor);
1117
1118 // Now translate the tensor
1119 double* pts = static_cast<vtkDoubleArray*>(this->Points->GetData())->GetPointer(0);
1120 double* center = pts + 3 * 14;
1121 this->Translate(center, pos);
1122}
1123
1124//------------------------------------------------------------------------------
1125void vtkTensorRepresentation::PlaceWidget(double bds[6])

Callers 1

Calls 4

SetTensorMethod · 0.95
TranslateMethod · 0.95
GetPointerMethod · 0.45
GetDataMethod · 0.45

Tested by

no test coverage detected