Geant4  10.01.p03
G4TrajectoryDrawerUtils Namespace Reference

Enumerations

enum  TimesValidity { InvalidTimes, ValidTimes }
 

Functions

void GetPoints (const G4VTrajectory &traj, G4Polyline &trajectoryLine, G4Polymarker &auxiliaryPoints, G4Polymarker &stepPoints)
 
void DrawLineAndPoints (const G4VTrajectory &traj, const G4VisTrajContext &)
 
TimesValidity GetPointsAndTimes (const G4VTrajectory &traj, const G4VisTrajContext &context, G4Polyline &trajectoryLine, G4Polymarker &auxiliaryPoints, G4Polymarker &stepPoints, std::vector< G4double > &trajectoryLineTimes, std::vector< G4double > &auxiliaryPointTimes, std::vector< G4double > &stepPointTimes)
 
static void SliceLine (G4double timeIncrement, G4Polyline &trajectoryLine, std::vector< G4double > &trajectoryLineTimes)
 
static void DrawWithoutTime (const G4VisTrajContext &myContext, G4Polyline &trajectoryLine, G4Polymarker &auxiliaryPoints, G4Polymarker &stepPoints)
 
static void DrawWithTime (const G4VisTrajContext &myContext, G4Polyline &trajectoryLine, G4Polymarker &auxiliaryPoints, G4Polymarker &stepPoints, std::vector< G4double > &trajectoryLineTimes, std::vector< G4double > &auxiliaryPointTimes, std::vector< G4double > &stepPointTimes)
 

Enumeration Type Documentation

Enumerator
InvalidTimes 
ValidTimes 

Definition at line 44 of file G4TrajectoryDrawerUtils.cc.

Function Documentation

void G4TrajectoryDrawerUtils::DrawLineAndPoints ( const G4VTrajectory traj,
const G4VisTrajContext context 
)

Definition at line 314 of file G4TrajectoryDrawerUtils.cc.

References DrawWithoutTime(), DrawWithTime(), G4VisTrajContext::GetDrawAuxPts(), G4VisTrajContext::GetDrawLine(), G4VisTrajContext::GetDrawStepPts(), GetPointsAndTimes(), G4VisTrajContext::GetTimeSliceInterval(), SliceLine(), and ValidTimes.

Referenced by G4TrajectoryGenericDrawer::Draw(), G4TrajectoryDrawByOriginVolume::Draw(), G4TrajectoryDrawByParticleID::Draw(), G4TrajectoryDrawByAttribute::Draw(), and G4TrajectoryDrawByCharge::Draw().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void G4TrajectoryDrawerUtils::DrawWithTime ( const G4VisTrajContext myContext,
G4Polyline trajectoryLine,
G4Polymarker auxiliaryPoints,
G4Polymarker stepPoints,
std::vector< G4double > &  trajectoryLineTimes,
std::vector< G4double > &  auxiliaryPointTimes,
std::vector< G4double > &  stepPointTimes 
)
static
void G4TrajectoryDrawerUtils::GetPoints ( const G4VTrajectory traj,
G4Polyline trajectoryLine,
G4Polymarker auxiliaryPoints,
G4Polymarker stepPoints 
)
TimesValidity G4TrajectoryDrawerUtils::GetPointsAndTimes ( const G4VTrajectory traj,
const G4VisTrajContext context,
G4Polyline trajectoryLine,
G4Polymarker auxiliaryPoints,
G4Polymarker stepPoints,
std::vector< G4double > &  trajectoryLineTimes,
std::vector< G4double > &  auxiliaryPointTimes,
std::vector< G4double > &  stepPointTimes 
)

Definition at line 47 of file G4TrajectoryDrawerUtils.cc.

References G4UIcommand::ConvertToDimensionedDouble(), G4VTrajectoryPoint::CreateAttValues(), G4cout, G4endl, G4VTrajectoryPoint::GetAuxiliaryPoints(), G4VTrajectory::GetPoint(), G4VTrajectory::GetPointEntries(), G4VTrajectoryPoint::GetPosition(), G4VisTrajContext::GetTimeSliceInterval(), InvalidTimes, G4INCL::Math::max(), and ValidTimes.

Referenced by DrawLineAndPoints().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void G4TrajectoryDrawerUtils::SliceLine ( G4double  timeIncrement,
G4Polyline trajectoryLine,
std::vector< G4double > &  trajectoryLineTimes 
)
static

Definition at line 169 of file G4TrajectoryDrawerUtils.cc.

References G4INCL::Math::max(), and pos.

Referenced by DrawLineAndPoints().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: