Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4TrajectoryDrawByOriginVolumeFactory Class Reference

#include <G4TrajectoryModelFactories.hh>

+ Inheritance diagram for G4TrajectoryDrawByOriginVolumeFactory:

Public Member Functions

 G4TrajectoryDrawByOriginVolumeFactory ()
 
virtual ~G4TrajectoryDrawByOriginVolumeFactory ()
 
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< G4VTrajectoryModel *, MessengersModelAndMessengers
 

Detailed Description

Definition at line 93 of file G4TrajectoryModelFactories.hh.

Constructor & Destructor Documentation

◆ G4TrajectoryDrawByOriginVolumeFactory()

G4TrajectoryDrawByOriginVolumeFactory::G4TrajectoryDrawByOriginVolumeFactory ( )

Definition at line 147 of file G4TrajectoryModelFactories.cc.

◆ ~G4TrajectoryDrawByOriginVolumeFactory()

G4TrajectoryDrawByOriginVolumeFactory::~G4TrajectoryDrawByOriginVolumeFactory ( )
virtual

Definition at line 151 of file G4TrajectoryModelFactories.cc.

151{}

Member Function Documentation

◆ Create()

ModelAndMessengers G4TrajectoryDrawByOriginVolumeFactory::Create ( const G4String & placement,
const G4String & name )
virtual

Implements G4VModelFactory< G4VTrajectoryModel >.

Definition at line 154 of file G4TrajectoryModelFactories.cc.

155{
156 Messengers messengers;
157
158 // Create default context and model
159 G4VisTrajContext* context = new G4VisTrajContext("default");
161
162 // Create messengers for default context configuration
163 G4ModelCommandUtils::AddContextMsgrs(context, messengers, placement+"/"+name);
164
165 // Create messengers for drawer
166 messengers.push_back(new G4ModelCmdSetStringColour<G4TrajectoryDrawByOriginVolume>(model, placement));
167 messengers.push_back(new G4ModelCmdSetDefaultColour<G4TrajectoryDrawByOriginVolume>(model, placement));
168 messengers.push_back(new G4ModelCmdVerbose<G4TrajectoryDrawByOriginVolume>(model, placement));
169
170 return ModelAndMessengers(model, messengers);
171}
std::vector< G4UImessenger * > Messengers
std::pair< G4VTrajectoryModel *, Messengers > ModelAndMessengers
void AddContextMsgrs(G4VisTrajContext *context, std::vector< G4UImessenger * > &messengers, const G4String &placement)

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