31#ifndef G4TRAJECTORYDRAWBYATTRIBUTE_HH
32#define G4TRAJECTORYDRAWBYATTRIBUTE_HH
53 const G4bool& visible =
true)
const;
56 virtual void Print(std::ostream& ostr)
const;
65 enum Config {Interval, SingleValue};
67 typedef std::pair<G4String, Config> Pair;
68 typedef std::map<Pair, G4VisTrajContext*> ContextMap;
72 ContextMap fContextMap;
76 mutable G4bool fWarnedMissingAttribute;
void AddValueContext(const G4String &name, G4VisTrajContext *context)
void AddIntervalContext(const G4String &name, G4VisTrajContext *context)
virtual void Draw(const G4VTrajectory &trajectory, const G4bool &visible=true) const
virtual ~G4TrajectoryDrawByAttribute()
void Set(const G4String &attribute)
virtual void Print(std::ostream &ostr) const
G4TrajectoryDrawByAttribute(const G4String &name="Unspecified", G4VisTrajContext *context=0)