MCPcopy Create free account
hub / github.com/Geant4/geant4 / SetActorTransform

Method SetActorTransform

source/visualization/Vtk/src/G4VtkPolydataPipeline.cc:213–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213void G4VtkPolydataPipeline::SetActorTransform(G4double dx, G4double dy, G4double dz, G4double r00,
214 G4double r01, G4double r02, G4double r10,
215 G4double r11, G4double r12, G4double r20,
216 G4double r21, G4double r22)
217{
218 // create transform
219 auto transform = vtkSmartPointer<vtkMatrix4x4>::New();
220 double transformArray[16] = {r00, r01, r02, dx, r10, r11, r12, dy,
221 r20, r21, r22, dz, 0., 0., 0., 1.};
222 transform->DeepCopy(transformArray);
223 actor->SetUserMatrix(transform);
224}
225
226void G4VtkPolydataPipeline::SetActorColour(G4double r, G4double g, G4double b, G4double a)
227{

Callers 2

AddPrimitiveSeparateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected