77 vtkNew<vtkImageReader2Factory> readerFactory;
79 imageReader.TakeReference(readerFactory->CreateImageReader2(fileName.c_str()));
80 imageReader->SetFileName(fileName.c_str());
81 imageReader->Update();
83 vtkNew<vtkImageFlip> flip;
84 flip->SetInputConnection(imageReader->GetOutputPort());
85 flip->SetFilteredAxis(1);
87 actor->GetMapper()->SetInputConnection(flip->GetOutputPort());
94 t->SetElement(0, 0, transformation.
xx());
95 t->SetElement(0, 1, transformation.
xy());
96 t->SetElement(0, 2, transformation.
xz());
97 t->SetElement(0, 3, transformation.
dx());
99 t->SetElement(1, 0, transformation.
yx());
100 t->SetElement(1, 1, transformation.
yy());
101 t->SetElement(1, 2, transformation.
yz());
102 t->SetElement(1, 3, transformation.
dy());
104 t->SetElement(2, 0, transformation.
zx());
105 t->SetElement(2, 1, transformation.
zy());
106 t->SetElement(2, 2, transformation.
zz());
107 t->SetElement(2, 3, transformation.
dz());
109 t->SetElement(3, 0, 0);
110 t->SetElement(3, 1, 0);
111 t->SetElement(3, 2, 0);
112 t->SetElement(3, 3, 1);
113 actor->SetUserMatrix(t);
const G4Transform3D & fTransform
const G4VtkViewer * fViewer