Geant4  10.01.p02
G4TrajectoryDrawByAttribute Class Reference

#include <G4TrajectoryDrawByAttribute.hh>

+ Inheritance diagram for G4TrajectoryDrawByAttribute:
+ Collaboration diagram for G4TrajectoryDrawByAttribute:

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
 

Detailed Description

Definition at line 42 of file G4TrajectoryDrawByAttribute.hh.

Member Typedef Documentation

Definition at line 69 of file G4TrajectoryDrawByAttribute.hh.

typedef std::pair<G4String, Config> G4TrajectoryDrawByAttribute::Pair
private

Definition at line 68 of file G4TrajectoryDrawByAttribute.hh.

Member Enumeration Documentation

Enumerator
Interval 
SingleValue 

Definition at line 66 of file G4TrajectoryDrawByAttribute.hh.

Constructor & Destructor Documentation

G4TrajectoryDrawByAttribute::G4TrajectoryDrawByAttribute ( const G4String &  name = "Unspecified",
G4VisTrajContext *  context = 0 
)

Definition at line 41 of file G4TrajectoryDrawByAttribute.cc.

G4TrajectoryDrawByAttribute::~G4TrajectoryDrawByAttribute ( )
virtual

Definition at line 49 of file G4TrajectoryDrawByAttribute.cc.

References fContextMap, and filter.

Member Function Documentation

void G4TrajectoryDrawByAttribute::AddIntervalContext ( const G4String &  name,
G4VisTrajContext *  context 
)

Definition at line 207 of file G4TrajectoryDrawByAttribute.cc.

References FatalErrorInArgument, fContextMap, G4Exception(), and Interval.

+ Here is the call graph for this function:

void G4TrajectoryDrawByAttribute::AddValueContext ( const G4String &  name,
G4VisTrajContext *  context 
)

Definition at line 226 of file G4TrajectoryDrawByAttribute.cc.

References FatalErrorInArgument, fContextMap, G4Exception(), and SingleValue.

+ Here is the call graph for this function:

void G4TrajectoryDrawByAttribute::Print ( std::ostream &  ostr) const
virtual

Implements G4VTrajectoryModel.

Definition at line 180 of file G4TrajectoryDrawByAttribute.cc.

References fAttName, fContextMap, G4endl, G4VTrajectoryModel::GetContext(), G4VTrajectoryModel::Name(), and G4VisTrajContext::Print().

+ Here is the call graph for this function:

void G4TrajectoryDrawByAttribute::Set ( const G4String &  attribute)

Definition at line 201 of file G4TrajectoryDrawByAttribute.cc.

References fAttName, and name.

Member Data Documentation

G4String G4TrajectoryDrawByAttribute::fAttName
private

Definition at line 72 of file G4TrajectoryDrawByAttribute.hh.

Referenced by Draw(), Print(), and Set().

ContextMap G4TrajectoryDrawByAttribute::fContextMap
private
G4bool G4TrajectoryDrawByAttribute::fFirst
mutableprivate

Definition at line 76 of file G4TrajectoryDrawByAttribute.hh.

Referenced by Draw().

G4VAttValueFilter* G4TrajectoryDrawByAttribute::filter
mutableprivate

Definition at line 78 of file G4TrajectoryDrawByAttribute.hh.

Referenced by Draw(), and ~G4TrajectoryDrawByAttribute().

G4bool G4TrajectoryDrawByAttribute::fWarnedMissingAttribute
mutableprivate

Definition at line 77 of file G4TrajectoryDrawByAttribute.hh.

Referenced by Draw().


The documentation for this class was generated from the following files: