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

#include <G4TrajectoryModelFactories.hh>

+ Inheritance 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 ()
 
virtual ModelAndMessengers Create (const G4String &placement, const G4String &modelName)=0
 
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 105 of file G4TrajectoryModelFactories.hh.

Constructor & Destructor Documentation

◆ G4TrajectoryDrawByEncounteredVolumeFactory()

G4TrajectoryDrawByEncounteredVolumeFactory::G4TrajectoryDrawByEncounteredVolumeFactory ( )

Definition at line 174 of file G4TrajectoryModelFactories.cc.

175:G4VModelFactory<G4VTrajectoryModel>("drawByEncounteredVolume")
176{}

◆ ~G4TrajectoryDrawByEncounteredVolumeFactory()

G4TrajectoryDrawByEncounteredVolumeFactory::~G4TrajectoryDrawByEncounteredVolumeFactory ( )
virtual

Definition at line 178 of file G4TrajectoryModelFactories.cc.

178{}

Member Function Documentation

◆ Create()

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

Implements G4VModelFactory< G4VTrajectoryModel >.

Definition at line 181 of file G4TrajectoryModelFactories.cc.

182{
183 Messengers messengers;
184
185 // Create default context and model
186 G4VisTrajContext* context = new G4VisTrajContext("default");
188
189 // Create messengers for default context configuration
190 G4ModelCommandUtils::AddContextMsgrs(context, messengers, placement+"/"+name);
191
192 // Create messengers for drawer
193 messengers.push_back(new G4ModelCmdSetStringColour<G4TrajectoryDrawByEncounteredVolume>(model, placement));
194 messengers.push_back(new G4ModelCmdSetDefaultColour<G4TrajectoryDrawByEncounteredVolume>(model, placement));
195 messengers.push_back(new G4ModelCmdVerbose<G4TrajectoryDrawByEncounteredVolume>(model, placement));
196
197 return ModelAndMessengers(model, messengers);
198}
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: