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

Method GetCameraDistance

source/visualization/management/src/G4ViewParameters.cc:131–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129// see, for example, G4OpenGLView::SetView ().)
130
131G4double G4ViewParameters::GetCameraDistance (G4double radius) const {
132 G4double cameraDistance;
133 if (fFieldHalfAngle == 0.) {
134 cameraDistance = radius;
135 }
136 else {
137 cameraDistance = radius / std::sin (fFieldHalfAngle) - fDolly;
138 }
139 return cameraDistance;
140}
141
142G4double G4ViewParameters::GetNearDistance (G4double cameraDistance,
143 G4double radius) const {

Callers 13

SetViewMethod · 0.80
GetSceneNearWidthMethod · 0.80
getSceneFarWidthMethod · 0.80
getSceneDepthMethod · 0.80
DrawDisplayListsMethod · 0.80
moveSceneMethod · 0.80
ZoomFromMouseWheelMethod · 0.80
SetViewMethod · 0.80
SetViewMethod · 0.80
SetViewMethod · 0.80
SetViewMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected