83 {
84 auto ren = static_cast<vtkRenderer*>(caller);
85 vtkCamera* cam = ren->GetActiveCamera();
86
87 auto cp = cam->GetPosition();
88 auto fp = cam->GetFocalPoint();
89 auto ud = cam->GetViewUp();
90 auto ps = cam->GetParallelScale();
91 auto cd = std::sqrt(std::pow(cp[0] - fp[0], 2) + std::pow(cp[1] - fp[1], 2)
92 + std::pow(cp[2] - fp[2], 2));
93
97
98 if (cam->GetParallelProjection() != 0) {
100 }
101 else {
103 }
104 }
HepGeom::Point3D< G4double > G4Point3D
HepGeom::Vector3D< G4double > G4Vector3D
void SetViewpointDirection(const G4Vector3D &viewpointDirection)
void SetCurrentTargetPoint(const G4Point3D ¤tTargetPoint)
void SetZoomFactor(G4double zoomFactor)
void SetUpVector(const G4Vector3D &upVector)