Changeset 712 for trunk/geant4/visualization/management
- Timestamp:
- Feb 5, 2008, 3:17:36 PM (17 years ago)
- Location:
- trunk/geant4/visualization/management
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/visualization/management/include/G4ViewParameters.hh
r593 r712 210 210 void SetLightsMoveWithCamera (G4bool moves); 211 211 void SetPan (G4double right, G4double up); 212 /** Increment currentTarget point by following X,Y values 213 */ 212 214 void IncrementPan (G4double right, G4double up); 215 /** Increment currentTarget point by following X,Y,Z values 216 */ 217 void IncrementPan (G4double right, G4double up, G4double distance); 213 218 void SetDefaultVisAttributes (const G4VisAttributes&); 214 219 void SetDefaultTextVisAttributes (const G4VisAttributes&); -
trunk/geant4/visualization/management/src/G4ViewParameters.cc
r593 r712 233 233 234 234 void G4ViewParameters::IncrementPan (G4double right, G4double up) { 235 IncrementPan (right,up, 0); 236 } 237 238 void G4ViewParameters::IncrementPan (G4double right, G4double up, G4double distance) { 235 239 G4Vector3D unitRight = (fUpVector.cross (fViewpointDirection)).unit(); 236 240 G4Vector3D unitUp = (fViewpointDirection.cross (unitRight)).unit(); 237 fCurrentTargetPoint += right * unitRight + up * unitUp ;241 fCurrentTargetPoint += right * unitRight + up * unitUp + distance * fViewpointDirection; 238 242 } 239 243
Note: See TracChangeset
for help on using the changeset viewer.