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