#include <G4VtkViewer.hh>
Definition at line 58 of file G4VtkViewer.hh.
◆ vtkGeant4Callback()
vtkGeant4Callback::vtkGeant4Callback |
( |
| ) |
|
|
inline |
◆ Execute()
virtual void vtkGeant4Callback::Execute |
( |
vtkObject * |
caller, |
|
|
unsigned long |
, |
|
|
void * |
|
|
) |
| |
|
inlinevirtual |
Definition at line 70 of file G4VtkViewer.hh.
71 {
72 vtkRenderer *ren = reinterpret_cast<vtkRenderer *>(caller);
73 vtkCamera *cam = ren->GetActiveCamera();
74
75
76
77
78 auto cp = cam->GetPosition();
79 auto fp = cam->GetFocalPoint();
80 auto ud = cam->GetViewUp();
81
86
87 if(cam->GetParallelProjection()) {
89 }
90 else {
91 auto cd = std::sqrt(std::pow(
cp[0]-fp[0],2) +
92 std::pow(
cp[1]-
cp[1],2) +
93 std::pow(
cp[2]-
cp[2],2));
95 }
96 }
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)
References cd, and cp.
◆ New()
◆ SetGeant4ViewParameters()
◆ SetVtkInitialValues()
void vtkGeant4Callback::SetVtkInitialValues |
( |
G4double |
parallelScaleIn, |
|
|
G4double |
cameraDistanceIn |
|
) |
| |
|
inline |
◆ cameraDistance
G4double vtkGeant4Callback::cameraDistance |
|
protected |
◆ fVP
◆ parallelScale
G4double vtkGeant4Callback::parallelScale |
|
protected |
The documentation for this class was generated from the following file: