45 fDrawingModeSet(false),
47 fpCurrentTrajectory(0)
49 fType =
"G4TrajectoriesModel";
50 fGlobalTag =
"G4TrajectoriesModel for all trajectories.";
55 fDrawingModeSet(true),
56 fDrawingMode(drawingMode),
57 fpCurrentTrajectory(0) {
58 fGlobalTag =
"G4TrajectoriesModel for all trajectories.";
76 if (!pVVisManager)
return;
78 fEventID =
event->GetEventID();
86 fpCurrentTrajectory = (*TC) [iT];
91 if (fpCurrentTrajectory)
99 return fDrawingModeSet;
104 if (fDrawingModeSet)
return fDrawingMode;
107 (
"G4TrajectoriesModel::GetDrawingMode",
110 "Illegal attempt to obtain i_mode."
111 "\n i_mode is an old trajectories parameter that is DEPRECATED"
112 "\n and will be removed at the next major release."
120 if (fDrawingModeSet) fDrawingMode = drawingMode;
123 (
"G4TrajectoriesModel::SetDrawingMode",
126 "Illegal attempt to set i_mode."
127 "\n i_mode is an old trajectories parameter that is DEPRECATED"
128 "\n and will be removed at the next major release."
136 std::map<G4String,G4AttDef>* store
139 (*store)[
"EventID"] =
140 G4AttDef(
"EventID",
"Event ID",
"Physics",
"",
"G4int");
147 std::vector<G4AttValue>* values =
new std::vector<G4AttValue>;
164 G4cout <<
"\nProvided G4Atts:\n" << attCheck;
167 std::vector<G4AttValue> standardValues;
168 std::map<G4String,G4AttDef> standardDefinitions;
169 attCheck.
Standard(&standardValues, &standardDefinitions);
170 G4cout <<
"\nStandard G4Atts:\n"
171 <<
G4AttCheck(&standardValues, &standardDefinitions);
182 G4cout <<
"\nProvided G4Atts:\n" << attCheck;
185 std::vector<G4AttValue> standardValues;
186 std::map<G4String,G4AttDef> standardDefinitions;
187 attCheck.
Standard(&standardValues, &standardDefinitions);
188 G4cout <<
"\nStandard G4Atts:\n"
189 <<
G4AttCheck(&standardValues, &standardDefinitions);
void G4TrajectoriesModelDebugG4AttValues(const G4VTrajectory *)
G4DLLIMPORT std::ostream G4cout
G4bool Check(const G4String &leader="") const
G4bool Standard(std::vector< G4AttValue > *standardValues, std::map< G4String, G4AttDef > *standardDefinitions) const
const G4Event * GetEvent() const
virtual void DescribeYourselfTo(G4VGraphicsScene &)
virtual ~G4TrajectoriesModel()
G4bool IsDrawingModeSet() const
std::vector< G4AttValue > * CreateCurrentAttValues() const
void SetDrawingMode(G4int drawingMode)
G4int GetDrawingMode() const
const std::map< G4String, G4AttDef > * GetAttDefs() const
static G4String ConvertToString(G4bool boolVal)
virtual void AddCompound(const G4VTrajectory &)=0
G4String fGlobalDescription
const G4ModelingParameters * fpMP
virtual std::vector< G4AttValue > * CreateAttValues() const
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
virtual G4VTrajectoryPoint * GetPoint(G4int i) const =0
virtual int GetPointEntries() const =0
virtual std::vector< G4AttValue > * CreateAttValues() const
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
static G4VVisManager * GetConcreteInstance()
virtual void BeginDraw(const G4Transform3D &objectTransformation=G4Transform3D())=0
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
std::map< G4String, G4AttDef > * GetInstance(G4String storeKey, G4bool &isNew)