Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4TrajectoryDrawByEncounteredVolumeFactory Class Reference

#include <G4TrajectoryModelFactories.hh>

Inheritance diagram for G4TrajectoryDrawByEncounteredVolumeFactory:
Collaboration diagram for G4TrajectoryDrawByEncounteredVolumeFactory:

Public Member Functions

 G4TrajectoryDrawByEncounteredVolumeFactory ()
 
virtual ~G4TrajectoryDrawByEncounteredVolumeFactory ()
 
ModelAndMessengers Create (const G4String &placement, const G4String &name)
 
- Public Member Functions inherited from G4VModelFactory< G4VTrajectoryModel >
 G4VModelFactory (const G4String &name)
 
virtual ~G4VModelFactory ()
 
G4String Name ()
 
void Print (std::ostream &ostr) const
 

Additional Inherited Members

- Public Types inherited from G4VModelFactory< G4VTrajectoryModel >
typedef std::vector
< G4UImessenger * > 
Messengers
 
typedef std::pair< T
*, Messengers
ModelAndMessengers
 

Detailed Description

Definition at line 106 of file G4TrajectoryModelFactories.hh.

Constructor & Destructor Documentation

G4TrajectoryDrawByEncounteredVolumeFactory::G4TrajectoryDrawByEncounteredVolumeFactory ( )

Definition at line 175 of file G4TrajectoryModelFactories.cc.

G4TrajectoryDrawByEncounteredVolumeFactory::~G4TrajectoryDrawByEncounteredVolumeFactory ( )
virtual

Definition at line 179 of file G4TrajectoryModelFactories.cc.

179 {}

Member Function Documentation

ModelAndMessengers G4TrajectoryDrawByEncounteredVolumeFactory::Create ( const G4String placement,
const G4String name 
)
virtual

Implements G4VModelFactory< G4VTrajectoryModel >.

Definition at line 182 of file G4TrajectoryModelFactories.cc.

183 {
184  Messengers messengers;
185 
186  // Create default context and model
187  G4VisTrajContext* context = new G4VisTrajContext("default");
189 
190  // Create messengers for default context configuration
191  G4ModelCommandUtils::AddContextMsgrs(context, messengers, placement+"/"+name);
192 
193  // Create messengers for drawer
194  messengers.push_back(new G4ModelCmdSetStringColour<G4TrajectoryDrawByEncounteredVolume>(model, placement));
195  messengers.push_back(new G4ModelCmdSetDefaultColour<G4TrajectoryDrawByEncounteredVolume>(model, placement));
196  messengers.push_back(new G4ModelCmdVerbose<G4TrajectoryDrawByEncounteredVolume>(model, placement));
197 
198  return ModelAndMessengers(model, messengers);
199 }
std::vector< G4UImessenger * > Messengers
void AddContextMsgrs(G4VisTrajContext *context, std::vector< G4UImessenger * > &messengers, const G4String &placement)
std::pair< T *, Messengers > ModelAndMessengers
const XML_Char * context
Definition: expat.h:434
const XML_Char XML_Content * model
Definition: expat.h:151

Here is the call graph for this function:


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