Geant4-11
|
#include <G4TrajectoryDrawByAttribute.hh>
Public Member Functions | |
void | AddIntervalContext (const G4String &name, G4VisTrajContext *context) |
void | AddValueContext (const G4String &name, G4VisTrajContext *context) |
virtual void | Draw (const G4VTrajectory &trajectory, const G4bool &visible=true) const |
G4TrajectoryDrawByAttribute (const G4String &name="Unspecified", G4VisTrajContext *context=0) | |
const G4VisTrajContext & | GetContext () const |
G4bool | GetVerbose () const |
G4String | Name () const |
virtual void | Print (std::ostream &ostr) const |
void | Set (const G4String &attribute) |
void | SetVerbose (const G4bool &) |
virtual | ~G4TrajectoryDrawByAttribute () |
Private Types | |
enum | Config { Interval , SingleValue } |
typedef std::map< Pair, G4VisTrajContext * > | ContextMap |
typedef std::pair< G4String, Config > | Pair |
Private Attributes | |
G4String | fAttName |
ContextMap | fContextMap |
G4bool | fFirst |
G4VAttValueFilter * | filter |
G4String | fName |
G4VisTrajContext * | fpContext |
G4bool | fVerbose |
G4bool | fWarnedMissingAttribute |
Definition at line 41 of file G4TrajectoryDrawByAttribute.hh.
|
private |
Definition at line 68 of file G4TrajectoryDrawByAttribute.hh.
|
private |
Definition at line 67 of file G4TrajectoryDrawByAttribute.hh.
|
private |
G4TrajectoryDrawByAttribute::G4TrajectoryDrawByAttribute | ( | const G4String & | name = "Unspecified" , |
G4VisTrajContext * | context = 0 |
||
) |
Definition at line 40 of file G4TrajectoryDrawByAttribute.cc.
|
virtual |
Definition at line 48 of file G4TrajectoryDrawByAttribute.cc.
References fContextMap, and filter.
void G4TrajectoryDrawByAttribute::AddIntervalContext | ( | const G4String & | name, |
G4VisTrajContext * | context | ||
) |
Definition at line 204 of file G4TrajectoryDrawByAttribute.cc.
References g4zmq::context, FatalErrorInArgument, fContextMap, G4Exception(), Interval, and G4InuclParticleNames::name().
void G4TrajectoryDrawByAttribute::AddValueContext | ( | const G4String & | name, |
G4VisTrajContext * | context | ||
) |
Definition at line 223 of file G4TrajectoryDrawByAttribute.cc.
References g4zmq::context, FatalErrorInArgument, fContextMap, G4Exception(), G4InuclParticleNames::name(), and SingleValue.
|
virtual |
Implements G4VTrajectoryModel.
Definition at line 61 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, JustWarning, G4VAttValueFilter::LoadIntervalElement(), G4VAttValueFilter::LoadSingleValueElement(), G4VTrajectoryModel::Name(), G4VisTrajContext::Print(), and SingleValue.
|
inherited |
Definition at line 53 of file G4VTrajectoryModel.cc.
References G4VTrajectoryModel::fpContext.
Referenced by G4HepRepFileSceneHandler::BeginModeling(), Draw(), G4TrajectoryDrawByCharge::Draw(), G4TrajectoryDrawByEncounteredVolume::Draw(), G4TrajectoryDrawByOriginVolume::Draw(), G4TrajectoryDrawByParticleID::Draw(), G4TrajectoryGenericDrawer::Draw(), Print(), G4TrajectoryDrawByCharge::Print(), G4TrajectoryDrawByEncounteredVolume::Print(), G4TrajectoryDrawByOriginVolume::Print(), G4TrajectoryDrawByParticleID::Print(), and G4TrajectoryGenericDrawer::Print().
|
inherited |
Definition at line 73 of file G4VTrajectoryModel.cc.
References G4VTrajectoryModel::fVerbose.
Referenced by Draw(), G4TrajectoryDrawByCharge::Draw(), G4TrajectoryDrawByEncounteredVolume::Draw(), G4TrajectoryDrawByOriginVolume::Draw(), G4TrajectoryDrawByParticleID::Draw(), and G4TrajectoryGenericDrawer::Draw().
|
inherited |
Definition at line 61 of file G4VTrajectoryModel.cc.
References G4VTrajectoryModel::fName.
Referenced by Draw(), G4TrajectoryDrawByCharge::Draw(), G4TrajectoryDrawByEncounteredVolume::Draw(), G4TrajectoryDrawByOriginVolume::Draw(), G4TrajectoryDrawByParticleID::Draw(), G4TrajectoryGenericDrawer::Draw(), Print(), G4TrajectoryDrawByCharge::Print(), G4TrajectoryDrawByEncounteredVolume::Print(), G4TrajectoryDrawByOriginVolume::Print(), G4TrajectoryDrawByParticleID::Print(), and G4TrajectoryGenericDrawer::Print().
|
virtual |
Implements G4VTrajectoryModel.
Definition at line 177 of file G4TrajectoryDrawByAttribute.cc.
References fAttName, fContextMap, G4endl, G4VTrajectoryModel::GetContext(), G4VTrajectoryModel::Name(), and G4VisTrajContext::Print().
void G4TrajectoryDrawByAttribute::Set | ( | const G4String & | attribute | ) |
Definition at line 198 of file G4TrajectoryDrawByAttribute.cc.
References fAttName, and G4InuclParticleNames::name().
|
inherited |
Definition at line 67 of file G4VTrajectoryModel.cc.
References G4VTrajectoryModel::fVerbose.
|
private |
Definition at line 71 of file G4TrajectoryDrawByAttribute.hh.
|
private |
Definition at line 72 of file G4TrajectoryDrawByAttribute.hh.
Referenced by AddIntervalContext(), AddValueContext(), Draw(), Print(), and ~G4TrajectoryDrawByAttribute().
|
mutableprivate |
Definition at line 75 of file G4TrajectoryDrawByAttribute.hh.
Referenced by Draw().
|
mutableprivate |
Definition at line 77 of file G4TrajectoryDrawByAttribute.hh.
Referenced by Draw(), and ~G4TrajectoryDrawByAttribute().
|
privateinherited |
Definition at line 75 of file G4VTrajectoryModel.hh.
Referenced by G4VTrajectoryModel::Name().
|
privateinherited |
Definition at line 77 of file G4VTrajectoryModel.hh.
Referenced by G4VTrajectoryModel::G4VTrajectoryModel(), G4VTrajectoryModel::GetContext(), and G4VTrajectoryModel::~G4VTrajectoryModel().
|
privateinherited |
Definition at line 76 of file G4VTrajectoryModel.hh.
Referenced by G4VTrajectoryModel::GetVerbose(), and G4VTrajectoryModel::SetVerbose().
|
mutableprivate |
Definition at line 76 of file G4TrajectoryDrawByAttribute.hh.
Referenced by Draw().