Geant4
10.02
|
#include <G4TrajectoryDrawByAttribute.hh>
Public Member Functions | |
G4TrajectoryDrawByAttribute (const G4String &name="Unspecified", G4VisTrajContext *context=0) | |
virtual | ~G4TrajectoryDrawByAttribute () |
virtual void | Draw (const G4VTrajectory &trajectory, const G4bool &visible=true) const |
virtual void | Print (std::ostream &ostr) const |
void | Set (const G4String &attribute) |
void | AddIntervalContext (const G4String &name, G4VisTrajContext *context) |
void | AddValueContext (const G4String &name, G4VisTrajContext *context) |
Public Member Functions inherited from G4VTrajectoryModel | |
G4VTrajectoryModel (const G4String &name, G4VisTrajContext *fpContext=0) | |
virtual | ~G4VTrajectoryModel () |
G4String | Name () const |
const G4VisTrajContext & | GetContext () const |
void | SetVerbose (const G4bool &) |
G4bool | GetVerbose () const |
Private Types | |
enum | Config { Interval, SingleValue } |
typedef std::pair< G4String, Config > | Pair |
typedef std::map< Pair, G4VisTrajContext * > | ContextMap |
Private Attributes | |
G4String | fAttName |
ContextMap | fContextMap |
G4bool | fFirst |
G4bool | fWarnedMissingAttribute |
G4VAttValueFilter * | filter |
Definition at line 42 of file G4TrajectoryDrawByAttribute.hh.
|
private |
Definition at line 69 of file G4TrajectoryDrawByAttribute.hh.
|
private |
Definition at line 68 of file G4TrajectoryDrawByAttribute.hh.
|
private |
Enumerator | |
---|---|
Interval | |
SingleValue |
Definition at line 66 of file G4TrajectoryDrawByAttribute.hh.
G4TrajectoryDrawByAttribute::G4TrajectoryDrawByAttribute | ( | const G4String & | name = "Unspecified" , |
G4VisTrajContext * | context = 0 |
||
) |
Definition at line 41 of file G4TrajectoryDrawByAttribute.cc.
|
virtual |
Definition at line 49 of file G4TrajectoryDrawByAttribute.cc.
References fContextMap, and filter.
void G4TrajectoryDrawByAttribute::AddIntervalContext | ( | const G4String & | name, |
G4VisTrajContext * | context | ||
) |
Definition at line 207 of file G4TrajectoryDrawByAttribute.cc.
References FatalErrorInArgument, fContextMap, G4Exception(), and Interval.
void G4TrajectoryDrawByAttribute::AddValueContext | ( | const G4String & | name, |
G4VisTrajContext * | context | ||
) |
Definition at line 226 of file G4TrajectoryDrawByAttribute.cc.
References FatalErrorInArgument, fContextMap, G4Exception(), and SingleValue.
|
virtual |
Implements G4VTrajectoryModel.
Definition at line 62 of file G4TrajectoryDrawByAttribute.cc.
References G4TrajectoryDrawerUtils::DrawLineAndPoints(), G4AttUtils::ExtractAttDef(), G4AttUtils::ExtractAttValue(), fAttName, fContextMap, fFirst, filter, fWarnedMissingAttribute, G4cout, G4endl, G4Exception(), G4VTrajectoryModel::GetContext(), G4AttFilterUtils::GetNewFilter(), G4VAttValueFilter::GetValidElement(), G4AttValue::GetValue(), G4VTrajectoryModel::GetVerbose(), Interval, G4String::isNull(), JustWarning, G4VAttValueFilter::LoadIntervalElement(), G4VAttValueFilter::LoadSingleValueElement(), G4VTrajectoryModel::Name(), G4VisTrajContext::Print(), G4VisTrajContext::SetVisible(), and SingleValue.
|
virtual |
Implements G4VTrajectoryModel.
Definition at line 180 of file G4TrajectoryDrawByAttribute.cc.
References fAttName, fContextMap, G4endl, G4VTrajectoryModel::GetContext(), G4VTrajectoryModel::Name(), and G4VisTrajContext::Print().
void G4TrajectoryDrawByAttribute::Set | ( | const G4String & | attribute | ) |
Definition at line 201 of file G4TrajectoryDrawByAttribute.cc.
|
private |
Definition at line 72 of file G4TrajectoryDrawByAttribute.hh.
|
private |
Definition at line 73 of file G4TrajectoryDrawByAttribute.hh.
Referenced by AddIntervalContext(), AddValueContext(), Draw(), Print(), and ~G4TrajectoryDrawByAttribute().
|
mutableprivate |
Definition at line 76 of file G4TrajectoryDrawByAttribute.hh.
Referenced by Draw().
|
mutableprivate |
Definition at line 78 of file G4TrajectoryDrawByAttribute.hh.
Referenced by Draw(), and ~G4TrajectoryDrawByAttribute().
|
mutableprivate |
Definition at line 77 of file G4TrajectoryDrawByAttribute.hh.
Referenced by Draw().